vim /etc/udev/rules.d/70-persistent-net.rules #查看时候识别了第二块网卡
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e2:3a:b2", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e2:3a:bc", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
查看识别----》复制eth1 mac地址
[root@38 network-scripts]# cp ifcfg-eht0 ifcfg-eht1
[root@38 network-scripts]# cp ifcfg-eht0 ifcfg-eht1
DEVICE=eth1
HWADDR=00:0c:29:e2:3a:bc
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
修改网卡名字 修改mac地址
来源:oschina
链接:https://my.oschina.net/u/1420001/blog/346297