概要:
ethtool ethX
ethtool –h
ethtool –i ethX
ethtool –d ethX
ethtool –r ethX
ethtool –S ethX
ethtool –s ethX [speed 10|100|1000]\
[duplex half|full]\
[autoneg on|off]\
[port tp|aui|bnc|mii]\
[phyad N]\
[xcvr internal|exteral]\
[wol p|u|m|b|a|g|s|d...]\
[sopass xx:yy:zz:aa:bb:cc]\
[msglvl N]
举例:
1)[root@linux /]# ethtool eth1
2)[root@linux /]# ethtool -i eth1
3)[root@linux /]# ethtool -S eth1
4)[root@linux /]# ethtool -s eth1 autoneg off speed 100 duplex full
相关:
1)[root@linux /]# which ethtool
2)[root@linux /]# rpm -qf /sbin/ethtool
3)怎样使ethtool设置永久保存在网络设备中?
例如:ethtool -s eth0 speed 100 duplex full autoneg off
此指令将eth0设备设置为全双工自适应,速度为100Mbs。若要eth0启动时设置这些参数, 修改文件/etc/sysconfig/network-scripts/ifcfg-eth0 ,添加如下一行:
解决方法二:
将ethtool设置写入/etc/rc.d/rc.local之中。