CentOS 7.1 Bridge启用STP报错"Master connection not found or invalid"

今天在公司测试Linux bridge搭建,为了使内部docker容器的网络能够不经过2层封装转发对外公布,顾试用一下bridge功能,结果碰到报错:"Bringing up interface eno16777736:  Error: Connection activation failed: Master connection not found or invalid"

具体错误是:

Mar 16 10:56:04 cloud01 systemd[1]: Starting LSB: Bring up/down networking...
Mar 16 10:56:05 cloud01 network[876]: Bringing up loopback interface:  Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo‘
Mar 16 10:56:05 cloud01 network[876]: Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo‘
Mar 16 10:56:06 cloud01 network[876]: Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo‘
Mar 16 10:56:06 cloud01 network[876]: Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo‘
Mar 16 10:56:06 cloud01 network[876]: [  OK  ]
Mar 16 10:56:06 cloud01 network[876]: Bringing up interface eno16777736:  Error: Connection activation failed: Master connection not found or invalid
Mar 16 10:56:06 cloud01 network[876]: [FAILED]
Mar 16 10:56:06 cloud01 network[876]: Bringing up interface br0:  Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-br0‘
Mar 16 10:56:06 cloud01 network[876]: Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-br0‘
Mar 16 10:56:14 cloud01 network[876]: Determining IP information for br0... failed; no link present.  Check cable?
Mar 16 10:56:14 cloud01 network[876]: [FAILED]
Mar 16 10:56:14 cloud01 systemd[1]: network.service: control process exited, code=exited status=1
Mar 16 10:56:14 cloud01 systemd[1]: Failed to start LSB: Bring up/down networking.
Mar 16 10:56:14 cloud01 systemd[1]: Unit network.service entered failed state.

经过一番google,得出答案是得禁用NetworkManager。

执行如下命令:

systemctl stop NetworkManager
systemctl disable NetworkManager

你可以选择重启,或者仅单单重启network服务即可修复。

启用后效果:

# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.000c295f4d67       yes             eno16777736

参考资料:

  https://www.centos.org/forums/viewtopic.php?f=50&t=51000

本文到此结束,谢谢!

时间: 2024-12-18 13:19:34

CentOS 7.1 Bridge启用STP报错"Master connection not found or invalid"的相关文章

centos系统,使用vnc登陆报错的解决方案

centos系统,使用vnc登陆报错 "The connection was refused by the host computer" 使用以下两个命令解决: [[email protected] ~]# rm /tmp/.X11-unix/X2 [[email protected] ~]# systemctl restart [email protected]:2.service

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

重新加载网卡时出现的错误如下: 1 [[email protected] 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 ]

CentOS命令登录MySQL时,报错ERROR 1045 (28000):

CentOS命令登录MySQL时,报错ERROR 1045 (28000): Access denied for user [email protected] (using password: NO)错误解决方法 1.停用mysql服务:# /etc/rc.d/init.d/mysqld stop 2.输入命令:# mysqld_safe --user=mysql --skip-grant-tables --skip-networking & 3.登入数据库:# mysql -u root my

oracle创建包后执行报错:object omgmig.test_package is invalid.

今天学习了一下oracle的包的写法,然后碰到这么个问题.包声明和包主体都正确,但是就是执行报错:object omgmig.test_package is invalid. 这是会报错的sql,看起来都正常对吧..但是就是会报错 --包声明 create package omgmig.test_package as procedure show1; end omgmig.test_package; --包体 create package body omgmig.test_package as

ab压力测试报错: apr_socket_recv: Connection reset by peer (104)

使用ab对网站进行压力测试,开始设置并发500,可以正常使用,当设置并发为1000,则报错: apr_socket_recv: Connection reset by peer (104) 改服务端apache的maxclients参数,调大最大打开文件数,都不解决问题,最后才发现是因为ab的源码对ab的并发有限制,修改源码重新编译apache: 修改源码support目录下的ab.c文件,大概在1369行,修改为: return;} else {//apr_err("apr_socket_re

SQL Server 2008 R2 启用sa 报错

错误信息:更改对于登录sa失败... 凭借印象,启用需要两步,先把服务器属性中的登录模式改为Sql Server和windows模式. 第二步服务器登录名中右键sa属性,把状态里的登录设为启用,因为是自己本地,所以把强制实施密码策略也给勾掉. 但是点确定的时候出现了报错. 后来尝试性的把sa属性里的“映射到凭据”给勾上,重复第二步,不用其他操作,点确定.ok!

window7下docker toolbox 启用数据卷报错: Error response from daemon: invalid mode:

场景:希望把d:\dockerShare文件夹作为数据卷 ,和docker中的centos镜像生成的容器关联. 原来的命令: docker run -d -it --name=edc-centos7 -v edc-centos7-vol:D:\dockershare centos:latest 报错: d:\Program Files\Docker Toolbox\docker.exe: Error response from daemon: invalid mode: \dockershare

使用虚拟机克隆CentOS 6.9系统重启网卡报错问题的解决

使用虚拟机克隆CentOS6.9系统重启网卡报错问题的解决 1.错误信息 Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                    [FAILED] 2.解决方法 (1)配置IP地址,重启网卡,出现如下报错 (2)这是因为克隆后的系统和原系统MAC地址和UUID一样,删除UUID和MAC地址 (3)删除网卡相关信息的文件 (4)重

CentOS 5 64bit 编译安装MySQL报错

报错情况:   在执行./configure时出现configure: error: No curses/termcap library found 解决方法: ./configure时加上参数--with-named-curseslibs=/usr/lib/libncursesw.so.5   ./configure再报错: mysql /usr/lib/libncursesw.so.5: could not read symbols: File in wrong format   原来的编译