5 Methods to Verify Your NIC Velocity on Linux

5 Methods to Verify Your NIC Velocity on Linux


Figuring out the velocity of your community adapter will be useful in varied eventualities. As an illustration, it helps you identify whether or not you’ll be able to absolutely make the most of the out there bandwidth, or if you’re planning to improve your community, you’ll be able to verify in case your present NIC is succesful or whether or not you must improve your NIC.

Whatever the motive or state of affairs, there are a number of command-line instruments out there to verify the NIC velocity on a Linux PC.

Discover NICs Linked to Your Linux PC

Your system could have single or a number of community interface playing cards related to it. You’ll find all of the out there NICs on Linux utilizing the ip command:

 ip hyperlink present 

It’s going to show a listing of all of the NICs together with their names. As soon as you discover the NIC title, verify its velocity utilizing both of the strategies beneath.

ethtool is a command-line software that gives details about community drivers and interfaces together with their velocity, duplexity, community interface statistics, and supported hyperlink modes. It additionally permits you to change community interface configuration settings and you’ll even use it to troubleshoot your community interface card points.

You might need ethtool put in in your system. If it is not, run:

 sudo apt set up ethtool 

While you run ethtool adopted by the NIC title, it shows community interface card particulars together with the velocity of the gadget, duplexity, supported hyperlink modes, and another properties.

 ethtool <interface> 

To show the velocity of a NIC, use:

 sudo ethtool <interface> | grep Velocity

The output reveals that the velocity of the NIC is 1000Mb/s.

finding speed of NIC using ethtool

2. Verify the NIC Velocity Utilizing the /sys Filesystem

The /sys/class/internet/ listing comprises totally different recordsdata that embrace details about the community interface playing cards related to your system. The velocity of NIC is contained within the /sys/class/internet//velocity file. You may view this info utilizing the cat command:

 cat /sys/class/internet/<interface>/velocity 

As an illustration, to search out the velocity of the community interface ens33the command can be:

 cat /sys/class/internet/ens33/velocity 

The output will show the velocity of your NIC.

finding speed of NIC using /sys pseudo-filesystem

3. Utilizing dmesg to View the NIC Velocity

The dmesg command shows vital messages associated to system boot and {hardware} initialization. Utilizing dmesg with the grep command, you’ll be able to filter out particular info just like the velocity of a NIC, bodily connection state, and so forth.

To seek out the velocity of your NIC on Linux, run the dmesg command and pipe its output to the grep command adopted by the NIC title:

 sudo dmesg | grep <interface> 

From the output, you’ll find your NIC velocity amongst different info resembling hyperlink state, duplex mode, and so forth.

finding speed of NIC using dmesg command

mii-tool is an older Linux command-line software that permits you to view NIC settings together with the hyperlink standing, duplex mode, and velocity of a community interface card. You should utilize it on older techniques the place ethtool isn’t out there.

To verify the velocity of your NIC, run mii-tool adopted by NIC title:

 sudo mii-tool <interface>
finding speed of NIC using mii-tool

5. Utilizing the networkctl Command

networkctl permits you to view and modify the standing of community hyperlinks. Utilizing this command, you can even view details about the hyperlinks resembling sort, operation state, velocity, mannequin, {hardware} tackle, kernel module driver, and so forth.

To seek out the velocity of your NIC on Linux, use:

 networkctl standing <interface> 

It will print the detailed output together with the velocity of your NIC. In case you solely want the NIC velocity, pipe the above output to grep as follows:

 networkctl standing <interface> | grep Velocity
finding nic speed using networkctl command

Discovering Your NIC Velocity on Linux Is Simple

Figuring out the velocity of your NIC may also help you identify what community velocity your card is able to. Now that you understand how to search out the NIC velocity in your Linux system, you can even velocity take a look at your web connection to verify whether or not you’re getting the velocity as promised by your ISP.

You may also like...

Leave a Reply

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