Use linux's mii-tool command network device negotiation tool
This article will explain in detail about the use of linux's mii-tool command network equipment negotiation tool. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
The mii-tool command is used to view and manage the status of the network interface of the media. Sometimes the network card needs to be configured with a negotiation method, such as the half-duplex, full-duplex and auto-negotiation configuration of the network card of 10max 100amp 1000m.
But most of the network devices do not need us to modify negotiation, because most network settings use automatic negotiation to solve the problem of communicating with each other when they set up access. However, automatic negotiation is not omnipotent, and sometimes there will be errors, such as a relatively high packet loss rate, so we have to specify the negotiation method of the network card. Mii-tool means that you can specify the negotiation mode of the network card. Let's talk about the use of mii-tool.
Syntax format: mii-tool [parameters] [device interface]
Common parameters:
-v displays information about the network interface-R reset MII to on-r restart autonegotiation mode-w view changes in the state of the network interface connection-l write events to the Syslog-A directive specific network interface-F change the network interface negotiation mode
Reference example
View the negotiation status of the network interface:
[root@linuxcool] # mii-tool-v eth0
Use the-F parameter to change the network interface eth0 to 1000Mb/s full duplex mode:
[root@linuxcool] # mii-tool-F 100baseTx-FD
Restart autonegotiation mode using-r:
[root@linuxcool] # mii-tool-r eth0 on the use of linux mii-tool command network device negotiation tool to share here, I hope the above content can be helpful to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.