您现在的位置是:首页 > 电脑技术查询 > 电脑知识

mii-tool

编辑:chaxungu时间:2022-09-28 09:39:49分类:电脑知识

mii-tool(这是linux下专门设置网卡工作模式的命令)
1.查看网卡的工作模式,输入命令:
#mii-tool-v
eth0:negotiated100basetx-fd,linkok
productinfo:vendor00:aa:00,model56rev0
basicmode:autonegotiationenabled
basicstatus:autonegotiationcomplete,linkok
capabilities:100basetx-fd100basetx-hd10baset-fd10baset-hd
advertising:100basetx-fd100basetx-hd10baset-fd10baset-hdflow-control
linkpartner:100basetx-fd100basetx-hd10baset-fd10baset-hd

从以上信息中可以看出,这块网卡工作在100m全双工自适应模式下,“100basetx-fd”意为100mfullduplex。

2.更改网卡的工作模式,输入命令:
#mii-tool-fmedia[interface]
media可选的模式有100basetx-fd、100basetx-hd、10baset-fd、10baset-hd等。interface代表所选择的网卡,如eth0、eth1等,默认为eth0。
例如,设置网卡工作在10m半双工模式下,输入命令:
#mii-tool-f10baset-hdeth0
3.恢复网卡的自适应工作模式,输入命令:
#mii-tool-reth0
更详细的使用方法可以用mii-tool-h来获得。

上一篇:波导d718

下一篇:g data internet security 2008