Shutting down interface eth0: Error: Disconnecting device ' eth0 '

Source: Internet
Author: User

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 '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.