一个虚拟机占用两个IP

  • Post author:
  • Post category:其他


Shutting down interface eth0:                              [  OK  ]

Shutting down loopback interface:                          [  OK  ]

Bringing up loopback interface:                            [  OK  ]

Bringing up interface eth0:                                [  OK  ]

fgrep: ifcfg-ifcfg-eth0=192.168.231.2S=192.168.231.2: No such file or directory

fgrep: ifcfg-ifcfg-eth0=192.168.231.2S=192.168.231.2: No such file or directory

fgrep: ifcfg-ifcfg-eth0=192.168.231.2S=192.168.231.2: No such file or directory

Bringing up interface ifcfg-eth0=192.168.231.2S=192.168.231.2:  Determining if ip address 192.168.231.201 is already in use for device eth0…

RTNETLINK answers: File exists

[  OK  ]

解决方法:/etc/sysconfig/network-scripts路径下有一个ifcfg-eth0的副本,副本上有另外一个ip的地址,因此占用了两个IP



版权声明:本文为komonder原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。