systemd-networkd VLAN aware bridge

bridge.netdev

[NetDev]
Name=br0
Kind=bridge

[Bridge]
DefaultPVID=1
VLANFiltering=yes

bridge.network

[Match]
Name=br0

[Network]
VLAN=lan

[BridgeVLAN]
VLAN=1-4094

bridge-slave-interface.network

The interface that is actually doing the heavy lifting to the outside world

[Match]
Name=net0

[Network]
Bridge=br0

[BridgeVLAN]
# some NICs have issues with full range, in that case specify [BridgeVLAN] multiple times
VLAN=1-4094
PVID=1

lan.netdev

[NetDev]
Name=lan
Kind=vlan

[VLAN]
Id=10

lan.network

[Match]
Name=lan

[Link]
MACAddress=0e:96:2e:38:44:0c

[Network]
DHCP=ipv4
LinkLocalAddressing=no
LLMNR=no
MulticastDNS=no
DNSSEC=no
IPv6AcceptRA=no

[DHCPv4]
UseDNS=Yes
UseDomains=Yes
UseHostname=false

Last modified: Thu May 16 00:22:29 2024