Mii-tool (this command specifically sets the NIC working mode in linux)
Source: Internet
Author: User
Mii-tool (this is a command specifically used to set the NIC working mode in linux)-Linux Enterprise Application-Linux server application information. For details, see the following. 1. view the NIC working mode and enter the following command:
# Mii-tool-v
Eth0: negotiated 100basetx-fd, link OK
Product info: vendor 00: aa: 00, model 56 rev 0
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
From the above information, we can see that this network card works in 100 m full duplex adaptive mode, "basetx-fd" means m full duplex.
2. Change the NIC working mode and enter the following command:
# Mii-tool-f media [interface]
Media optional modes include 100basetx-fd, 100basetx-hd, 10baset-fd, and 10baset-hd. Interface indicates the selected Nic, such as eth0 and eth1. The default value is eth0.
For example, to set the NIC to work in 10 M half duplex mode, enter the following command:
# Mii-tool-f 10baset-hd eth0
3. Restore the adaptive working mode of the Network Adapter. Enter the following command:
# Mii-tool-r eth0
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.