你好,游客 登录 注册 搜索
背景:
阅读新闻

CentOS 6.4系统重启网络服务故障处理

[日期:2014-02-03] 来源:Linux社区  作者:tongcheng [字体:大 中 小]

错误提示:

Bringing up interface eth1:  Error: No suitable device found: no device found for connection 'System eth1'.
123456 [root@CentOS network-scripts]# /etc/init.d/network restart
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth1:  Error: No suitable device found: no device found for connection 'System eth1'.
[FAILED]
[root@centos network-scripts]#

解决方法:

用ifconfig -a查看显示的是eth1,但是在/etc/system/network-scripts/目录下面显示的是eth0,所以才会导致这个问题的出现,解决方法就是在目录中将eth0重命名为eth1,如果是虚拟机还要修改网卡地址.
[root@centos network-scripts]# ifconfig  -a
eth1      Link encap:Ethernet  HWaddr 08:00:27:5C:4A:F6
inet addr:2.2.2.177  Bcast:2.2.2.255  Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe5c:4af6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:72479 errors:0 dropped:0 overruns:0 frame:0
TX packets:36533 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5311979 (5.0 MiB)  TX bytes:26144482 (24.9 MiB)
[root@centos network-scripts]# cp -a ifcfg-eth0  ifcfg-eth1
[root@centos network-scripts]# vim /etc/udev/rules.d/70-persistent-net.rules  --查看网卡地址
[root@centos network-scripts]# rm -rf ifcfg-eth0  --如果是虚拟机还要修改网卡的地址
[root@centos ~]# /etc/init.d/network restart    --重启成功了
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth1:  Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/1
[  OK  ]
[root@centos ~]#

更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

linux
相关资讯       CentOS 6.4 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款