Linux 6.4 網卡 not active 解決

  1. 原文地址: http://blog.itpub.net/29477587/viewspace-1081779/

  2. [root@localhost Desktop]# service network restart

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

  4.                                                            [FAILED]

  5. Shutting down loopback interface: [ OK ]

  6. Bringing up loopback interface: [ OK ]

  7. Bringing up interface eth0: Error: Connection activation failed: Device not managed by NetworkManager or unavailable

  8.                                                            [FAILED]

  9. [root@localhost Desktop]# chkconfig NetworkManager off

  10. [root@localhost Desktop]# chkconfig network on

  11. [root@localhost Desktop]# service NetworkManager stop

  12. Stopping NetworkManager daemon: [ OK ]

  13. [root@localhost Desktop]# service network start

  14. Bringing up loopback interface: [ OK ]

  15. Bringing up interface eth0: [ OK ]

  16. RTNETLINK answers: File exists

  17. RTNETLINK answers: File exists

  18. RTNETLINK answers: File exists

  19. RTNETLINK answers: File exists

  20. RTNETLINK answers: File exists

  21. RTNETLINK answers: File exists

  22. RTNETLINK answers: File exists

  23. RTNETLINK answers: File exists

  24. RTNETLINK answers: File exists

  25. [root@localhost Desktop]# service network restart

  26. Shutting down interface eth0: [ OK ]

  27. Shutting down loopback interface: [ OK ]

  28. Bringing up loopback interface: [ OK ]

  29. Bringing up interface eth0: [ OK ]

  30. [root@localhost Desktop]# ifconfig

  31. eth0 Link encap:Ethernet HWaddr 00:0C:29:A0:C6:44 

  32.           inet addr:192.168.1.189 Bcast:192.168.1.255 Mask:255.255.255.0

  33.           UP BROADCAST MULTICAST MTU:1500 Metric:1

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

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

  36.           collisions:0 txqueuelen:1000 

  37.           RX bytes:(0.0 b) TX bytes:(0.0 b)


  38. lo Link encap:Local Loopback 

  39.           inet addr:127.0.0.1 Mask:255.0.0.0

  40.           inet6 addr: ::1/128 Scope:Host

  41.           UP LOOPBACK RUNNING MTU:16436 Metric:1

  42.           RX packets:12 errors:0 dropped:0 overruns:0 frame:0

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

  44.           collisions:0 txqueuelen:

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


  46. [root@localhost Desktop]# iptables -L

  47. Chain INPUT (policy ACCEPT)

  48. target prot opt source destination 

  49. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED 

  50. ACCEPT icmp -- anywhere anywhere 

  51. ACCEPT all -- anywhere anywhere 

  52. ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh 

  53. REJECT all -- anywhere anywhere reject-with icmp-host-prohibited 


  54. Chain FORWARD (policy ACCEPT)

  55. target prot opt source destination 

  56. REJECT all -- anywhere anywhere reject-with icmp-host-prohibited 


  57. Chain OUTPUT (policy ACCEPT)

  58. target prot opt source destination 

  59. [root@localhost Desktop]# iptables -F


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章