In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use the mii-tool command in Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Linux commonly used commands mii-tool commands are used to view and manage the status of the network interface of the media. Sometimes the network card needs to be configured with negotiation methods, such as the half-duplex, full-duplex and auto-negotiation configuration of the network card of 10amp 100amp 1000m.
Tools for mii-tool to configure the negotiation mode of network devices
It is added that most 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 are set up for 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 usage: mii-tool [- VvRrwl] [- A media,... |-F media] [interface...] Option-V displays version information;-v displays information about the network interface;-R resets MII to on;-r restarts autonegotiation mode;-w views changes in the state of the network interface connection;-l writes events to the system log;-A commands specific network interfaces;-F changes the network interface negotiation mode. Media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD, (to advertise both HD and FD) 100baseTx, 10baseT instance to view the negotiation status of network interfaces:
[root@localhost] # mii-tool-v eth0 eth0: negotiated 100baseTx-FD, link ok product info: vendor 00:50:ef, model 60 rev 8 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD Note: in the above example, we can see that it is autonegotiation. Pay attention to the scarlet letter.
Change how the network interface is negotiated:
To change the negotiation mode of the network interface, we need to use the-F option, which can be followed by 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD and other parameters.
What if we want to change the network interface eth0 to 1000Mb/s full-duplex mode?
[root@localhost] # mii-tool-F 100baseTx-FD [root@localhost] # mii-tool-v eth0 eth0: 100Mbit, full duplex, link ok product info: vendor 00:00:00, model 0 rev 0basic mode: 100Mbit, full duplex basic status: link ok capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD Note: have you changed it? Of course, we also use the ethtool tool to change it, such as executing the following command:
[root@localhost] # ethtool-s eth0 speed 100duplex full article on "how to use mii-tool commands in Linux" ends here. I hope the above content can be helpful to you so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.