linux虚拟机怎么找不到网卡,Linux虚拟机克隆后网卡找不到问题

解决虚拟机克隆网卡丢失问题

1.克隆后的虚拟机网卡显示如下

[root@ser5 桌面]# ifconfig

lo        Link encap:Local Loopback

inet addr:127.0.0.1  Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING  MTU:16436  Metric:1

RX packets:120 errors:0 dropped:0 overruns:0 frame:0

TX packets:120 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:9340 (9.1 KiB)  TX bytes:9340 (9.1 KiB)

2.解决办法如下

(1)启用eth1网卡

[root@ser5 桌面]# cd /etc/sysconfig/network-scripts/

将eth0重命名为eth1

[root@ser5 network-scripts]# mv ifcfg-eth0 ifcfg-eth1

[root@ser5 network-scripts]#vim  /etc/udev/rules.d/70-persistent-net.rules

# PCI device 0x8086:0x100f (e1000)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}     =="00:0c:29:a9:a0:68", AT

你可能感兴趣的:(linux虚拟机怎么找不到网卡)