虚拟机拷贝到其它机器之后,启动:然后用ifconfig -a发现eth0没有IP地址,查看

/etc/sysconfig/network-scripts/ifcfg-eth0文件,发现IP地址已经指定了,使用service network restart命令,提示:

正在关闭接口 eth0: 错误:断开设备'eth0'(/org/freedesktop/NetworkManager/Devices/0)失败:This device isnot active

 

解决方法:修改/etc/sysconfig/network-scripts/ifcfg-eth0文件,注释掉其中的:

#HWADDR=00:0C:29:8A:2A:E1

这一行。

然后重启虚拟机就可以。

 

相关文章:

  • 2021-12-25
  • 2022-12-23
  • 2021-08-16
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2021-07-25
相关资源
相似解决方案