Table of Contents
This tip is about the how to Check the network interface of your Linux system with ethtool. So read this free guide, How to Check the network interface of your Linux system with ethtool step by step. If you have query related to same article you may contact us.
How to Check the network interface of your Linux system with ethtool – Guide
The NS ethtool Linux utilities allow you to view and change some of the network driver and interface card settings, especially for wired devices. This includes speed, whether the interface uses auto-negotiation, whether it should run in half-duplex or full-duplex mode, and other settings. Ethtool also provides an easy way to view or troubleshoot your network interface.
probably ethtool Already available on Linux systems. However, you can use one or both of the following commands to check.
$ which ettool
/ usr / sbin / ethtool
$ sudo ethtool —version
Ethtool version 5.13
To understand how this utility can control the settings, run a command similar to the following: NS -NS Means “help”. You’ll notice that you’re seeing a 10-page syntax like the one shown here.
show settings
Obviously, there are many things the ethtool utility can do for you. However, to view the network interface settings, type ethtool followed by the network interface name (for example, eth0). The following example examines a network interface called enp0s25.
Note the “yes” on the last line indicating that this interface is working. The output also shows that link modes are supported and auto-negotiation is enabled. Note the speed (100 Mbps) and the interface running at full duplex.
You can check the Ethernet driver settings using a command similar to the following:
Network Interface Statistics
To view network interface statistics, you can use a command similar to the following: The output has been split into two columns for easier viewing of settings.
There are no conflicts or errors. This is a good sign.
To test the network interface, you need to use: sudo E with the following command option -NS (Test). Note that the interface passed the test.
Note that all these tests are running in offline mode. There are two modes, online and offline, offline being the default. Runs the full set of tests, but may disrupt normal operation. Online testing is limited and uninterrupted. Remember this if you are working on a production system.
change settings
You must use sudo to change network interface Or run as root. Also, changes are not retained over reboots unless you also change settings in the configuration file for a specific Linux distribution. For some changes you will also need to disable the ifdown interface AND backup ifup So you need to work in the system console.
Final note
I hope you like the guide How to Check the network interface of your Linux system with ethtool. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.