Linux 6.3 網路卡 not active 解決辦法

urgel_babay發表於2016-03-01
今天上午在Dell 920 上配置網路的時候遇見這個情況:

點選(此處)摺疊或開啟

  1. [root@localhost Desktop]# service network restart
  2. Shutting down interface em1: Error: Device (/org/freedesktop/NetworkManager/Devices/0) disconnecting failed: This device is not active
  3.                                                            [FAILED]
  4. Shutting down loopback interface: [ OK ]
  5. Bringing up loopback interface: [ OK ]
  6. Bringing up interface em1: Error: Connection activation failed: Device not managed by NetworkManager or unavailable
  7.                                                            [FAILED]
  8. [root@localhost Desktop]# chkconfig NetworkManager off  ---記得大小寫
  9. [root@localhost Desktop]# chkconfig network on
  10. [root@localhost Desktop]# service NetworkManager stop
  11. Stopping NetworkManager daemon: [ OK ]
  12. [root@localhost Desktop]# service network start
  13. Bringing up loopback interface: [ OK ]
  14. Bringing up interface em1: [ OK ]
  15. RTNETLINK answers: File exists
  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. [root@localhost Desktop]# service network restart
  25. Shutting down interface em1: [ OK ]
  26. Shutting down loopback interface: [ OK ]
  27. Bringing up loopback interface: [ OK ]
  28. Bringing up interface em1: [ OK ]
  29. [root@localhost Desktop]# ifconfig
  30. em1 Link encap:Ethernet HWaddr 00:0C:29:A0:C6:44
  31.           inet addr:172.17.1.188 Bcast:172.17.1.255 Mask:255.255.255.0
  32.           UP BROADCAST MULTICAST MTU:1500 Metric:1
  33.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  34.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  35.           collisions:0 txqueuelen:1000
  36.           RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

  37. lo Link encap:Local Loopback
  38.           inet addr:127.0.0.1 Mask:255.0.0.0
  39.           inet6 addr: ::1/128 Scope:Host
  40.           UP LOOPBACK RUNNING MTU:16436 Metric:1
  41.           RX packets:12 errors:0 dropped:0 overruns:0 frame:0
  42.           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
  43.           collisions:0 txqueuelen:0
  44.           RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)

  45. [root@localhost Desktop]# iptables -L
  46. Chain INPUT (policy ACCEPT)
  47. target prot opt source destination
  48. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
  49. ACCEPT icmp -- anywhere anywhere
  50. ACCEPT all -- anywhere anywhere
  51. ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
  52. REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

  53. Chain FORWARD (policy ACCEPT)
  54. target prot opt source destination
  55. REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

  56. Chain OUTPUT (policy ACCEPT)
  57. target prot opt source destination
  58. [root@localhost Desktop]# iptables -F

本以為這樣就可以了,但是ping其他機器 的時候不通。ping 本機通。
折騰了幾個小時,找來了其他幾個DBA,最後得出的結果是,Dell機器的網路卡順序不一致。
坑!

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30936525/viewspace-2018393/,如需轉載,請註明出處,否則將追究法律責任。

相關文章