最佳答案
把eth0 ,eth1 ,eth2的相关行删除掉
2、把eth3的相关行保留,并把eth3改为eth0即可。
[root@ovm0246 ~]# vim/etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated bythe/lib/udev/write_net_rules
# program, run by thepersistent-net-generator.rules rules file.
#
# You can modify it, as long as you keepeach rule on a single
# line, and change only the value of theNAME= key.
# PCI device 0x10ec:0x8139 (8139cp) (customname provided by external tool)
SUBSYSTEM=="net",ACTION=="add", DRIVERS=="?*",ATTR{address}=="52:54:00:12:34:56", ATTR{type}=="1",KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:0x8139 (8139cp)
SUBSYSTEM=="net",ACTION=="add", DRIVERS=="?*",ATTR{address}=="02:00:c0:a8:14:f9", ATTR{type}=="1",KERNEL=="eth*", NAME="eth1"
# PCI device 0x10ec:0x8139 (8139cp)
SUBSYSTEM=="net",ACTION=="add", DRIVERS=="?*",ATTR{address}=="52:54:00:e4:d4:1d", ATTR{type}=="1",KERNEL=="eth*", NAME="eth2"
# PCI device 0x10ec:0x8139 (8139cp)
SUBSYSTEM=="net",ACTION=="add", DRIVERS=="?*",ATTR{address}=="02:00:c0:a8:14:fa", ATTR{type}=="1",KERNEL=="eth*", NAME="eth3"
不能去修改 内核,修改内核会有问题
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论