首页 > 代码库 > centos 双网卡 eth0 eth1 配置
centos 双网卡 eth0 eth1 配置
复制了一个eth0 的网卡 内容为eth1
但是在service network restart 重启的时候
出现
[root@ssc ~]# service network restartShutting down interface eth0: [ OK ]Shutting down loopback interface: [ OK ]Bringing up loopback interface: [ OK ]Bringing up interface eth0: Determining IP information for eth0... done. [ OK ]Bringing up interface eth1: Device eth1 does not seem to be present, delaying initialization. [FAILED]
解决方法如下:
打开文件
vim /etc/udev/rules.d/70-persistent-net.rules
查看eth2 的MAC地址
将 DEVICE="eth0" 改成 DEVICE="eth1" ,
将 HWADDR="xx:xx:xx:xx:xx:xx" 改成上面的mac地址 HWADDR="xx:xx:xx:xx:xx:xx"
重启网卡 解决
centos 双网卡 eth0 eth1 配置
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。