Linux command
mii-tool 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show interface status
mii-tool [eth0]
Show all interfaces
mii-tool
Verbose output
mii-tool -v [eth0]
Watch status
mii-tool -w [eth0]
Force speed
mii-tool -F [100baseTx-FD] [eth0]
Reset interface
mii-tool -R [eth0]
说明
mii-tool checks network link status. It shows speed, duplex, and link state. The tool uses MII (Media Independent Interface) to query Ethernet adapters. Supported media types include 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, and 10baseT-HD.
参数
- -v
- Verbose output.
- -w
- Watch for changes.
- -F _MEDIA_
- Force media type.
- -R
- Restart negotiation.
- -A _MEDIA,MEDIA,..._
- Advertise only specified media types for autonegotiation.
- -V
- Display version information.
- --help
- Display help information.
FAQ
What is the mii-tool command used for?
mii-tool checks network link status. It shows speed, duplex, and link state. The tool uses MII (Media Independent Interface) to query Ethernet adapters. Supported media types include 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, and 10baseT-HD.
How do I run a basic mii-tool example?
Run `mii-tool [eth0]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v do in mii-tool?
Verbose output.