VMWare拷贝另外一台电脑上的Linux虚拟机网卡不能启动

 

 

查看所有接口及MAC

# ifconfig -a

 

修改 70-persistent-net.rules文件

[root@localhost ~]# 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:45:fa:3f", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:45:fa:35", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

修改接口配置

# vi /etc/sysconfig/network-scripts/ifcfg-eth0
...
HWADDR="00:0c:29:45:fa:35"
...
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
...
HWADDR="00:0c:29:45:fa:3f"
...

重启设备reboot

 

发表回复