CentOS Linux解决Device eth0 does not seem to be present及设置固定ip
生活随笔
收集整理的這篇文章主要介紹了
CentOS Linux解决Device eth0 does not seem to be present及设置固定ip
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
使用vmware克隆出的虛擬機,在重啟網卡(?service network restart)的時候出現報錯:"Bring?up?interface?eth0:Device eth0 does not seem to be present,delaying?initialization”。
解決方法簡單,如下三步
第一步:刪除文件70-persistent-net.rules
rm -f /etc/udev/rules.d/70-persistent-net.rules第二步:修改ifcfg-eth0及設置固定ip
vi?/etc/sysconfig/network-scripts/ifcfg-eth0
| DEVICE="eth0" BOOTPROTO=static IPV4_FAILURE_FATAL=yes IPV6INIT=no NM_CONTROLLED="yes" ONBOOT="yes" TYPE="Ethernet" IPADDR=192.168.47.101 NETMASK=255.255.255.0 |
第三步:重啟服務器或重啟網卡
重啟服務器
reboot
重啟網卡
service network restart
至此問題解決了。
總結
以上是生活随笔為你收集整理的CentOS Linux解决Device eth0 does not seem to be present及设置固定ip的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 修改map分片个数
- 下一篇: JVM启动的时候,默认加入的属性