brctl
TLDR
Show all bridges
$ sudo brctl show
Create bridge$ sudo brctl add bridge_name
Delete bridge$ sudo brctl del bridge_name
Add interface to bridge$ sudo brctl addif bridge_name eth0
Remove interface$ sudo brctl delif bridge_name eth0
SYNOPSIS
brctl command [bridge] [interface]
DESCRIPTION
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.
PARAMETERS
show
Display information about existing bridgesaddbr bridge
Create a new bridgedelbr bridge
Delete a bridgeaddif bridge interface
Add an interface to a bridgedelif bridge interface
Remove an interface from a bridgestp bridge on|off
Enable/disable Spanning Tree Protocolsetageing bridge time
Set MAC address ageing timesetfd bridge time
Set forwarding delay
CAVEATS
brctl is deprecated in favor of the ip and bridge commands from iproute2. Interfaces must be up to participate in bridging. STP should be enabled in complex topologies to prevent loops.
HISTORY
brctl is part of the bridge-utils package, being replaced by the iproute2 bridge command.


