interfaces-bridge(5)
π NAME
interfaces-bridge(5) β bridge extensions for the interfaces(5) file format. This is the glow-up page for all the bridge-y bits, bestie π.
β¨ DESCRIPTION
Okay so Linux has support for Ethernet bridging interfaces, and those act like an Ethernet switch inside the Linux Kernel β literally switch energy in the kernel π§. The following options let you set up Ethernet bridges and add configured interfaces to bridges.
See ip-link(8) for more details about the options listed below. π
π BRIDGE-RELATED OPTIONS
bridge-portslist of interfaces β a space-separated list of interfaces that should be configured as member interfaces of this bridge. This option must be set for the bridge to be configured. Set it tononeto create a bridge with no ports.bridge-hwMAC address β the MAC address the bridge should use. πbridge-ageingseconds β the time in seconds after which a MAC address gets removed from the Forwarding DataBase (FDB) after not having seen a frame with this source address.bridge-vlan-awarebool β whether or not the bridge should be aware of 802.1q VLANs. bool can be given asyes/noor0/1. The default isno. See the related options for configuring vlan-aware bridges, below. π¦
πΈ SPANNING TREE RELATED BRIDGE OPTIONS
bridge-stpstate β activates or deactivates IEEE 802.1d Spanning Tree Protocol (STP) support of the bridge. Valid values areon/off.bridge-bridgepriopriority β sets the bridge's priority to priority. The priority value is a number between0and65535. Lower priority values are better. The bridge with the lowest priority will be elected root bridge. πbridge-fdseconds β the bridge forward delay in seconds. Valid values are between2and30.bridge-helloseconds β the bridge hello time in seconds. Valid values are between1and10.bridge-maxageseconds β the seconds until another bridge is considered dead after reception of its last STP hello message. Valid values are between6and40.
π¦ OPTIONS FOR VLAN-AWARE-BRIDGES
The following options only have an effect on vlan-aware bridges and their ports.
Unless otherwise noted, 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 compatibility settings mentioned below. π«Ά
bridge-accessvlan ID β configure the given vlan ID for untagged ingress and egress on this interface. The common description for this kind of configuration is called "access port".bridge-pvidvlan ID β the vlan ID to be considered a PVID at ingress. Any untagged frames received on this interface will be assigned to this vlan ID. The default PVID is1.
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-vidslist of vlan IDs β the space-separated list of VLANs to be allowed tagged ingress/egress on this interface.
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-untaggedbool β whether or not the bridge should allow untagged frames on ingress as well as egress. If set tono, untagged frames will be dropped on ingress and none will be sent. bool can be given asyes/noor0/1. The default isyes.bridge-default-pvidvlan ID β the vlan ID that should be the default PVID for all ports on this interface. This sets thevlan_default_pvidoption on the bridge and thus also applies to ports configured outside of ifupdown-ng. Set to0to disable.
This option can only be used on the bridge itself, not on its ports. The default is 1.
π EXAMPLES
Okay bestie, the configs are the moment β here's exactly what they look like:
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
interfaces(5) ifupdown-ng.conf(5) ip-link(8) bridge(8) β go read these, iykyk π.
π AUTHORS
Maximilian Wilhelm <max@sdn.clinic> β iconic, honestly.
Byeee bestie π β footer sign-off deets: this manual is interfaces-bridge(5), dated 2026-05-10. Stay bridged and slay πβ¨
π¦ where this page comes from
- alpine 3.24: ifupdown-ng-doc 0.13.0-r0 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms