1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/bridge.md

25 lines
532 B
Markdown
Raw Normal View History

2025-03-12 08:39:33 +02:00
# 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]}}`