遇到两台机器的万兆铜线网卡怎么也弄不通(万兆网卡的类型为:Intel Corporation 82598EB 10 Gigabit AF Network Connection),这种情况发生过几次了,后来经过测试发现使用下面这些办法后,就会莫名其妙的通了:
ethtool -s eth4 advertise 0x03F
设置速度为1000Mb,然后再把速度改回去:
ethtool -s eth4 advertise 0x800
好果还不通,把万兆网卡的驱动重新装载:
rmmod ixgbe
modprobe ixgbe
然后再:
ethtool -s eth4 advertise 0x03F
ethtool -s eth4 advertise 0x800
万兆网卡不指定速度为10000,不知道为什么:
运行ethtool -s eth4 speed 10000后直接出ethtool的帮助信息,所以如果想改动万兆网卡的速度,需要使用advertise子项。
不能关闭自动协商参数:
[root@ctr_db3 etc]# ethtool -s eth4 autoneg off
Cannot set new settings: Invalid argument
not setting autoneg
[root@ctr_db3 etc]# ethtool -s eth4 advertise 0x800 autoneg off speed 1000 duplex full
Cannot set new settings: Invalid argument
not setting