基础网络设置-拓展
解决克隆后网卡变成eth1的问题
[root@jason rules.d]# vi /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:77:a0:8a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
~
~
...//省略
~
~
"/etc/udev/rules.d/70-persistent-net.rules" 8L, 420C
ATTR和NAME要一一对应。