if one of two ports ethernet card (10GbE) gets connected, how do I know which ethX on linux is corresponding to this port?
Oracle linux 6.3
NC523SFP 10Gb 2-port Server Adapter
HP G5 server
Edited by: 943714 on Sep 25, 2012 7:10 AM
I can not determine it by using "Up".
I have plugged in one of ports, but there is no light. So, it is not "Up" yet, and no lights on both ports. I wanted to make sure which port is corresponding to which ethX.
Edited by: 943714 on Sep 25, 2012 8:03 AM
This command is nice, however, it only shows me the same light, even I tried both "ethtool -p eth2" and "ethtool -p eth3", and no matter what port I plugged in.
I am expecting it shows me different light for different port.
Here is another option:
Find the interrupt of eth0:
# grep eth0 /proc/interrupts
*19*: 163728 IO-APIC-fasteoi ehci_hcd:usb1, eth0
So it the above example device eth0 uses IRQ 19.
Then query lspci for IRQ 19:
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
Subsystem: Intel Corporation PRO/1000 MT Desktop Adapter
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
Memory at f0000000 (32-bit, non-prefetchable) [size=128K]
I/O ports at d010 [size=8]
Capabilities: [dc] Power Management version 2
Capabilities: [e4] PCI-X non-bridge device
Kernel driver in use: e1000
Kernel modules: e1000
For information about the link:
# mii-tool -v eth0
# ethtool -a eth0
You can remove card and see label with MAC -address.
Use ifconfig -a for identify required port by find required MAC.
Generaly, in case link LED not light it more like cable problem or disabled port on the switch.