config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'management' option ifname 'br-lan.20' option proto 'static' option ipaddr '' option netmask '255.255.255.0' option gateway '10.20.0.1' option dns '10.20.0.1' option ipv6 'no' config device option name 'br-tmp' option type 'bridge' list ports 'eth1.1' # #config interface 'tmp' # option device 'br-tmp' # option proto 'static' # option ipaddr '192.168.1.1' # option netmask '255.255.255.0' # config switch option name 'switch0' option reset '1' option enable_vlan '1' config switch_vlan option device 'switch0' option vlan '1' option ports '0t 4 5' option vid '1' config device option name 'br-lan' option type 'bridge' option ipv6 '0' list ports 'eth0' config device option name 'br-lan.20' option type '8021q' option ifname 'br-lan' option vid '20' config device option name 'br-lan.21' option type '8021q' option ifname 'br-lan' option vid '21' config device option name 'br-lan.23' option type '8021q' option ifname 'br-lan' option vid '23' config bridge-vlan option device 'br-lan' option vlan '20' list ports 'eth0:t' config bridge-vlan option device 'br-lan' option vlan '21' list ports 'eth0:t' config bridge-vlan option device 'br-lan' option vlan '23' list ports 'eth0:t' config switch_vlan option device 'switch0' option vlan '2' option ports '1t 2t 3t 6t' option vid '20' config switch_vlan option device 'switch0' option vlan '3' option ports '1t 2t 3t 6t' option vid '21' config switch_vlan option device 'switch0' option vlan '4' option ports '1t 2t 3t 6t' option vid '23' config interface 'userwifi' option proto 'none' option device 'br-lan.21' config interface 'videowifi' option proto 'none' option device 'br-lan.23'