Force the speed and duplex of a Linux ethernet interface

Using mii-tool, the speed and duplex of an ethernet interface can be set manually.


You must set both the speed and duplex at the same time (it is not possible to auto-negotiate only one). Typical combinations are the following:

100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD

To set 100 Mbps and full duplex on interface eth0, for example, use:

mii-tool -F 100baseTx-FD eth0

 

About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.

Leave a Reply

You may also like-

Solaris: Check hme ethernet link speed, duplex, and statusSolaris: Check hme ethernet link speed, duplex, and statusWhen troubleshooting networking issues, it is often helpful to determine the state of an ethernet interface. Solaris offers access to many configurable networking parameters ... Determine Linux ethernet interface speed and duplexDetermine Linux ethernet interface speed and duplexDetermine the auto-negotiated Ethernet connection speed and duplex using the mii-tool command. Running the following command as superuser with no options will generate basic ...