1, problem description
[[email protected] ~]# Ping www.baidu.com
Connect: Network Unreachable
[Email protected] ~]#
[[email protected] ~]# Ping www.baidu.com
Connect: Network Unreachable
[Email protected] ~]# ifconfig eth0 192.168.121.51 netmask 255.255.255.0 broadcast 192.168.121.255
[[email protected] ~]# route add default GW 192.168.120.1
SIOCADDRT: No that process
[Email protected] ~]#
The network IP address settings did not succeed and failed.
2,network Start Error
Shutting down interface eth0: Error: Disconnecting device ' eth0 ' (/org/freedesktop/networkmanager/devices/0) failed: This device was not active;
3, Close NetworkManager
See online there is said to be networkmanager affect the/etc/init.d/network, so close NetworkManager
[[Email protected] ~]# service NetworkManager stop
Stop NetworkManager daemon: [OK]
[Email protected] ~]#
Also has no effect, service network restart failed.
4. View Ifcfg-eth0 configuration Issues
[Email protected] ~]# Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0
Type=ethernet
Uuid=fd7935ed-d944-4a1a-81eb-bf72b1e368c0
Onboot=no
Nm_controlled=yes
Bootproto=none
hwaddr=00:0c:29:cd:1f:68
ipaddr=192.168.121.52
Prefix=23
gateway=192.168.120.1
dns1=192.168.121.212
Defroute=yes
Ipv4_failure_fatal=yes
Ipv6init=no
Name= "System eth0"
See Onboot=no, this configuration is invalid, should be configured to guess Yes, no is the network card does not activate the failed settings. Change to Yes
5, restart Network
/etc/init.d/network restart, after the effective, network problem solved.
Reference article address: http://blog.sina.com.cn/s/blog_6f74890d010195xm.html
Shutting down interface eth0: Error: Disconnecting device ' eth0 '