centos开机无法加载eth0

今天小组成员碰到一个情况:

centos6.9只有eth0网卡,但是每次开机启动后都显示的是eth2

经查找,和开机mac自启动网卡有关,涉及文件

/etc/udev/rules.d/70-persistent-net.rules

[imkindu@centos6 scripts]$ cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:96:be:9c", ATTR{type}=="1", KERNEL=="eth*",   NAME="eth0"
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容