Software & AppsOperating SystemLinux

How To Check NIC Speed and Characteristics in Ubuntu

Ubuntu 16

In this article, we will guide you through the process of checking the speed and characteristics of your Network Interface Card (NIC) in Ubuntu. This information is essential for diagnosing network issues and optimizing your system’s performance. We will use three different methods to achieve this: dmesg with grep, mii-tool, and ethtool.

Quick Answer

To check the speed and characteristics of your Network Interface Card (NIC) in Ubuntu, you can use the dmesg command with grep, the mii-tool utility, or the ethtool utility. These tools provide detailed information about your NIC, including its speed, duplex mode, and other relevant details.

Method 1: Using dmesg and grep

The dmesg command is used to print or control the kernel ring buffer. When used with grep, it can filter output related to specific hardware or software. In our case, we will use it to get information about our NIC.

Step 1: Open the Terminal

You can open the terminal by pressing Ctrl + Alt + T or by searching for ‘terminal’ in the application menu.

Step 2: Use dmesg with grep

Enter the following command in the terminal:

dmesg | grep eth0

In this command, dmesg prints the kernel ring buffer and | grep eth0 filters the output to display only lines containing ‘eth0’, which is the name of our NIC.

Note: Replace ‘eth0’ with the name of your NIC if it is different. You can find the name of your NIC by using the command ifconfig or ip addr.

The output will show information related to your NIC, including its speed and other details.

Method 2: Using mii-tool

mii-tool is a utility for managing and diagnosing your network interface. It provides detailed information about your NIC, including its speed and duplex mode (full or half).

Step 1: Install mii-tool

If mii-tool is not already installed on your system, you can install it by running the following command:

sudo apt-get install mii-tool

Step 2: Use mii-tool

Enter the following command in the terminal:

mii-tool -v eth0

In this command, -v is a parameter that stands for ‘verbose’. It provides detailed information about the NIC.

Note: Replace ‘eth0’ with the name of your NIC if it is different.

The output will show detailed information about your NIC, including its speed and duplex mode.

Method 3: Using ethtool

ethtool is a utility for displaying and changing NIC settings. It can provide a wealth of information about your NIC, including its speed, duplex mode, and much more.

Step 1: Install ethtool

If ethtool is not already installed on your system, you can install it by running the following command:

sudo apt-get install ethtool

Step 2: Use ethtool

Enter the following command in the terminal:

ethtool eth0

Note: Replace ‘eth0’ with the name of your NIC if it is different.

The output will show the settings and characteristics of your NIC, including its speed and duplex mode.

Conclusion

Checking the speed and characteristics of your NIC in Ubuntu is a straightforward process that can be done using various commands and tools. By following the steps outlined in this article, you should be able to diagnose network issues and optimize your system’s performance. Remember that the specific tools mentioned in this article may vary depending on your Ubuntu version and installation options.

How do I find the name of my NIC in Ubuntu?

You can find the name of your NIC by using the command ifconfig or ip addr. It will display a list of network interfaces, and the name of your NIC will be listed there.

Can I use these methods to check the speed and characteristics of a wireless network adapter?

No, these methods are specifically for checking the speed and characteristics of a wired Network Interface Card (NIC). To check the speed and characteristics of a wireless network adapter, you can use tools like iwconfig or nmcli.

Leave a Comment

Your email address will not be published. Required fields are marked *