downmovies 发表于 2018-6-6 15:02:42

解决VMware克隆CentOS Linux后eth0不能用的问题

  在VMware里克隆出来的CentOS Linux,ifconfig...没有看到eth0.。然后重启网卡又报下面错误。
  Bringing up interface eth0:Device eth0 does not seem to be present,delaying initialization.                  
   vi    /etc/sysconfig/network-scripts/ifcfg-eth0 设置了IP地址后仍没有用。
  
  解决方案:
  vi /etc/udev/rules.d/70-persistent-net.rules记下mac地址,如下:
  00-0c-29-a5-38-77eth0
  00-0C-29-4f-1e-d6eth1
  然后 vi /etc/sysconfig/network-scripts/ifcfg-eth0
  

  将 DEVICE="eth0"改成DEVICE="eth1",
  将 HWADDR="00:0c:29:8f:89:97" 改成上面的mac地址HWADDR="00-0C-29-4f-1e-d6"
  

  最后,重启网络
  

  # service network restart
  或者
  

  # /etc/init.d/network restart
  

  正常了。
  

  

  
页: [1]
查看完整版本: 解决VMware克隆CentOS Linux后eth0不能用的问题