1)背景:

centos 6.8默认两块网卡:

eth0:10.0.0.8/24

eth1:172.16.1.8/24

现在在vmware workstation上面把虚机的eth0删除,只保留eth1

2)启动网卡报错:

Determining if ip address 172.16.1.8 is already in use for device eth1...

[root@web01 ~]# ifdown eth1

[root@web01 ~]# ifup eth1  

Determining if ip address 172.16.1.8 is already in use for device eth1...

[root@web01 ~]# 

3)解决方法:

发现配置文件中ifcfg-eth0和ifcfg-eth1都还在,只是网卡的编号变了。

把配置文件里面的信息和网卡对应起来就可以使用网卡了。

待完善..........