Linux :service network restart :bringing up interface eth0:unknown connection

来源:互联网 发布:unity3d 文件格式 编辑:程序博客网 时间:2024/06/07 23:06

暑假开始拿了本linux的书自虐,在安装gnome桌面环境之后,service network restart之后又发现bringing up interface eth0:unknown connection Failed

我只是用vi /etc/sysconfig/network-scripts/ifcfg-eth0修改了ip而已啊,报的错误是未知连接然后是uuid,同时ifconfig也不能显示eth0ip


并不知道uuid是什么鬼,嗯,直接注释掉,然后问题居然就解决了。只是不能restartnot active。。。



[plain] view plain copy
  1. [root@localhost Desktop]# service network restart  
  2. Shutting down interface eth0: Error: Device \'eth0\' (/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 eth0: 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 eth0: [ 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 eth0: [ OK ]  
  26. Shutting down loopback interface: [ OK ]  
  27. Bringing up loopback interface: [ OK ]  
  28. Bringing up interface eth0: [ OK ]  
  29. [root@localhost Desktop]# ifconfig  
  30. eth0 Link encap:Ethernet HWaddr 00:0C:29:A0:C6:44   
  31.           inet addr:192.168.1.189 Bcast:192.168.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.   
  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:0   
  45.           RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)  
  46.   
  47. [root@localhost Desktop]# iptables -L  
  48. Chain INPUT (policy ACCEPT)  
  49. target prot opt source destination   
  50. ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED   
  51. ACCEPT icmp -- anywhere anywhere   
  52. ACCEPT all -- anywhere anywhere   
  53. ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh   
  54. REJECT all -- anywhere anywhere reject-with icmp-host-prohibited   
  55.   
  56. Chain FORWARD (policy ACCEPT)  
  57. target prot opt source destination   
  58. REJECT all -- anywhere anywhere reject-with icmp-host-prohibited   
  59.   
  60. Chain OUTPUT (policy ACCEPT)  
  61. target prot opt source destination   
  62. [root@localhost Desktop]# iptables -F  


然后以上一番操作解决问题,谜一样的Linux,然后把uuid注释去掉仍然正常运行网络服务。万一哪个大神看到了能不能告诉我为什么我把uuid注释掉了还可以正常运行?上面的一番操作是为何解决问题的?感激不尽TAT


转自:http://blog.csdn.net/u012442401/article/details/47384093

阅读全文
0 0
原创粉丝点击