$linuxjunkies
>

mii-tool(8)

View or manipulate media-independent interface status and configuration for Ethernet devices.

UbuntuDebianFedoraArch

Synopsis

mii-tool [OPTION]... [INTERFACE]...

Description

mii-tool queries and configures the media-independent interface (MII) status of Ethernet devices. It reports link status, speed, and duplex mode, and can force specific speed/duplex settings on network interfaces.

This tool is useful for diagnosing network hardware issues, checking auto-negotiation status, and forcing half or full duplex when auto-negotiation fails. Modern systems often use ethtool instead, but mii-tool remains available on many distributions.

Common options

FlagWhat it does
-A, --advertise=MEDIAAdvertise only the specified media types during auto-negotiation (e.g., 100baseTx-FD)
-F, --force=MEDIAForce the specified speed and duplex (e.g., 100baseTx-FD, 10baseT-HD); disables auto-negotiation
-r, --restartRestart auto-negotiation on the specified interface
-R, --resetReset the MII interface
-l, --logMonitor link status and log changes to syslog
-w, --watchContinuously monitor link status and display changes in real-time
-v, --verboseDisplay more detailed output including raw MII register values
-p, --phySpecify the PHY address to query (advanced use)

Examples

Display the current media type, speed, duplex mode, and status of eth0

mii-tool eth0

Show detailed MII status including raw register values for eth0

mii-tool -v eth0

Force eth0 to 100 Mbps, full duplex (disables auto-negotiation)

mii-tool -F 100baseTx-FD eth0

Force eth0 to 10 Mbps, half duplex for backward compatibility with older equipment

mii-tool -F 10baseT-HD eth0

Restart auto-negotiation on eth0 to renegotiate link speed and duplex

mii-tool -r eth0

Continuously monitor eth0 and display any changes to link status in real-time

mii-tool -w eth0

Display status of multiple interfaces eth0 and eth1

mii-tool eth0 eth1

Related commands