17

I'm new to linux and I have server with four network cards. I have to identify which physical network interface is assigned to the names eth0, eth1, eth2 and eth3. I have to disconnect cable from eth2 and do not know which network card it is.

Thanks

user191253
  • 173
  • 5

2 Answers2

24

You can use ethtool.

ethtool -p ethX [N]
  • ethX – network interface name
  • [N] – number of second to blink

Example:

ethtool -p eth2 15

This will blink the network interface eth2 for 15 seconds, then you can see which physical network interface is for eth2

maayke
  • 711
  • 1
  • 6
  • 9
-1

to check the Physical link in linux, use miitool.

It shows if your network card is connected or not.

Falcon Momot
  • 24,975
  • 13
  • 61
  • 92
tom
  • 1
  • 1
  • This will tell you if anything is connected, and the utility can help control the interface, but it is of very little help in differentiating them. A particular feature of `ethtool` which allows manual control of the LEDs is sometimes helpful. – Falcon Momot Sep 28 '13 at 07:28