当我在eth0上运行ethtool命令时(在VM机器redhat版本6.7上)
我看到支持自动协商:没有
我们可以改变这个 – 自动协商:是吗? ,它是可configuration的吗?
ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 1000baseT/Full 10000baseT/Full Supported pause frame use: No Supports auto-negotiation: No Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Speed: 10000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: off MDI-X: Unknown Supports Wake-on: uag Wake-on: d Link detected: yes
该
在/ etc / sysconfig / network中的脚本/的ifcfg-eth0的
文件可以添加ethtool设置,以便每次激活设备时保存和使用设置。
configuration文件选项
ETHTOOL_OPTS="speed <100|1000|10000> duplex <half|full> autoneg <on|off>"
在你的configuration文件的最后添加这行:
ETHTOOL_OPTS =“速度1000双工全自动开启”
和
/etc/init.d/network restart