CentOS重新加载网卡报错 Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/23...

本文详细解析了在RedHat系统中,NetworkManager与ifcfg-ethx配置不一致导致的网络重启失败问题。通过关闭NetworkManager服务,解决了网络配置冲突,确保了网络设置更改的有效性。
摘要由CSDN通过智能技术生成

最新文章:Virson's Blog

重新加载网卡时出现的错误如下:

 1 [root@vdb1 dev]# service network restart
 2 Shutting down interface eth0:  Device state: 3 (disconnected)
 3                                                            [  OK  ]
 4 Shutting down interface eth1:                              [  OK  ]
 5 Shutting down interface eth2:  Device state: 3 (disconnected)
 6                                                            [  OK  ]
 7 Shutting down loopback interface:                          [  OK  ]
 8 Bringing up loopback interface:                            [  OK  ]
 9 Bringing up interface eth0:  Active connection state: activating
10 Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/23
11 Error: Timeout 90 sec expired.
12                                                            [FAILED]
13 Bringing up interface eth1:  Active connection state: activated
14 Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/25
15                                                            [  OK  ]
16 Bringing up interface eth2:  Active connection state: activated
17 Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/26
18                                                            [  OK  ]

此时,当前网卡也是可以通信的,但是通过网络管理工具修改IP之后,当前修改操作是不会生效的。那如何消除这个提示呢?

其实,问题的原因是RedHat自己开发的NetworkManager管理工具和/etc/sysconfig/network-scripts/ifcfg-ethx配置不同步造成的。如果要消除这个提示,请关闭NetworkManager服务即可:

[root@vdb1 dev]# chkconfig NetworkManager off  --永久关闭服务,需要重启
[root@vdb1 dev]# service NetworkManager stop   --立即关闭服务,不需要重启
Stopping NetworkManager daemon:                            [  OK  ]

此时,再重新加载network服务即可:

 1 [root@vdb1 dev]# service network restart
 2 Shutting down interface eth0:                              [  OK  ]
 3 Shutting down interface eth1:                              [  OK  ]
 4 Shutting down interface eth2:                              [  OK  ]
 5 Shutting down loopback interface:                          [  OK  ]
 6 Bringing up loopback interface:                            [  OK  ]
 7 Bringing up interface eth0:  
 8 Determining IP information for eth0... failed.
 9                                                            [FAILED]
10 Bringing up interface eth1:  Determining if ip address 192.168.179.181 is already in use for device eth0...
11                                                            [  OK  ]
12 Bringing up interface eth2:  Determining if ip address 172.168.180.191 is already in use for device eth2...
13                                                            [  OK  ]

 

转载于:https://www.cnblogs.com/mawanglin2008/p/3926851.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值