Chinaunix首页 | 论坛 | 博客
  • 博客访问: 513562
  • 博文数量: 53
  • 博客积分: 2265
  • 博客等级: 大尉
  • 技术积分: 574
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-15 16:50
文章分类

全部博文(53)

文章存档

2019年(1)

2018年(2)

2016年(2)

2015年(1)

2014年(6)

2013年(5)

2012年(7)

2011年(16)

2010年(13)

分类: LINUX

2011-03-17 16:44:44

在 LINUX 下,如果使用 ifconfig 会出现错误使用:

# ifconfig eth0 media 100baseTx
port: SIOCSIFMAP: Operation not supported


此时,应该使用以下命令:

# mii-tool -F 100baseTx-FD eth0

或者在设定之前可以用以下命令查看网卡的当前情况:

# mii-tool eth0

eth0: negotiated 100baseTx-FD ,link ok
-----

而在 FreeBSD 下面,可以直接使用 ifconfig 进行设置:

# ifconfig fxp0 media 100BaseTX mediaopt full-duplex


或直接将配置写入 /etc/rc.conf 里面,下次启动时也会生效。

ifconfig_fxp0="inet x.x.x.x netmask x.x.x.x media 100BaseTX mediaopt full-duplex" 
阅读(3840) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~