LinuxCommandLibrary

bridge

Manage Linux bridge devices and VLANs

TLDR

List bridges and interfaces

$ bridge link
copy
Show VLAN info
$ bridge vlan
copy
Add VLAN to port
$ sudo bridge vlan add dev lan0 vid 100 pvid untagged
copy
Remove VLAN from port
$ sudo bridge vlan delete dev lan0 vid 100
copy
Monitor changes
$ bridge monitor
copy

SYNOPSIS

bridge [OPTIONS] OBJECT COMMAND

DESCRIPTION

bridge shows and manipulates Linux bridge devices and their forwarding database. It manages bridge ports, VLANs, and FDB entries for Layer 2 switching functionality.

PARAMETERS

link

List bridge interfaces and ports
vlan
Show or manage VLAN configuration
fdb
Forwarding database management
mdb
Multicast group database management
monitor
Watch for changes in bridge configuration
add
Add VLAN or FDB entry
delete
Remove VLAN or FDB entry
vid vlan-id
VLAN identifier (1-4094)
pvid
Set as port VLAN ID
tagged/untagged
VLAN tagging mode

CAVEATS

VLANs require VLAN filtering to be enabled on the bridge. Changes may disrupt existing connections. Requires root privileges for modifications.

HISTORY

bridge is part of iproute2, providing Linux bridge management functionality complementing brctl.

SEE ALSO

ip(8), brctl(8), tc(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community