Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My "Dedicated Server" should have two NICs installed but I can only find one.

My Question: What other commands and methods are available to test how many network cards are installed on my server

lspci | grep Ethernet

Are there any other commands / methods available?

share|improve this question
    
Do you have physical access to the host? Can you confirm that any expansion cards are properly seated? Are all NIC's from the same manufacturer? –  Tok Feb 24 '11 at 16:22
    
Hello Tok. Thanks for your answer.No the NIC's are not from the same manufacturer (one should be from intel and the other from realtek). =>Your question sounds interesting. What could be the effect/result if the cards are from different manufacturers? And I do not have physical access to the server and do not know if they are correctly installed. thanks. jens. –  jens Feb 24 '11 at 18:01

5 Answers 5

up vote 5 down vote accepted

You can use lshw to see all devices on a machine. To view just the network devices enter:

lshw -class network
share|improve this answer
    
lshw is not part of a default Debian setup. –  Jean-Marc Liotier Sep 13 '11 at 23:56

For Ethernet:

ls -d /sys/class/net/eth* | wc -l
share|improve this answer

try with

/sbin/ifconfig -a

that will show you the unconfigured/down NICs as well as configured and active ones.

share|improve this answer

ip link show will list everything that looks like a network interface.

share|improve this answer
modprobe -c |grep 'eth[0-9]'

shows the real device driver in use for each ethernet device

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.