场景:在生产环境中,新安装的服务器,第一次使用scp传输文件时,速度大约在10MB左右,传输文件在同一个网段,正常应该在100MB左右。
mysql@localhost ~]$ sudo
ethtool em1
Settings for em1:
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: 10baseT/Half
10baseT/Full
100baseT/Half
100baseT/Full
1000baseT/Half
1000baseT/Full
Advertised
pause frame use: Symmetric
Advertised
auto-negotiation: Yes
Speed:
100Mb/s
Duplex:
Full
Port:
Twisted Pair
PHYAD:
1
Transceiver:
internal
Auto-negotiation:
on
MDI-X:
on
Supports
Wake-on: g
Wake-on:
d
Current
message level: 0x000000ff (255)
Link
detected: yes
解决方法:service network restart
注意:在启动网络服务之前需要修改/etc/sysconfig/network-scripts/ifcfg-eth0中的ONBOOT=no为ONBOOT=yes,否则启动时无法成功!