brctl
networkingLinux
The brctl command is one of the most frequently used commands in Linux/Unix-like operating systems. brctl Ethernet bridge administration tool for Linux
Quick Reference
Command Name:
brctl
Category:
networking
Platform:
Linux
Basic Usage:
brctl [options] [arguments]
Common Use Cases
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 Basic
brctl show