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 ...
随机推荐
- Swift让编程更简单 人人都是开发者
全称为苹果全球开发者大会的WWDC,每年的这个时候,都会如这段时间前后所举行的Google I/O 和微软的BUILD开发者会议一样,吸引全球科技媒体的目光.近几年来,因为在会上爆的猛料越来越多,“开 ...
- HTML5-属性
点击图片打开详细介绍页面
- 【String与基本类型之间的转换】以及【进制转换】
1. 基本数据类型---->字符串类型: 方法一:使用连接一个空字符串,例如 基本数据类型+“” : 方法二:静态方法 String.valueOf(),具体有: String.valueOf ...
- 关于Mysql查询带单引号及插入带单引号字符串问题
1.转为带参数查询 String sql=""select id from student where name='?'; Connection connect = DriverM ...
- linux定时执行任务crontab命令用法
linux系统的定时任务是由 cron (crond) 这个系统服务来控制的.Linux 系统上面原本就有非常多的计划性工作,因此这个系统服务是默认启动的.另外, 由于使用者自己也可以设置计划任务,所 ...
- sql常见的面试题
1.用一条SQL语句 查询出每门课都大于80分的学生姓名 name kecheng fenshu 张三 语文 81张三 数学 75李四 语文 ...
- word 多级列表设置
今天写论文碰到了这个问题, 希望能出现这样的效果: 第一章 1.1 1.2 第二章 2.1 2.2 ...... 为了达到这个效果,晕死了.因为我的标题不是普通的默认标题一标题二 比如同济一标题 ...
- 如何自行处理写好的eclipse插件安装不生效
本帖最后由 anrainie 于 2013-7-23 11:31 编辑 对于eclipse插件开发的新手,经常会遇到插件写好了,拷贝到plugins或dropins文件下,但是没有生效.上网各种问,也 ...
- 新浪微博UWP UI意见征求
各位园主,卑职最近在忙一些新浪微博UWP的事儿,其中有一些UI上的design和实现,拿出来见见公婆,请大家给个意见: 您是喜欢A还是B.麻烦直接回在评论区了,写A或B,愿意多写几句意见的更欢迎! 先 ...
- 记录maven java.lang.String cannot be cast to XX error
在项目开发中自定义了一个maven plugin,在本地能够很好的工作,但是在ci server上却无法正常工作报错为: --------------------------------------- ...