linux 6.x network device not active

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux 6.x network device not active相关的知识,希望对你有一定的参考价值。

[[email protected] Desktop]# service networkrestart

Shutting down interface eth0: Error: Device\‘eth0\‘ (/org/freedesktop/NetworkManager/Devices/0)disconnecting failed: This device is not active

                                                           [FAILED]

Shutting down loopback interface: [ OK ]

Bringing up loopback interface: [ OK ]

Bringing up interface eth0: Error:Connection activation failed: Device not managed by NetworkManager orunavailable

                                                          [FAILED]

[[email protected] Desktop]# chkconfig NetworkManager off

[[email protected] Desktop]# chkconfig network on

[[email protected] Desktop]# service NetworkManager stop

Stopping NetworkManager daemon: [ OK ]

[[email protected] Desktop]# service networkstart

Bringing up loopback interface: [ OK ]

Bringing up interface eth0: [ OK ]

RTNETLINK answers: File exists

RTNETLINK answers: File exists

RTNETLINK answers: File exists

RTNETLINK answers: File exists

RTNETLINK answers: File exists

RTNETLINK answers: File exists

RTNETLINK answers: File exists

RTNETLINK answers: File exists

RTNETLINK answers: File exists

[[email protected] Desktop]# service network restart

Shutting down interface eth0: [ OK ]

Shutting down loopback interface: [ OK ]

Bringing up loopback interface: [ OK ]

Bringing up interface eth0: [ OK ]

[[email protected] Desktop]# ifconfig

eth0 Link encap:Ethernet HWaddr00:0C:29:A0:C6:44

         inet addr:192.168.1.189 Bcast:192.168.1.255 Mask:255.255.255.0

         UP BROADCAST MULTICAST MTU:1500 Metric:1

         RX packets:0 errors:0 dropped:0 overruns:0 frame:0

         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

         collisions:0 txqueuelen:1000

         RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

 

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:12 errors:0 dropped:0 overruns:0 frame:0

         TX packets:12 errors:0 dropped:0 overruns:0 carrier:0

         collisions:0 txqueuelen:0

         RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)

 

[[email protected] Desktop]# iptables -L

Chain INPUT (policy ACCEPT)

target prot opt source destination

ACCEPT all -- anywhere anywhere stateRELATED,ESTABLISHED

ACCEPT icmp -- anywhere anywhere

ACCEPT all -- anywhere anywhere

ACCEPT tcp -- anywhere anywhere state NEWtcp dpt:ssh

REJECT all -- anywhere anywhere reject-withicmp-host-prohibited

 

Chain FORWARD (policy ACCEPT)

target prot opt source destination

REJECT all -- anywhere anywhere reject-withicmp-host-prohibited

 

Chain OUTPUT (policy ACCEPT)

target prot opt source destination

[[email protected] Desktop]# iptables -F


本文出自 “90SirDB” 博客,请务必保留此出处http://90sirdb.blog.51cto.com/8713279/1794393

以上是关于linux 6.x network device not active的主要内容,如果未能解决你的问题,请参考以下文章

linux如何配置bond?

在linux下如何禁用网卡 - Linux体系治理 - ChinaUnix.net -

在linux下如何禁用网卡 - Linux体系治理 - ChinaUnix.net -

linux网络设置

DA_linux网络配置及其远程连接

Linux bridge