Mii-tool command
From NetworkCommands
A command line program available on most Linux platforms; used to configure and monitor Ethernet interface speed, duplex and auto-negotiation.
Contents |
Usage Syntax
mii-tool [options] interface
Common options include;
- -v - display verbose information
- -r - restart autonegotiation
- -R - reset interface to it's default mii configuration
- -w - watch link status and report changes. The interface is polled every second
- -F media - force or hard-code the link to use the speed and duplex specified by media
Valid parameters for media are;
- 100baseTx-FD - 100Mb Speed, Full Duplex
- 100baseTx-HD - 100Mb Speed, Half Duplex
- 10baseT-FD - 10Mb Speed, Full Duplex
- 10baseT-HD - 10Mb Speed, Half Duplex
Usage Examples
mii-tool eth0 - display basic mii information; auto-negotiation, speed, duplex and link status for interface eth0
mii-tool -v eth0 - display verbose information including mii capabilities and advertised media
mii-tool -F 100baseTx-HD eth0 - force interface eth0 to 100Mb, Full Duplex
Usage Notes
Change made with this command are not persistent and do not survive a reboot/restart. To ensure persistence, add commands as necessary to your system's /etc/rc.local startup script.
Linux Usage Notes
With most Linux or Unix commands;
- Brief help can be displayed using the option/keyword: -h or --help, for example: chmod --help
- A full command manual can be displayed using the man command followed by the command name, for example: man chmod
- Sometimes 'info' pages are used instead of or to provide more information than man pages; for example: info chmod
- Version information can be display using the option/keyword: -v or --version, for example: chmod --version
Related Commands
Use the ifconfig command can be used to display basic interface up/down status and other information
Command Equivalents
The Cisco command equivalents are the speed command and duplex command
The Extreme command equivalent is the configure port command
The F5 BigIP command equivalent is the bigpipe interface command
Command Alternatives
The ethtool command performs most of the same functions as this command.
Related Articles
Information on other Linux commands
Information on F5 BigIP commands
Information on Cisco commands
Information on Vyatta commands
Information on Extreme commands
Information on Zebra commands
Information on Secure Platform commands
Information on Blue Coat SGOS commands
Information on Nokia IPSO commands







