| 命令 | 解释 | 例子(以桥接卡br0,物理卡为ens33为例) |
|---|---|---|
| brctl addbr 桥接网卡名 | 创建网桥 | brctl addbr br0 |
| brctl delbr 桥接网卡名 | 删除网桥 | brctl delbr br0 |
| brctl addif 桥接网卡名 物理网卡名 | 将网卡接口接入网桥 | brctl addif br0 ens33 |
| brctl delif 桥接网卡名 物理网卡名 | 删除网桥接入的网卡接口 | brctl delif br0 ens33 |
| brctl show 桥接网卡名 | 查询网桥信息 | brctl show br0 |
| brctl stp 桥接网卡名 on | 启用 STP | brctl stp br0 on |
| brctl stp 桥接网卡名 off | 禁用 STP | brctl stp br0 off |
| brctl showstp 桥接网卡名 | 查看网桥STP信息 | brctl showstp br0 |
| brctl setfd 桥接网卡名 时间 | 设置网桥延迟 | brctl setfd br0 30 |
| brctl showmacs 桥接网卡名 | 查看 mac 信息 | brctl showmacs br0 |
参考资料:
Linux brctl 命令
最后一次更新于2020-04-03




0 条评论