We are puzzled when we configure a device with multiple network interfaces, eth0, eth1 、...... What exactly is that interface?
Today for everyone to introduce a gadget, Ethtool, he can help you solve this problem.
The machine I use is Fedora Linux system, open terminal, input ethtool--help display Help information, below I briefly introduce the most commonly used two functions.
Function 1
Ethtool devname view device information corresponding to the device name Here's how to use it: Ethtool Eth3 Displays the information as shown in the carriage return. |
It shows the Eth3 interface type, connection mode, rate and so on, so that you find the corresponding network card. (If the network cable supported ports is TP, if the fiber is displayed fiber)
Function 2
Ethtool-p devname View device location for corresponding device name
Here's how to use it:
Ethtool-p eth0
The LED will blink next to the NIC interface corresponding to the eth0 after carriage return, so you can quickly determine the location of the Eth0 network port. (Press CTRL + C to end the command to stop flashing)
Using Ethtool to determine network port location of multi-NIC Linux Server