mii-tool
rose1 发表于 2020-10-05 00:30浏览次数:
在Linux操作系统上,mii-tool实用程序检查或设置网络接口的媒体独立接口(MII)单元的状态。许多以太网适配器使用MII来自动协商链接速度和双工设置。
On Linux operating systems, the mii-tool utility checks or sets the status of a network interface's Media Independent Interface (MII) unit. Many Ethernet adapters use an MII to autonegotiate link speed and duplex setting.
目录:
1 mii-tool 运行系统环境
2 mii-tool 语法
3 mii-tool 例子
mii-tool 运行系统环境
mii-tool 语法
mii-tool [-v, --verbose] [-V, --version] [-R, --reset] [-r, --restart]
[-w, --watch] [-l, --log] [-A, --advertise=media,...]
[-F, --force=media] [interface ...]
选件
-v, --verbose
|
显示更多详细的MII状态信息。如果使用两次,还将显示原始MII寄存器内容。
|
-V, --version
|
显示程序版本信息。
|
-R, --重置
|
将MII重置为其默认配置。
|
-r, --重新启动
|
重新启动自动协商。
|
-w, --watch
|
监视界面并报告链接状态的变化。MII接口每隔一秒钟轮询一次。
|
-l, --log
|
与-w一起使用时,将链接状态更改记录在系统日志中,而不是在标准输出上打印。
|
-F 媒体, --force=媒体
|
禁用自动协商,并强制MII进行100baseTx-FD,100baseTx-HD,10baseT-FD或10baseT-HD操作。
|
-A 媒体,..., --advertise=媒体,...
|
启用并重新启动自动协商,并仅播发指定的媒体技术。多种技术应以逗号分隔。有效的媒体是100baseT4,100BASE-TX-FD,100BASE-TX-HD,的10baseT-FD和的10baseT-HD。
|
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.
|
mii-tool 例子
mii-tool -v
显示类似于以下输出示例的信息。
product info: Yukon 88E1011 rev 4
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
mii-tool -v
Displays information similar to the example below output.
product info: Yukon 88E1011 rev 4
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD