Use of NIC tool ethtool

ethtool eth0 //Query the basic settings of the ethx network port, where x is the number of the corresponding network card, such as eth0, eth1, etc.
ethtool –h //Display the command help of
ethtool (help) ethtool –i eth0 //Query the related eth0 network port Information
ethtool –d eth0 //Query the registration information of eth0 network port
ethtool –r eth0 //Reset eth0 network port to adaptive mode
ethtool –S eth0 //Query eth0 network port receiving and sending packet statistics
ethtool –s eth0 [speed 10| 100|1000] [duplex half|full] [autoneg on|off] //Set the network port rate to 10/100/1000M, set the network port half/full duplex, set whether the network port is auto-negotiation

Guess you like

Origin blog.csdn.net/luolan_hust/article/details/113665143