brctl
Quick Reference
Command Name:
brctl
Category:
networking
Platform:
Linux
Basic Usage:
Common Use Cases
- 1
Network bridge management
Create and manage network bridges
- 2
Network configuration
Configure network bridging for virtual machines
- 3
System administration
Manage network interfaces and bridges
- 4
Virtualization support
Set up network bridges for virtual environments
Syntax
brctl [OPTIONS] COMMAND [BRIDGE] [INTERFACE]
Options
Command | Description |
---|---|
addbr BRIDGE |
Create a new bridge device |
delbr BRIDGE |
Delete the specified bridge device |
addif BRIDGE INTERFACE |
Add the interface to the bridge |
delif BRIDGE INTERFACE |
Remove the interface from the bridge |
show [BRIDGE] |
Show all bridges or the specified bridge details |
stp BRIDGE {on|off} |
Enable/disable the Spanning Tree Protocol |
showstp BRIDGE |
Show STP information for the specified bridge |
setfd BRIDGE TIME |
Set bridge forward delay time in seconds |
showmacs BRIDGE |
Show MAC addresses learned by the bridge |
Examples
How to Use These Examples
The examples below show common ways to use the brctl
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
brctl show
brctl addbr br0
brctl delbr br0
brctl addif br0 eth0