CentOS 5.x
我将CenTOS服务器configuration为使用全双工。 我通过编辑networking脚本来做到这一点:
more /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.1.200 NETMASK=255.255.255.0 HWADDR=00:14:5E:0C:8B:E3 ETHTOOL_OPTS="speed 100 duplex full autoneg off"
(IP和MAC已经更名为保护无辜=))
做这个改变之后,我运行了服务networking重启
如果我运行mii-tool ,我会看到:
eth0: no autonegotiation, 100baseTx-HD, link ok
但是,如果我运行ethtool eth0 ,我会看到:
Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: Not reported Advertised auto-negotiation: No Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: off Supports Wake-on: g Wake-on: g Current message level: 0x000000ff (255) Link detected: yes
为什么双面打印有差异? Mii-tool认为它是一半,ethtool认为它已经满了。
ethtool没有实际查询当前的双工状态吗?
这可能是骗你的工具 – 但是,他们中的一个错了。 我相信ethtool,因为我相信现在大多数的驱动程序都支持它,但是最终这些工具中的任何一个都只能相信驱动程序告诉他们的是什么。 问你的交换机是怎么想的,就像是一个“独立的观察者”。