Skip to content

Instantly share code, notes, and snippets.

@spbkaizo
Created January 1, 2022 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spbkaizo/829472474d44b34e7d4278925b883d5a to your computer and use it in GitHub Desktop.
Save spbkaizo/829472474d44b34e7d4278925b883d5a to your computer and use it in GitHub Desktop.
OpenWRT DSA 21.02 Working VLAN Bridge
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd4b:9212:f7ce::/48'
config dsl 'dsl'
option annex 'a'
option tone 'av'
option ds_snr_offset '0'
config device
option name 'br-lan'
option type 'bridge'
option macaddr '8C:10:D4:19:21:00'
option ipv6 '0'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'wan'
config device
option name 'lan1'
option ipv6 '0'
config device
option name 'lan2'
option ipv6 '0'
config device
option name 'lan3'
option ipv6 '0'
config device
option name 'lan4'
option ipv6 '0'
config interface 'lan'
option device 'br-lan'
option proto 'none'
config device
option name 'eth0'
option ipv6 '0'
config device
option name 'wan'
option ipv6 '0'
config bridge-vlan
option device 'br-lan'
option vlan '200'
list ports 'wan:t'
config bridge-vlan
option device 'br-lan'
option vlan '210'
list ports 'lan2'
list ports 'wan:t'
config bridge-vlan
option device 'br-lan'
option vlan '220'
list ports 'lan1'
list ports 'wan:t'
config device
option name 'br-lan.220'
option ipv6 '0'
config bridge-vlan
option device 'br-lan'
option vlan '888'
list ports 'lan3'
list ports 'lan4'
list ports 'wan'
config interface 'foo'
option device 'br-lan.888'
option proto 'none'
config device
option type 'bridge'
option name 'br-kaizo.lan'
list ports 'br-lan.888'
option ipv6 '0'
config interface 'wlan'
option proto 'dhcp'
option device 'br-kaizo.lan'
config interface 'iffy'
option device 'br-iffy'
option proto 'none'
config device
option type 'bridge'
option name 'br-iot'
list ports 'br-lan.200'
option ipv6 '0'
config interface 'iot'
option device 'br-iot'
option proto 'none'
config device
option type 'bridge'
option name 'br-iffy'
list ports 'br-lan.220'
option ipv6 '0'
config device
option type 'bridge'
option name 'br-av'
list ports 'br-lan.210'
option ipv6 '0'
config interface 'av'
option device 'br-av'
option proto 'none'
@spbkaizo
Copy link
Author

spbkaizo commented Jan 1, 2022

In the above, vlan888 is a fake vlan which emits untagged frames which make it down to a 'naked' downstream ethernet interface. This allows the mixed use of VLAN's and normal LAN's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment