How to find about NICs installed
Hi;
Is there a way to determine for sure how many NIC ports installed on my Linux box?
I tried to run "lspci" but not sure about the results, it's not clear.
Below are the results when i run both "ifconfig" & "lspci" on my Linux box i hope someone can help me finding the actual numbers of NICs installed:
Is it 2 ports or 6 ports?
Code:
server01:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:24:81:B5:31:6A
inet addr:15.19.23.1 Bcast:15.19.23.255 Mask:255.255.255.0
inet6 addr: fe80::224:81ff:feb5:316a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:128127059 errors:0 dropped:0 overruns:0 frame:0
TX packets:205153780 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1008969960 (962.2 Mb) TX bytes:348444661 (332.3 Mb)
Interrupt:169
eth1 Link encap:Ethernet HWaddr 00:24:81:B5:31:6B
inet addr:162.14.200.25 Bcast:162.14.200.255 Mask:255.255.255.0
inet6 addr: fe80::224:81ff:feb5:316b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:250977189 errors:0 dropped:0 overruns:0 frame:0
TX packets:128531116 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3493154681 (3331.3 Mb) TX bytes:654359981 (624.0 Mb)
Interrupt:74
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3743424 errors:0 dropped:0 overruns:0 frame:0
TX packets:3743424 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:816603395 (778.7 Mb) TX bytes:816603395 (778.7 Mb)
Code:
server01:~ # lspci
00:00.0 Host bridge: Intel Corporation E7230/3000/3010 Memory Controller Hub (rev c0)
00:01.0 PCI bridge: Intel Corporation E7230/3000/3010 PCI Express Root Port (rev c0)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5 (rev 01)
00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
01:03.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02)
01:04.0 System peripheral: Compaq Computer Corporation Integrated Lights Out Controller (rev 03)
01:04.2 System peripheral: Compaq Computer Corporation Integrated Lights Out Processor (rev 03)
01:04.4 USB Controller: Hewlett-Packard Company Unknown device 3300
01:04.6 Serial bus controller [Class 0c07]: Hewlett-Packard Company Unknown device 3302
02:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev b5)
03:04.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5714 Gigabit Ethernet (rev a3)
03:04.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5714 Gigabit Ethernet (rev a3)
03:08.0 PCI bridge: Broadcom HT1000 PCI/PCI-X bridge (rev b4)
07:00.0 PCI bridge: Integrated Device Technology, Inc. Unknown device 8018 (rev 0e)
08:02.0 PCI bridge: Integrated Device Technology, Inc. Unknown device 8018 (rev 0e)
08:04.0 PCI bridge: Integrated Device Technology, Inc. Unknown device 8018 (rev 0e)
09:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (Copper) (rev 06)
09:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (Copper) (rev 06)
0a:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (Copper) (rev 06)
0a:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (Copper) (rev 06)
0b:00.0 RAID bus controller: Hewlett-Packard Company Smart Array Controller (rev 04)
mi1-c23-gn01:~ #
Last edited by zaxxon; 11-25-2009 at 08:51 AM..
Reason: code tags
|