在CentOS上通过命令:service network restart 重启网卡,
总提示:/org/freedesktop/NetworkManager/ActiveConnection/(n)
经查是NetworkManager
Determining if ip address 192.168.100.201 is already in use for device eth0.
# service network restart
正在关闭接口 eth0: [确定]
关闭环回接口: [确定]
弹出环回接口: [确定]
弹出界面 eth0: Determining if ip address 192.168.100.201 is already in use for device eth0...[确定]
开始以为是IP地址冲突了,但是经排查,发现就只有这台服务器上使用了这个IP地址,然后查询相关资料,发现是在CentOS 6.5默认开启了ARPCHECK,将其关闭即可解决:
# sed -i "ARPCHECK=no" >> /etc/sysconfig/network-scripts/ifcfg-eth0
然后在重启网卡就会发现一切正常了
# service network restart
正在关闭接口 eth0: [确定]
关闭环回接口: [确定]
弹出环回接口: [确定]
弹出界面 eth0: [确定]