在Linux中用service network restart
提示:Device eth0 has different MAC address than expected, ignoring
开机时也有这个提示。
解决方法:
第一步:
检查/etc/sysconfig/network-scripts/ifcfg-eth0
文件中的MAC地址
内容如下:
同时检查虚拟机安装此linux
系统文件夹中的vmx
文件。
第二步:
修改ifcfg-eth0
文件,将MAC
地址改成与vmx
文件中ethernet0.generatedAddress
一样。
第三步:
service network restart
这样应该可以提示成功。