interfaces-bridge(5) | File Formats Manual | interfaces-bridge(5) |
NAME¶
interfaces-bridge - Bridge extensions for the interfaces(5) file format
DESCRIPTION¶
Linux has support for Ethernet bridging interfaces which act like an Ethernet switch within the Linux Kernel. The following options allow to set up Ethernet bridges and adding configured interfaces to bridges.
See ip-link(8) for more details about the options listed below.
BRIDGE-RELATED OPTIONS¶
bridge-ports list of interfaces
bridge-hw MAC address
bridge-ageing seconds
bridge-vlan-aware bool
SPANNING TREE RELATED BRIDGE OPTIONS¶
bridge-stp state
bridge-bridgeprio priority
bridge-fd seconds
bridge-hello seconds
bridge-maxage seconds
OPTIONS FOR VLAN-AWARE-BRIDGES¶
The following options only have an effect on vlan-aware bridges and their ports.
All settings can be applied on the bridge interface itself and all member port iface stanzas. If applied on the bridge interface they take effect for the bridge interface itself and might be inherited to bridge-ports depending on the compatibility settings configured in ifupdown-ng.conf(5).
Configuring VLAN options on the bridge interface might be required for setting up a VLAN interface to one of the VLANs carried within the bridge. See the EXAMPLES section for an example for this scenario.
See ifupdown-ng.conf(5) for more information about compatiblity settings mentioned below.
bridge-access vlan ID
bridge-pvid vlan ID
If compatibility to ifupdown2 bridge port inheritance is active a bridge-pvid set on the bridge will be inherited to any interface configured in bridge-ports without a bridge-pvid set.
bridge-vids list of vlan IDs
If compatibility to ifupdown2 bridge port inheritance is active a bridge-vids set on the bridge will be inherited to any interface configured in bridge-ports without bridge-vids set.
bridge-allow-untagged bool
EXAMPLES¶
A simple layer 2 only bridge:
auto br0 iface br0 bridge-ports eth0 veth-vm1 tap0 bridge-fd 0 bridge-stp off
A bridge with layer 3 configuration:
auto br0 iface br0 bridge-ports eth0 veth-vm1 tap0 bridge-fd 0 bridge-stp off # address 192.0.2.42/24 address 2001:db8::42/64
A layer 2 only vlan-aware bridge:
auto bond0 iface bond0 bond-members eth0 eth1 bridge-vids 23 42 84 1337 auto br0 iface br0 bridge-ports bond0
A vlan-aware bridge with a VLAN interface on top:
auto eth0 iface eth0 bridge-vids 23 42 84 1337 auto br0 iface br0 bridge-ports eth0 bridge-vlan-aware yes bridge-vids 42 auto vlan42 iface vlan42 vlan-raw-device br0 # address 192.0.2.42/24 address 2001:db8::42/64
SEE ALSO¶
AUTHORS¶
Maximilian Wilhelm <max@sdn.clinic>
2024-08-02 |