1833785 Members
2541 Online
110063 Solutions
New Discussion

network interfaces

 
Praveen Bezawada
Respected Contributor

network interfaces

hi
How can we find the number of network interface cards on a machine.

Thanks in advance
Praveen
7 REPLIES 7
Paul Davies
Advisor

Re: network interfaces

Hi,

Try

ioscan -C lan

This will show the physical cards installed (but not if they are configured or not).

Regards,

Paul.
James R. Ferguson
Acclaimed Contributor

Re: network interfaces

Hi:

# lanscan

...JRF...
Darrel Louis
Honored Contributor

Re: network interfaces

Which number or you looking for:

- lanscan # to identify the NMID

- ioscan -fnC lan # To identify the Hardware Path

Good Luck
Madhu Sudhan_1
Respected Contributor

Re: network interfaces

Praveen !

If you are looking at count only, then

use

#lanscan -a | wc -l


...Madhu
Think Positive
f. halili
Trusted Contributor

Re: network interfaces

You may use:

To scan system hardware:
# ioscan -fnC lan

OR

Display LAN Device config & status
# lanscan
derekh
rick jones
Honored Contributor

Re: network interfaces

ioscan will show physical NICs.

lanscan will show physical NICs or virtual NICs created by Auto Port Aggregation

both will include hardware paths (where germane)

netstat -i will show what the transport considers a physical interface (either a true physical interface, or a virtual one via APA) and also logical interfaces (aka aliases - on HP-UX 11).

there is no rest for the wicked yet the virtuous have no pillows
Philip Kernohan
Advisor

Re: network interfaces

Praveen,

there are a number of commands that you can use.

ioscan -fnC lan
will give the NICs, h/w address and associated device path as appropriate.

lanscan
will show the h/w address, MAC address and associated device of each card that Unix has picked up

ifconfig
will give you the configuration of the actual device (IP, subnet)

lanadmin
allows you to see various statistics (speed, rxs, txs, collisions etc.) along with the ability to reset the card (useful if you change the 10/100 port at the other end and you would like to try to renegotiate).

Be careful however, there are a few NICs out there that will not show in lanscan until you have the correct drivers loaded. If you suspect that there is a card and it is not showing up then try to find the h/w part number and load the associated s/w driver.

Good luck.

Philip
It's nice to be important but it's more important to be nice