安装brctl命令

来源:本站原创 Docker 超过192 views围观 0条评论

[root@node1 _data]# brctl show
-bash: brctl: command not found
[root@node1 _data]# yum install -y brctl
Loaded plugins: fastestmirror
base                                                                                                       | 3.6 kB  00:00:00    
extras                                                                                                     | 3.4 kB  00:00:00    
updates                                                                                                    | 3.4 kB  00:00:00    
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.cn99.com
* updates: mirrors.aliyun.com
No package brctl available.
Error: Nothing to do
[root@node1 _data]# yum install -y bridge-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.cn99.com
* updates: mirrors.cn99.com
Resolving Dependencies
–> Running transaction check
—> Package bridge-utils.x86_64 0:1.5-9.el7 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================
Package                            Arch                         Version                         Repository                  Size
==================================================================================================================================
Installing:
bridge-utils                       x86_64                       1.5-9.el7                       base                        32 k

Transaction Summary
==================================================================================================================================
Install  1 Package

Total download size: 32 k
Installed size: 56 k
Downloading packages:
bridge-utils-1.5-9.el7.x86_64.rpm                                                                          |  32 kB  00:00:00    
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : bridge-utils-1.5-9.el7.x86_64                                                                                  1/1
  Verifying  : bridge-utils-1.5-9.el7.x86_64                                                                                  1/1

Installed:
  bridge-utils.x86_64 0:1.5-9.el7                                                                                                

Complete!
[root@node1 _data]#

[root@node1 _data]# brctl show
bridge name    bridge id        STP enabled    interfaces
docker0        8000.0242d7801e89    no        veth50662ea
                            veth7ef7961
[root@node1 _data]#
—————————\

        addbr bridge的名称  #添加bridge;

        delbr bridge的名称              #删除bridge;

        addif bridge的名称device的名称#添加接口到bridge;

        delif bridge的名称device的名称#从bridge中删除接口

        setageing bridge的名称时间     #设置老化时间,即生存周期

        setbridgeprio bridge的名称 优先级#设置bridge的优先级

        setfd bridge的名称时间         #设置bridge转发延迟时间

        sethello bridge的名称时间      #设置hello时间

        setmaxage bridge的名称时间     #设置消息的最大生命周期

        setpathcost bridge的名称 端口 权重#设置路径的权值

        setportprio bridge的名称 端口 优先级#设置端口的优先级

        show     #显示bridge列表

        showmacs bridge的名称  #显示MAC地址

        showstp  bridge的名称           #显示bridge的stp信息

        stp bridge的名称{on|off}       #开/关stp

文章出自:CCIE那点事 http://www.jdccie.com/ 版权所有。本站文章除注明出处外,皆为作者原创文章,可自由引用,但请注明来源。 禁止全文转载。
本文标题:安装brctl命令
本文链接:http://www.jdccie.com/?p=3676转载请注明转自CCIE那点事
如果喜欢:点此订阅本站
  • 相关文章
  • 为您推荐
  • 各种观点

暂时还木有人评论,坐等沙发!
发表评论

快捷键:Ctrl+Enter