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
本文到此结束,谢谢!
CentOS 7.1 Bridge启用STP报错"Master connection not found or invalid"的更多相关文章
- CentOS命令登录MySQL时,报错ERROR 1045 (28000):
CentOS命令登录MySQL时,报错ERROR 1045 (28000): Access denied for user root@localhost (using password: NO)错误解 ...
- idea启动服务连接mysql后 Navicat连接mysql就报错2013-Lost connection toMySQL server at
我是使用navicat的windows端 连接centos下mysql服务器 第一次常规连接mysql正常,idea启动服务连接mysql后 Navicat连接mysql就报错2013-Lost co ...
- oracle创建包后执行报错:object omgmig.test_package is invalid.
今天学习了一下oracle的包的写法,然后碰到这么个问题.包声明和包主体都正确,但是就是执行报错:object omgmig.test_package is invalid. 这是会报错的sql,看起 ...
- ab压力测试报错: apr_socket_recv: Connection reset by peer (104)
使用ab对网站进行压力测试,开始设置并发500,可以正常使用,当设置并发为1000,则报错: apr_socket_recv: Connection reset by peer (104) 改服务端a ...
- Django报错:OSError: raw write() returned invalid length 4 (should have been between 0 and 2)
在使用Django时Django报错:Django报错:OSError: raw write() returned invalid length 4 (should have been between ...
- MVC模式下unity配置,报错“No connection string named '**Context' could be found in the application config file”
写在前面: 第一次配置时好好的,后来第二次改到MVC模式,把依赖注入写成字典的单例模式时,由于新建的ORM(数据库映射模型EF),怎么弄都不用,一直报错"No connection str ...
- 单元测试 报错 org.junit.runners.model.InvalidTestClassError: Invalid test class 'com.example.xxx' 解决
1.前言 很奇怪 ,单元测试正常执行,但是结束后会报错 org.junit.runners.model.InvalidTestClassError: Invalid test class 'com.e ...
- centos 关闭selinux 临时关闭selinux 报错 setenforce: setenforce() failed
关闭selinux的方法有两种:临时关闭和永久关闭. 查看selinux的状态:estatus [root@--- ~]# sestatus SELinux status: enabled SELin ...
- CentOS下安装php gd库报错Error: php56w-common conflicts with php-common-5.3.3-48.el6_8.x86_64
因为服务器缺少php gd库,因为系统是centos,就是用yum去安装,一安装就报错如下: [root@iZ28sdxghs2Z ~]# yum install php-gd Loaded plug ...
随机推荐
- 完美获取N卡A卡的显存大小(使用OpenGL)
// 基于扩展NVX_gpu_memory_info extension UINT QueryNVidiaCardMemory() { __try { int iVal = 0; glGet ...
- 【C-运算符】
一.基本运算符 (1)赋值运算符:= a=2002; //将值2002赋给变量a,动作从右到左 赋值运算左边必须指向一个存储位置(变量名——指针) (2)加法.减法运算符:+.—(二元或双目运算 ...
- Java中HashMap等的实现要点浅析
@南柯梦博客中的系列文章对Jdk中常用容器类ArrayList.LinkedList.HashMap.HashSet等的实现原理以代码注释的方式给予了说明(详见http://www.cnblogs.c ...
- spring 3.1 配置 JCR 303 Bean Validation
A) 导入Hibernate-Validator 要使用JSR303 校验框架, 需要加入框架的具体实现Hibernate-Validator, 在soureforge上下载最新的Hibernate ...
- chrome插件开发-消息机制中的bug与解决方案
序言 最近开发chrome插件,涉及到消息传递机时按照教程去敲代码,结果总是不对.研究了大半天终于找到原因,现在记录下. 程序 插件程序参考官网 chrome官网之消息传递机制, 不能FQ的同事也可以 ...
- halcon车牌的识别
read_image (Audi2, 'audi2') fill_interlace (Audi2, ImageFilled, 'odd') dev_set_color('green') thresh ...
- windows management instrumentation服务未启动-解决脚本
桌面新建.txt文件 将以下代码放入 保存为.bat文件 执行即可 @echo on cd /d c:\temp if not exist %windir%\system32\wbem goto Tr ...
- PAT/简单模拟习题集(二)
B1018. 锤子剪刀布 (20) Discription: 大家应该都会玩"锤子剪刀布"的游戏:两人同时给出手势,胜负规则如图所示: 现给出两人的交锋记录,请统计双方的胜.平.负 ...
- 欢迎访问我的最新个人技术博客http://zhangxuefei.top
博客园已停止更新,欢迎访问我的最新个人技术博客http://zhangxuefei.top
- Android网页中tel,sms,mailTo,Intent,Market协议用法总结
tel:协议---拨打电话 <a href="tel:">调出拨号界面</a> <a href="tel:10086">调 ...