Linux command
brctl 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Show
sudo brctl show
Create
sudo brctl add bridge_name
Delete
sudo brctl del bridge_name
Add
sudo brctl addif bridge_name eth0
Remove
sudo brctl delif bridge_name eth0
说明
brctl manages Ethernet bridge interfaces on Linux. Bridges connect multiple network segments at Layer 2, allowing them to act as a single network. This is commonly used for virtualization, containers, and network infrastructure.
参数
- show
- Display information about existing bridges
- addbr _bridge_
- Create a new bridge
- delbr _bridge_
- Delete a bridge
- addif _bridge_ _interface_
- Add an interface to a bridge
- delif _bridge_ _interface_
- Remove an interface from a bridge
- stp _bridge_ _on|off_
- Enable/disable Spanning Tree Protocol
- setageing _bridge_ _time_
- Set MAC address ageing time
- setfd _bridge_ _time_
- Set forwarding delay
FAQ
What is the brctl command used for?
brctl manages Ethernet bridge interfaces on Linux. Bridges connect multiple network segments at Layer 2, allowing them to act as a single network. This is commonly used for virtualization, containers, and network infrastructure.
How do I run a basic brctl example?
Run `sudo brctl show` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does show do in brctl?
Display information about existing bridges