安裝brctl命令

來源:本站原創 Docker 超過8,026 views圍觀 0條評論

[[email protected] _data]# brctl show
-bash: brctl: command not found
[[email protected] _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
[[email protected] _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!
[[email protected] _data]#

[[email protected] _data]# brctl show
bridge name    bridge id        STP enabled    interfaces
docker0        8000.0242d7801e89    no        veth50662ea
                            veth7ef7961
[[email protected] _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.qdxgqk.live/ 版權所有。本站文章除注明出處外,皆為作者原創文章,可自由引用,但請注明來源。 禁止全文轉載。
本文標題:安裝brctl命令
本文鏈接:http://www.qdxgqk.live/?p=3676轉載請注明轉自CCIE那點事
如果喜歡:點此訂閱本站
  • 相關文章
  • 為您推薦
  • 各種觀點
?
暫時還木有人評論,坐等沙發!
發表評論

您必須 [ 登錄 ] 才能發表留言!

?
?
萌宠夺宝游戏