From my mailbag the other day I received an interesting question about network interface:
I've 4 network card installed in my server and I need to find out which NIC is which? How do I tell which physical card is eth0 and which one is eth1 and so on using command line options? If my server is 5000 miles away, how do I tell which NIC is eth0 w/o interrupting network traffic?
I've got some thoughts on this myself such as:
[a] use ping command - Easy to use
[b] udev persistent-net rules - See /etc/udev/rules.d/*persistent-net.rules
[c] ethtool -p eth0 5 - It will initiates adapter-specific action intended to enable an operator to easily identify the adapter by sight. Typically this involves blinking one or more LEDs on the specific ethernet port. But, it will not work with all drivers
Anyway, I thought that it would be interesting to throw this to you the reader to comment on.