Closing interface eth0: error: disconnect the device 'eth0'

Label Eth0
1428 people read comment(0) Collection Report
Classification:

1, problem description

[root@pdshow Ping www.baidu.com ~]#
Connect: network is not reachable
[root@pdshow ~]#

[root@pdshow Ping www.baidu.com ~]#
Connect: network is not reachable
[root@pdshow ifconfig eth0 192.168.121.51 netmask 255.255.255.0 broadcast ~]# 192.168.121.255
[root@pdshow route add default gw 192.168.120.1 ~]#
SIOCADDRT: did not have that process
[root@pdshow ~]#
Network IP address setting is not successful, the failure of the.


2, network start error

Closing the interface eth0: error: disconnect the device 'eth0' (/org/freedesktop/NetworkManager/Devices/0) failed: device is not active This;


3, close NetworkManager

See the Internet has said that the NetworkManager affected the /etc/init.d/network, so close the NetworkManager
[root@192 service NetworkManager stop ~]#
Stop NetworkManager guard process: [determine]
[root@192 ~]#

Also no effect, network restart service failed.


4, view the ifcfg-eth0 configuration problem

[root@192 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
System "eth0 NAME="

See ONBOOT=no, this configuration failure, should be configured as a yes no card is not activated, failure set. Changed to yes


5, restart network

Restart /etc/init.d/network, after the entry into force, the network problem is solved.

Reference article address:Http://blog.sina.com.cn/s/blog_6f74890d010195xm.html

top
One
step on
Zero
Guess you're looking for
View comments
* the above user comments only represent their personal views, does not represent the views or position of the CSDN website
    personal data
    • Visit1001849 times
    • Integral:Sixteen thousand and sixty-nine
    • Grade
    • Rank:318th name
    • Original438
    • Reproduced:3
    • Translation:2
    • Comments:523
    My lessons
    Blog column
    Technology URL link
    Http://dev.mysql.com/doc/
    最新评论