I have a Linux machine with two Ethernet cards both using the Intel e1000 driver. lspci reports different models of Ethernet cards, but I can't tell which is eth0 and which is eth1. Other than turning off the machine and reading the chips, how can I tell which model is eth0 and which is eth1?
feedback
|
migrated from stackoverflow.com Nov 2 '10 at 21:34
This question came from our site for professional and enthusiast programmers.
|
I haven't tried it myself, but try the ethtool command. With
you can get the LEDs on the card to blink. You can then easily identify which card is blinking. | |||
|
feedback
|
|
Parse the output of ifconfig. It will give you the hardware MAC address that you can use to identify which card is which. | |||
feedback
|
|
Connect only one of the interfaces to a switch then use the output of | |||
|
feedback
|