我最近设置了 2 台新购买的 R610 服务器。
概括:
两台服务器的硬件 100% 相同 都安装了 Centos 6.7 64 位 测试了多个交换机端口,同样的缓慢问题。 两台服务器都采用相同的全双工/100mbit 速度 BIOS 6.4.0
一台服务器的测试结果显示速度在 10Mbps 左右,没有问题。有问题的服务器一直很慢,速度不到 1MBps。通过 ssh 登录时也很明显。
[root@server ~]# wget cachefly.cachefly.net/100mb.test
--2015-11-16 12:03:35-- cachefly.cachefly.net/100mb.test
Resolving cachefly.cachefly.net... 205.234.175.175 Connecting to cachefly.cachefly.net|205.234.175.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream] Saving to: “100mb.testâ€
6% [============> ] 7,233,814 538K/s eta 2m 56s
相同的交换机配置
Fa0/1 connected 9 full 100 10/100BaseTX (good server)
Fa0/20 connected 10 full 100 10/100BaseTX (slow server)[
另一个交换机端口也出现了同样的问题。问题同样存在。有点奇怪,因为两台服务器的硬件完全相同。我认为这是 BIOS 中的设置,但我检查了一下,它们看起来完全相同。
安装了最新的 BCM5709 NIC 固件,重新启动。速度仍然很慢
[root@server ~]# ethtool -i em1
driver: bnx2
version: 2.2.5
firmware-version: 7.10.18 bc 7.10.0 NCSI 2.0.13
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no
[root@server ~]# ethtool em1
Settings for em1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Half
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: off
Supports Wake-on: g
Wake-on: d
Link detected: yes
[root@server ~]# dmesg | grep -i duplex
bnx2 0000:01:00.0: em1: NIC Copper Link is Up, 100 Mbps half duplex
答案1
我认为您的接收速度应该超过 10Mbps。请尝试:
ethtool -s em1 speed 100 duplex full autoneg off
。
如果可行,则将其添加到em1配置文件如下:http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html