zoukankan      html  css  js  c++  java
  • brctl

    安装网桥管理工具包:bridge-utile

     yum install bridge-utils -y
    

    使用brctl命令创建网桥br1

     brctl addbr br1
    

    删除网桥br1

     brctl delbr br1
    

    将eth0端口加入网桥br1

     brctl addif br1 eth0
    

    删除eth0端口加入网桥br1

     brctl delif br1 eth0
    

    查询网桥信息

     brctl show
     brctl show br1
    

    命令参数

    Usage: brctl [commands]
    commands:
            addbr           <bridge>                add bridge
            delbr           <bridge>                delete bridge
            addif           <bridge> <device>       add interface to bridge
            delif           <bridge> <device>       delete interface from bridge
            setageing       <bridge> <time>         set ageing time
            setbridgeprio   <bridge> <prio>         set bridge priority
            setfd           <bridge> <time>         set bridge forward delay
            sethello        <bridge> <time>         set hello time
            setmaxage       <bridge> <time>         set max message age
            sethashel       <bridge> <int>          set hash elasticity
            sethashmax      <bridge> <int>          set hash max
            setmclmc        <bridge> <int>          set multicast last member count
            setmcrouter     <bridge> <int>          set multicast router
            setmcsnoop      <bridge> <int>          set multicast snooping
            setmcsqc        <bridge> <int>          set multicast startup query count
            setmclmi        <bridge> <time>         set multicast last member interval
            setmcmi         <bridge> <time>         set multicast membership interval
            setmcqpi        <bridge> <time>         set multicast querier interval
            setmcqi         <bridge> <time>         set multicast query interval
            setmcqri        <bridge> <time>         set multicast query response interval
            setmcqri        <bridge> <time>         set multicast startup query interval
            setpathcost     <bridge> <port> <cost>  set path cost
            setportprio     <bridge> <port> <prio>  set port priority
            setportmcrouter <bridge> <port> <int>   set port multicast router
            show            [ <bridge> ]            show a list of bridges
            showmacs        <bridge>                show a list of mac addrs
            showstp         <bridge>                show bridge stp info
            stp             <bridge> {on|off}       turn stp on/off
    
    
  • 相关阅读:
    控制容器的反转和依赖注入模式
    缓存和内存区别
    数据库知识总结:sqlserver中事务总结:begin tran,rollback tran,commit tran +IndexDB总结
    SqlServer数据库1433端口问题1
    网络配置:IP+NETMASK+GATEWAY+DNS
    Shell脚本中非交互式修改密码的方法(转)
    Linux之sed:删除某行以及替换
    每日命令:(3)pwd
    Linux目录结构详细介绍
    关于Linux字符集的查看及修改
  • 原文地址:https://www.cnblogs.com/ims-/p/14468383.html
Copyright © 2011-2022 走看看