在对network 进行restart 提示如下信息
确认以下信息, 在是udev中rule的
ATTR{address}值 和HWaddr 与ifcfg-eth0 中hwaddr不对称。
解决方式:
1、修改ifcfg-eth0中的hwaddr值,
2、删除/etc/udev/rules.d/70-persistent-net.rules 文件
3、重启服务后
点击(此处)折叠或打开
- [root@mhxy171 ~]# service network restart
- Shutting down loopback interface: [ OK ]
- Bringing up loopback interface: [ OK ]
- Bringing up interface eth0: Error: No suitable device found: no device found for connection 'System eth0'.
- [FAILED]
- [root@mhxy171 ~]#
点击(此处)折叠或打开
- [root@mhxy171 ~]# ifup eth0
- Error: No suitable device found: no device found for connection 'System eth0'.
- [root@mhxy171 ~]# ls /etc/sysconfig/network-scripts/
- ifcfg-eth0 ifdown-bnep ifdown-ipv6 ifdown-ppp ifdown-tunnel ifup-bnep ifup-ipv6 ifup-plusb ifup-routes ifup-wireless network-functions
- ifcfg-lo ifdown-eth ifdown-isdn ifdown-routes ifup ifup-eth ifup-isdn ifup-post ifup-sit init.ipv6-global network-functions-ipv6
- ifdown ifdown-ippp ifdown-post ifdown-sit ifup-aliases ifup-ippp ifup-plip ifup-ppp ifup-tunnel net.hotplug
- [root@mhxy171 ~]# cat /etc/udev/rules.d/70-persistent-net.rules
- # This file was automatically generated by the /lib/udev/write_net_rules
- # program, run by the persistent-net-generator.rules rules file.
- #
- # You can modify it, as long as you keep each rule on a single
- # line, and change only the value of the NAME= key.
- # PCI device 0x15ad:0x07b0 (vmxnet3)
- SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:bf:68:9c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
- # PCI device 0x15ad:0x07b0 (vmxnet3)
- SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:b9:53:ab", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
- [root@mhxy171 ~]# ifconfig
- eth1 Link encap:Ethernet HWaddr 00:50:56:B9:53:AB
- inet addr:192.168.0.159 Bcast:192.168.0.255 Mask:255.255.255.0
- inet6 addr: fe80::250:56ff:feb9:53ab/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:3681 errors:0 dropped:0 overruns:0 frame:0
- TX packets:309 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:263826 (257.6 KiB) TX bytes:41185 (40.2 KiB)
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:16436 Metric:1
- RX packets:50 errors:0 dropped:0 overruns:0 frame:0
- TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:3348 (3.2 KiB) TX bytes:3348 (3.2 KiB)
- [root@mhxy171 ~]#
1、修改ifcfg-eth0中的hwaddr值,
2、删除/etc/udev/rules.d/70-persistent-net.rules 文件
3、重启服务后
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27039319/viewspace-2123602/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/27039319/viewspace-2123602/