commands.sh

bridge

linux

Show and manipulate network bridge addresses and devices.

More info →

Options (6)

boolean

List all bridges and their interfaces

Example: bridge {{[l|link]}}
boolean

Show port vlan information

Example: bridge {{[v|vlan]}}
boolean

Assign a VLAN to a port

Example: sudo bridge {{[v|vlan]}} {{[a|add]}} dev {{lanX}} vid {{vlan_id}} pvid {{tagged|untagged}}
boolean

Remove a VLAN from a port

Example: sudo bridge {{[v|vlan]}} {{[d|delete]}} dev {{lanX}} vid {{vlan_id}}
boolean

Watch for changes in bridge interfaces

Example: bridge {{[mo|monitor]}}
boolean

Display help

Example: bridge {{[h|help]}}

Examples (6)

List all bridges and their interfaces

bridge [l|link]

Show port vlan information

bridge [v|vlan]

Assign a VLAN to a port

sudo bridge [v|vlan] [a|add] dev lanX vid vlan_id pvid tagged|untagged

Remove a VLAN from a port

sudo bridge [v|vlan] [d|delete] dev lanX vid vlan_id

Watch for changes in bridge interfaces

bridge [mo|monitor]

Display help

bridge [h|help]
made by @shridhargupta | data from tldr-pages