Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1675917
  • 博文数量: 391
  • 博客积分: 8464
  • 博客等级: 中将
  • 技术积分: 4589
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-13 15:12
个人简介

狮子的雄心,骆驼的耐力,孩子的执著!

文章分类

全部博文(391)

文章存档

2023年(4)

2018年(9)

2017年(13)

2016年(18)

2014年(7)

2013年(29)

2012年(61)

2011年(49)

2010年(84)

2009年(95)

2008年(22)

分类: LINUX

2008-12-13 17:56:56

mii-tool(这是linux下专门设置网卡工作模式的命令)
1. 查看网卡的工作模式,输入命令:

#mii-tool -v
eth0: negotiated 100basetx-fd, link ok

   product info: vendor 00:aa:00, model 56 rev 0
   basic mode: autonegotiation enabled
   basic status: autonegotiation complete, link ok
   capabilities: 100basetx-fd 100basetx-hd 10baset-fd 10baset-hd
   advertising:   100basetx-fd 100basetx-hd 10baset-fd 10baset-hd flow-control
   link partner: 100basetx-fd 100basetx-hd 10baset-fd 10baset-hd

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

2. 更改网卡的工作模式,输入命令:
#mii-tool -f media [interface]

media可选的模式有100basetx-fd、100basetx-hd、10baset-fd、10baset-hd等。 interface代表所选择的网卡,如eth0、eth1等,默认为eth0。

例如,设置网卡工作在10m半双工模式下,输入命令:
#mii-tool -f 10baset-hd eth0

3. 恢复网卡的自适应工作模式,输入命令:
#mii-tool -r eth0

更详细的使用方法可以用mii-tool -h来获得。
阅读(886) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~