Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox

Mii-tool command

From NetworkCommands


Image:Tux_64x64.png

A command line program available on most Linux platforms; used to configure and monitor Ethernet interface speed, duplex and auto-negotiation.

Contents

Image:Vm-power-on-medium.png 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

Image:Vm-power-on-medium.png 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

Image:accessories-text-editor-v2-medium.png 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.

Image:accessories-text-editor-v2-medium.png 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

Image:icemon-medium.png Related Commands

Use the ifconfig command can be used to display basic interface up/down status and other information

Image:object-flip-horizontal-medium.png 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

Image:object-flip-vertical-medium.png Command Alternatives

The ethtool command performs most of the same functions as this command.

Image:icemon-medium.png Related Articles

Information on other Linux commands Image:Tux-small.png

Information on F5 BigIP commands Image:F5-logo-small.png

Information on Cisco commands Image:Cisco-logo-small.png

Information on Vyatta commands Image:Vyatta-logo-small.png

Information on Extreme commands Image:Extreme-logo-small.png

Information on Zebra commands

Information on Secure Platform commands

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands


Image:internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)



Site Toolbox:

Personal tools
This page was last modified on 19 December 2008, at 18:21. - This page has been accessed 42 times. - Disclaimers - About NetworkCommands
Powered by MediaWiki