MII-TOOL (this is a command to set up a network card working mode)
1. View the work mode of the NIC, enter the command:
# mii-Tool -V
Eth0: Negotiated 100BaseTX-FD, LINK OK
Product Info: Vendor 00: 05: BE, Model 8 Rev 0
Basic Status: AutoNegotiation Complete, Link OK
Basic Mode: AutoNegotiation Enabled.
Capabilities: ............
As can be seen from the above information, this network card works in 100M full-duplex adaptive mode, "100BaseTX-FD" means 100M Full Duplex.
2. Change the work mode of the NIC, enter the command:
# mii-Tool -f Media [Interface]
The MEDIA optional mode has 100BaseTX-FD, 100BaseTX-HD, 10BaseT-FD, 10BaseT-HD, etc. Interface represents the selected network card, such as Eth0, Eth1, etc., default is Eth0.
For example, set the network card to work in 10m semi-duplex mode, enter the command:
# mii-Tool -f 10Baset-HD Eth0
3. Restore the network card's adaptive mode of operation, enter the command:
# mii-Tool -r eth0
More detailed use methods can be obtained with mII-TOOL -H.