Operating System - HP-UX
1753216 Members
3931 Online
108792 Solutions
New Discussion

4 Port LAN and Port A-D Identification

 
butti
Frequent Advisor

4 Port LAN and Port A-D Identification

Hi,

I have to know the correct mapping between MAC and PORT A - D (see attachment) from a 4 PORT LAN Card.

Can i assume that Port A have the lowest MAC?
And the next highest mac â 0x00215A796031 â is Port B etc.

I can't pulling the network cable.

Thank's for help,
butti

6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: 4 Port LAN and Port A-D Identification

Shalom,

If they are all wired, bring up an IP address temporarily with ifconfig and match the lanscan output with ifconfig output.

lanadmin output might also help track this down.

It is really just a matter of using the system utilities you already have to find this out.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
butti
Frequent Advisor

Re: 4 Port LAN and Port A-D Identification

Thanks,

but that's another thing.

All 4 Ports are connected (Link UP)

Via lanscan i can see the mac and lan mapping (that's right).

0/2/1/0/4/0 0x00215A796030 0 UP lan0


But i can't see the mapping between lanX and Port A-D.

If
lan0 (hpux) = PortA (label on card)
lan1 (hpux)= PortB (label on card)
lan2 (hpux)= PortC (label on card)
lan3 (hpux)= PortD (label on card)
on the 4 Port LAN Card ,

or if this mapping correct

lan3 = PortA
lan2 = PortB
lan1 = PortC
lan0 = PortD

The Server is several thousand miles away


I hope you understand my problem.

Best Regards
Butti
rick jones
Honored Contributor

Re: 4 Port LAN and Port A-D Identification

Were this Linux I would suggest ethtool -p to cause the link LED for a given interface name to be blinked for a given length of time. In the absence of that functionality in lanadmin/nwmgr you might consider filing an enhancement request.

If you cannot pull the network cable, that suggests each of the four ports goes to a unique destination - ie there isn't APA involved. In that case, you might be able to see which is which by using linkloop (a link-layer "ping" tool) if you know that a given "other" MAC address is only reachable via a given cable of the four.

It seems plausible that the port with the lowest HW path (which includes PCI address and function number) would be the one labeled port A, but a wise engineer taught me the correct spelling is hyphenated - ass-u-me.

Perhaps being labled A-D uniquely identifies which four-port NIC is in use, but IIRC there have been at least two, perhaps three four port NICs supported under HP-UX, so providing a more complete name for the card might help those seeking to help remove the hyphens.
there is no rest for the wicked yet the virtuous have no pillows
Denver Osborn
Honored Contributor

Re: 4 Port LAN and Port A-D Identification

Looks like your assumption was correct.

http://www.docs.hp.com/en/AB545-90001/ch01s07.html

"Obtain the PPA number and the station address of each card by using the lanscan command. The MAC address labelled on each card refers to LAN port A (the right port). Add 1 to obtain the MAC address for LAN port B, 2 for port C, 3 for port D."

-denver
Albert Smith_1
Regular Advisor

Re: 4 Port LAN and Port A-D Identification

Another option you could do but would be more time consuming take your known good lan ie lan0 and attach 1 NIC cable and linkloop back to each one of MAC address until you get an ok message.
butti
Frequent Advisor

Re: 4 Port LAN and Port A-D Identification

thanks,

@rick jones
This NIC is installed !!

HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter

Path MAC CrdIn Link NamePPA
0/2/1/0/4/0 0x00215A796030 0 UP lan0
0/2/1/0/4/1 0x00215A796031 1 UP lan1
0/2/1/0/6/0 0x00215A796032 2 UP lan2
0/2/1/0/6/1 0x00215A796033 3 UP lan3

When i have a look at the MAC, Path and CrdIn order should be lan0=portA, lan1=PortB etc...

-butti