Using Ethtool to determine network port location of multi-NIC Linux Server

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.