This content has been marked as final. Show 7 replies
dmesg | grep eth | grep Up
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
Can you use ethtool to have the port identify itself via its LEDs?
#ethtool -p ethXEdited by: Sergio on Sep 25, 2012 12:56 PM
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:1 person found this helpful
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.
once the cable is correctly done on the switch, I am able to see SPEED in the result of ethtool.