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

暑假开始拿了本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


转自:https://i-blog.csdnimg.cn/blog_migrate/99177d3cf89f323f9e324b5050514c63.png

网狐6.6 服务器源代码&共享组件&数据库,包括服务器端所有组件(内核除外,现在市面上还没有6.6内核),共享组件(公共服务,界面控件,界面资源),以及全部数据库文件和脚本文件,6.6较6.5有较大改动,是学习研究的上等程序代码。 结合本人上次发布的客户端组件,即为网狐66系统模块全部源代码!!!官方售价几万,网上有人卖几百到几千不等,本程序绝对6.6新版代码(带道具),识货的下。 总共140M,7个解压包:1~7。 #ifndef KERNEL_ENGINE_HEAD_HEAD_FILE #define KERNEL_ENGINE_HEAD_HEAD_FILE ////////////////////////////////////////////////////////////////////////// //包含文件 #include #include #include #include #include //平台文件 #include "..\..\模板库\Template.h" #include "..\..\公共文件\Constant.h" #include "..\..\公共文件\GlobalDef.h" #include "..\..\共享组件\公共服务\ComService.h" ////////////////////////////////////////////////////////////////////////// //ADO 定义 #import "MSADO15.DLL" rename_namespace("ADOCG") rename("EOF","EndOfFile") using namespace ADOCG; typedef _com_error CComError; //COM 错误 typedef _variant_t CDBVarValue; //数据库数值 ////////////////////////////////////////////////////////////////////////// //导出定义 //导出定义 #ifndef KERNEL_ENGINE_CLASS #ifdef KERNEL_ENGINE_DLL #define KERNEL_ENGINE_CLASS _declspec(dllexport) #else #define KERNEL_ENGINE_CLASS _declspec(dllimport) #endif #endif //模块定义 #ifndef _DEBUG #define KERNEL_ENGINE_DLL_NAME TEXT("KernelEngine.dll") //组件 DLL 名字 #else #define KERNEL_ENGINE_DLL_NAME TEXT("KernelEngineD.dll") //组件 DLL 名字 #endif ////////////////////////////////////////////////////////////////////////// //系统常量 //常量定义 #define TIME_CELL 200 //时间单元 #define TIMES_INFINITY DWORD(-1) //无限次数 #define MAX_ASYNCHRONISM_DATA 8192 //异步数据 ////////////////////////////////////////////////////////////////////////// //网络定义 //连接错误 #define CONNECT_SUCCESS 0 //连接成功 #define CONNECT_FAILURE 1 //连接失败 #define CONNECT_EXCEPTION 2 //参数异常 //关闭原因 #define SHUT_REASON_INSIDE 0 //内部原因 #define SHUT_REASON_NORMAL 1 //正常关闭 #define SHUT_REASON_REMOTE 2 //远程关闭 #define SHUT_REASON_TIME_OUT 3 //网络超时
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值