改变网络接口的速度和通信方式的工具miitool 和ethtool
上一篇 / 下一篇 2007-10-11 23:42:38 / 个人分类:网络测试工具
作者:北南南北51Testing软件测试网1d3]Y?2X+H
来自:LinuxSir.Org51Testing软件测试网4S[&C}|~RA F
1、mii-tool 配置网络设备协商方式的工具;
1.1 mii-tool 介绍;51Testing软件测试网~#H,s#e#{%Z
mii-tool - view, manipulate media-independent interface status (mii-tool 是查看,管理介质的网络接口的状态)
)g.V8F Ik!}hq051Testing软件测试网MsvxY5PG有时网卡需要配置协商方式 ,比如10/100/1000M的网卡半双工、全双工、自动协商的配置 。但大多数的网络设备是不用我们来修改协商,因为大多数网络设置接入的时候,都采用自动协商来解决相互通信的问题。不过自动协商也不是万能的,有时也会出现错误,比如丢包率比较高,这时就要我们来指定网卡的协商方式 。
\/D2[r'L7U]0e5Q'O$|aeJ0mii-tool 就是能指定网卡的协商方式。下面我们说一说mii-tool的用法;51Testing软件测试网9M9Z@gX
il_1@5URb5t Mi5u01.2 mii-tool 的用法;51Testing软件测试网vKA-n] @(NC
,["Gf7p'K&Vl3[0mii-tool 在更改网络设备通信协商方式的方法比较简单,用 -v 参数来查看网络接口的状态;看下面的例子;51Testing软件测试网 Y8K't;}7BS
S_dw%TZ+Y&b3M0mii-tool 更改网络接口协商的方法;
"FJio|,E-k?L051Testing软件测试网[*V$ru1t,mo6X[root@localhost ~]# mii-tool --help51Testing软件测试网xg
hU%?
usage: mii-tool [-VvRrwl] [-A media,... | -F media] [interface ...]51Testing软件测试网0VZ ybA;wf,h{
-V, --version display version information51Testing软件测试网*|#A+d]%YA2b#G4w
-v, --verbose more verbose output 注:显示网络接口的信息;
"]%z"xUl0 -R, --reset reset MII to poweron state 注:重设MII到开启状态;51Testing软件测试网5BE6Gl.TbFfpf
-r, --restart restart autonegotiation 注:重启自动协商模式;51Testing软件测试网P;xo1r-kA
-w, --watch monitor for link status changes 注:查看网络接口连接的状态变化;51Testing软件测试网L EV cW
-l, --log with -w, write events to syslog 注:写入事件到系统日志;51Testing软件测试网*PAbNXI
-A, --advertise=media,... advertise only specified media 注:指令特定的网络接口;
2p1I$~ Pq1O(q.R9{0 -F, --force=media force specified media technology 注:更改网络接口协商方式;51Testing软件测试网]{Kz5S@
media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,
.H9|.jh:CT0 (to advertise both HD and FD) 100baseTx, 10baseT
}:J6ba;S6Fef3s,F0