本文已参与「新人创作礼」活动,一起开启掘金创作之路。
在使用vmware workstation克隆好一个centos6之后,去更改克隆的centos6的网卡ip后,执行命令service network restart报错
Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization.
vim /etc/udev/rules.d/70-persistent-net.rules
把原先的eth0删掉或注释掉,然后将eth1改为eth0
注意:看你的配置文件中你的网卡配置文件名是eth0就写成eth0,如果是ens33,那就写成ens33。
更改网卡配置文件的mac地址
vim /etc/sysconfig/network-scripts/ifcfg-eth0
将配置文件中的mac地址改成vmware里的网卡配置里看到的mac地址