How to create bridge-vlan in 19.07?

We can create a bridge, and then multiple VLANs in that bridge using DSA:

config device
	option name 'br-sw0'
	option type 'bridge'
	list ports 'lan1'
	list ports 'lan2'

config bridge-vlan
	option device 'br-sw0'
	option vlan '12'
	list ports 'lan1:t'
	list ports 'lan2:t'

config bridge-vlan
	option device 'br-sw0'
	option vlan '15'
	list ports 'lan1:t'
	list ports 'lan2:t'

I have some 4/32 devices which are stuck at 19.07. To achieve the same result, I have to manually bridge each pair of VLAN interfaces together:

config interface 'vlan12'
	option type 'bridge'
	option ifname 'eth0.12 eth1.12'
	option proto 'none'

config interface 'vlan15'
	option type 'bridge'
	option ifname 'eth0.15 eth1.15'
	option proto 'none'

Is there any way to create a bridge and define bridge-vlan on 19.07? The configuration looks somewhat cleaner by avoiding creating multiple bridges.

OpenWrt 19.07 is 5 years unsupported and did not support any DSA. At the time one would cteate new bridge and include swconfig vlan in that.

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
: cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
1 Like