HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bridge — Show and manipulate network bridge addresses and devices. More information: <https://manned.org/brid

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandshowandnetworkmanipulateclibridge
linux

Problem

How to use the bridge command: Show and manipulate network bridge addresses and devices. More information: <https://manned.org/bridge>.

Solution

bridge — Show and manipulate network bridge addresses and devices. More information: <https://manned.org/bridge>.

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]}}

Code Snippets

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]}}

Context

tldr-pages: linux/bridge

Revisions (0)

No revisions yet.