ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux No suitable device found: no device found for connection 'System eth0'

linux No suitable device found: no device found for connection 'System eth0'

原创 Linux操作系统 作者:呱呱牛 时间:2016-08-17 10:55:17 0 删除 编辑
在对network 进行restart 提示如下信息

点击(此处)折叠或打开

  1. [root@mhxy171 ~]# service network restart
  2. Shutting down loopback interface: [ OK ]
  3. Bringing up loopback interface: [ OK ]
  4. Bringing up interface eth0: Error: No suitable device found: no device found for connection 'System eth0'.
  5. [FAILED]
  6. [root@mhxy171 ~]#
确认以下信息, 在是udev中rule的ATTR{address}值 和HWaddr 与ifcfg-eth0 中hwaddr不对称。

点击(此处)折叠或打开

  1. [root@mhxy171 ~]# ifup eth0
  2. Error: No suitable device found: no device found for connection 'System eth0'.
  3. [root@mhxy171 ~]# ls /etc/sysconfig/network-scripts/
  4. ifcfg-eth0 ifdown-bnep ifdown-ipv6 ifdown-ppp ifdown-tunnel ifup-bnep ifup-ipv6 ifup-plusb ifup-routes ifup-wireless network-functions
  5. ifcfg-lo ifdown-eth ifdown-isdn ifdown-routes ifup ifup-eth ifup-isdn ifup-post ifup-sit init.ipv6-global network-functions-ipv6
  6. ifdown ifdown-ippp ifdown-post ifdown-sit ifup-aliases ifup-ippp ifup-plip ifup-ppp ifup-tunnel net.hotplug
  7. [root@mhxy171 ~]# cat /etc/udev/rules.d/70-persistent-net.rules
  8. # This file was automatically generated by the /lib/udev/write_net_rules
  9. # program, run by the persistent-net-generator.rules rules file.
  10. #
  11. # You can modify it, as long as you keep each rule on a single
  12. # line, and change only the value of the NAME= key.
  13. # PCI device 0x15ad:0x07b0 (vmxnet3)
  14. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:bf:68:9c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
  15. # PCI device 0x15ad:0x07b0 (vmxnet3)
  16. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:b9:53:ab", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
  17. [root@mhxy171 ~]# ifconfig
  18. eth1 Link encap:Ethernet HWaddr 00:50:56:B9:53:AB
  19. inet addr:192.168.0.159 Bcast:192.168.0.255 Mask:255.255.255.0
  20. inet6 addr: fe80::250:56ff:feb9:53ab/64 Scope:Link
  21. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  22. RX packets:3681 errors:0 dropped:0 overruns:0 frame:0
  23. TX packets:309 errors:0 dropped:0 overruns:0 carrier:0
  24. collisions:0 txqueuelen:1000
  25. RX bytes:263826 (257.6 KiB) TX bytes:41185 (40.2 KiB)
  26. lo Link encap:Local Loopback
  27. inet addr:127.0.0.1 Mask:255.0.0.0
  28. inet6 addr: ::1/128 Scope:Host
  29. UP LOOPBACK RUNNING MTU:16436 Metric:1
  30. RX packets:50 errors:0 dropped:0 overruns:0 frame:0
  31. TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
  32. collisions:0 txqueuelen:0
  33. RX bytes:3348 (3.2 KiB) TX bytes:3348 (3.2 KiB)
  34. [root@mhxy171 ~]#
解决方式:
1、修改ifcfg-eth0中的hwaddr值, 
2、删除/etc/udev/rules.d/70-persistent-net.rules 文件
3、重启服务后


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27039319/viewspace-2123602/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-05-29

  • 博文量
    96
  • 访问量
    286800