Using mii-tool or ethtool to configure speed and duplex in secure platform

 

NOTE: mii-tool does not work with all NIC's. ethtool has been provided to configure non mii-compliant NIC's.

In expert mode, use "mii-tool" to hard code link speed and duplex settings of network interfaces.

For example:
# mii-tool eth1 -F 100baseTx-FD

This will force the eth1 interface to 100 Mbps link speed, full duplex.

# mii-tool eth0 -F 10baseT-HD

Will force eth0 to 10Mbps link speed and half duplex.

The commands can be put at the end of the /etc/rc.local startup script in order to survive a reboot.

The full usage of the command is:
mii-tool [-v, --verbose] [-V, --version] [-R, --reset] [-r, --restart] [-w, --watch] [-l, --log] [-A, --advertise=media,...] [-F, --force=media] [interface ...]

OPTIONS
-v, --verbose
Display more detailed MII status information. If used twice, also display raw MII register contents.
-V, --version
Display program version information.
-R, --reset
Reset the MII to its default configuration.
-r, --restart
Restart autonegotiation.
-w, --watch
Watch interface(s) and report changes in link status. The MII interfaces are polled at one second intervals.
-l, --log
Used with -w, records link status changes in the system log instead of printing on standard output.
-F media, --force=media
Disable autonegotiation, and force the MII to either 100baseTx-FD, 100baseTx-HD, 10baseT-FD, or 10baseT-HD operation.
-A media,..., --advertise=media,...
Enable and restart autonegotiation, and advertise only the specified media technologies. Multiple technologies should be separated by commas. Valid media are 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, and 10baseT-HD

< back