虚拟机的centos复制之后没有eth0的解决方法

	在etc/udev/rules.d vi 70-persistent-net.rules这个文件中有多个网卡信息,其中eth0是在之前那台电脑上的信息,而eth1则是在复制过来之后生成的,将eth0删除然后将eth1改成eth0
	然后重启虚拟机
	最好service network restart就可以了

猜你喜欢

转载自blog.csdn.net/u012580143/article/details/84139718