Qualcommax NSS Build

Here you are. This is for 3 VLANs, MX4300 setup as a dumb AP. (This is full config, but obviously, it's sanitized and won't work as-is). H/t to @dtr for the pointer into right direction.

With this workaround it's a bit more involving compared to a bridge VLAN filtering, especially with larger number of VLANs - by any chance do you know why it's not working on this branch?

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 'xxxx:xxxx:xxxxx::/48'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'lan1'
	list ports 'lan2'
	list ports 'lan3'
	list ports 'wan'
	option ipv6 '0'

config device
	option name 'lan1'
	option macaddr 'xx:xx:xx:xx:xx:xx'
	option ipv6 '0'

config device
	option name 'lan2'
	option macaddr 'xx:xx:xx:xx:xx:xx'
	option ipv6 '0'

config device
	option name 'lan3'
	option macaddr 'xx:xx:xx:xx:xx:xx'
	option ipv6 '0'

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option ipaddr '1.1.1.14'
	option netmask '255.255.255.0'
	option ip6assign '60'
	option gateway '1.1.1.1'
	list dns '1.1.1.1'

config device
	option type '8021q'
	option ifname 'lan1'
	option vid '20'
	option name 'lan1.20'
	option ipv6 '0'

config interface 'Home'
	option proto 'none'
	option device 'br-home'
	option type 'bridge'

config device
	option type '8021q'
	option ifname 'lan2'
	option vid '20'
	option name 'lan2.20'
	option ipv6 '0'

config device
	option type 'bridge'
	option name 'br-home'
	option ipv6 '0'
	list ports 'lan1.20'
	list ports 'lan2.20'
	list ports 'lan3.20'
	list ports 'wan.20'

config device
	option type '8021q'
	option ifname 'lan3'
	option vid '20'
	option name 'lan3.20'
	option ipv6 '0'

config device
	option type '8021q'
	option ifname 'lan1'
	option vid '11'
	option name 'lan1.11'
	option ipv6 '0'

config device
	option type '8021q'
	option ifname 'lan2'
	option vid '11'
	option name 'lan2.11'
	option ipv6 '0'

config device
	option type '8021q'
	option ifname 'lan3'
	option vid '11'
	option name 'lan3.11'
	option ipv6 '0'

config device
	option type 'bridge'
	option name 'br-iot'
	option ipv6 '0'
	list ports 'lan1.11'
	list ports 'lan2.11'
	list ports 'lan3.11'
	list ports 'wan.11'

config interface 'IoT'
	option proto 'none'
	option device 'br-iot'

config device
	option type '8021q'
	option ifname 'lan1'
	option vid '10'
	option name 'lan1.10'
	option ipv6 '0'

config device
	option type '8021q'
	option ifname 'lan2'
	option vid '10'
	option name 'lan2.10'
	option ipv6 '0'

config device
	option type '8021q'
	option ifname 'lan3'
	option vid '10'
	option name 'lan3.10'
	option ipv6 '0'

config device
	option type 'bridge'
	option name 'br-cctv'
	option ipv6 '0'
	list ports 'lan1.10'
	list ports 'lan2.10'
	list ports 'lan3.10'
	list ports 'wan.10'

config device
	option name 'wan'
	option ipv6 '0'

config device
	option type '8021q'
	option ifname 'wan'
	option vid '20'
	option name 'wan.20'
	option ipv6 '0'

config device
	option type '8021q'
	option ifname 'wan'
	option vid '11'
	option name 'wan.11'
	option ipv6 '0'

config device
	option type '8021q'
	option ifname 'wan'
	option vid '10'
	option name 'wan.10'
	option ipv6 '0'

config interface 'CCTV'
	option proto 'none'
	option device 'br-cctv'

1 Like