CentOS 重启网卡报错 Determining if ip address x.x.x.x is already in use的解决方法

今天,在重启网卡的时候发现了如下的问题!

service network restart
[root@youzi ~]# service network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Determining if ip address x.x.x.x is already in use for device eth0...
                                                           [  OK  ]

CentOS 默认开启了ARPCHECK,将其关闭即可解决:

sed -i "ARPCHECK=no" >> /etc/sysconfig/network-scripts/ifcfg-eth0</code>
然后在重启网卡就会发现一切正常了
<pre class="brush: php; gutter: true">[root@youzi ~]# service network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]
用支付宝打赏用支付宝打赏 用微信打赏用微信打赏

如果文章对你有帮助,欢迎点击上方按钮打赏作者


最后编辑于:2018/10/11作者: 游子

热爱一切美好的新事物,搞网站也被网站搞,剁手折腾。关注与学习Web相关技术与UI\UE\UED\UCD\Server相关知识,服务器运维、前端、后端、非专业程序猿、非高级前端后端攻城师!

暂无评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注

arrow grin ! ? cool roll eek evil razz mrgreen smile oops lol mad twisted wink idea cry shock neutral sad ???