NIC card issue

Hi,

Someone asked me the below.

If the box has multiple NIC cards, try to run a test with interface address specified as shown below

$ java utils.MulticastTest -N server100 -A 237.155.155.1 -i <interfaceaddress>
How can I now find out if my box has multiple NIC cards and how can I find out whats the interface address.

uname -a
HP-UX mymachine B.11.31 U ia64 3223107173 unlimited-user license

Please help.

lanscan then ifconfig to examine the interface information.

1 Like

Hi,

==> lanscan
Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI
Path     Address        In# State NamePPA        ID  Type      Support Mjr#
9/0/1/1/0/6/0 0x00226434C082 0   UP    lan0 snap0     1   ETHER     Yes     119
9/0/1/1/0/6/1 0x00226434C083 1   UP    lan1 snap1     2   ETHER     Yes     119
9/0/2/1/0/6/0 0x001E0BFDA208 2   UP    lan2 snap2     3   ETHER     Yes     119
9/0/2/1/0/6/1 0x001E0BFDA209 3   UP    lan3 snap3     4   ETHER     Yes     119
9/0/4/1/0/6/0 0x001E0BFDB206 4   UP    lan4 snap4     5   ETHER     Yes     119
9/0/4/1/0/6/1 0x001E0BFDB207 5   UP    lan5 snap5     6   ETHER     Yes     119
9/0/9/1/0 0x001A4B086B4E 10  UP    lan10 snap10   7   ETHER     Yes     119
9/0/9/1/1 0x001A4B086B4F 11  UP    lan11 snap11   8   ETHER     Yes     119
LinkAgg0 0x000000000000 900 DOWN  lan900 snap900 10  ETHER     Yes     119
LinkAgg1 0x000000000000 901 DOWN  lan901 snap901 11  ETHER     Yes     119
LinkAgg2 0x000000000000 902 DOWN  lan902 snap902 12  ETHER     Yes     119
LinkAgg3 0x000000000000 903 DOWN  lan903 snap903 13  ETHER     Yes     119
LinkAgg4 0x000000000000 904 DOWN  lan904 snap904 14  ETHER     Yes     119

Can you explain me the output above. How many NIC do I have ??

and what parameter should I pass to ifconfig ??

I belive that's 4 dual port NIC's.

You will pass the interface name (lan0 etc.) to ifconfig, or run netstat -in to see all configured interfaces (ones you don't see are not configured).

If you want to know what NICs (H/W type) you have:

ioscan -funC lan

Are you saying that I have 4 NIC cards ? I see lan0,lan1,lan2,lan3,lan4,lan5,lan10,lan11 total of 8 UP and rest 5 Down in-all 13 entries.

Also please help me understand how did you come to a conclusion that "that's 4 dual port NIC's." ??

What is my interface-address from the output below ?

 
==> ifconfig lan0
lan0: flags=1843<UP,BROADCAST,RUNNING,MULTICAST,CKO>
        inet 150.233.121.69 netmask ffffff00 broadcast 130.233.101.255

and

==> ioscan -funC lan
Class     I  H/W Path       Driver S/W State   H/W Type     Description
========================================================================
lan       0  9/0/1/1/0/6/0  iether   CLAIMED     INTERFACE    HP AB290-60001 PCI/PCI-X 1000Base-T 2-port U320 SCSI/2-port 1000B-T Combo Adapter
lan       1  9/0/1/1/0/6/1  iether   CLAIMED     INTERFACE    HP AB290-60001 PCI/PCI-X 1000Base-T 2-port U320 SCSI/2-port 1000B-T Combo Adapter
lan       2  9/0/2/1/0/6/0  iether   CLAIMED     INTERFACE    HP AD194-60001 PCI/PCI-X 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo Adapter
lan       3  9/0/2/1/0/6/1  iether   CLAIMED     INTERFACE    HP AD194-60001 PCI/PCI-X 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo Adapter
lan       4  9/0/4/1/0/6/0  iether   CLAIMED     INTERFACE    HP AD194-60001 PCI/PCI-X 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo Adapter
lan       5  9/0/4/1/0/6/1  iether   CLAIMED     INTERFACE    HP AD194-60001 PCI/PCI-X 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo Adapter
lan      10  9/0/9/1/0      iether   CLAIMED     INTERFACE    HP A7012-60601 PCI/PCI-X 1000Base-T Dual-port Adapter
lan      11  9/0/9/1/1      iether   CLAIMED     INTERFACE    HP A7012-60601 PCI/PCI-X 1000Base-T Dual-port Adapter

The reason I opened the thread is becoz I have been asked the below.

But I still do not know what should be the "interfaceaddress" that I need to pass in that command.