2016-11-04 02:32:40 +02:00
|
|
|
config interface 'loopback'
|
|
|
|
option ifname 'lo'
|
|
|
|
option proto 'static'
|
|
|
|
option ipaddr '127.0.0.1'
|
|
|
|
option netmask '255.0.0.0'
|
|
|
|
|
2022-10-10 17:14:23 +03:00
|
|
|
|
|
|
|
config device
|
|
|
|
option name 'br-lan'
|
|
|
|
option type 'bridge'
|
|
|
|
option ipv6 '0'
|
|
|
|
list ports 'lan1'
|
|
|
|
|
2016-11-04 02:32:40 +02:00
|
|
|
config interface 'management'
|
2022-10-10 17:14:23 +03:00
|
|
|
option ifname 'br-lan.20'
|
2016-11-04 02:32:40 +02:00
|
|
|
option proto 'static'
|
|
|
|
option ipaddr '<ip>'
|
|
|
|
option netmask '255.255.255.0'
|
|
|
|
option gateway '10.20.0.1'
|
|
|
|
option dns '10.20.0.1'
|
|
|
|
option ipv6 'no'
|
|
|
|
|
|
|
|
|
2022-10-10 17:14:23 +03:00
|
|
|
config bridge-vlan
|
|
|
|
option device 'br-lan'
|
|
|
|
option vlan '1'
|
|
|
|
list ports 'lan1'
|
|
|
|
|
|
|
|
config bridge-vlan
|
|
|
|
option device 'br-lan'
|
|
|
|
option vlan '20'
|
|
|
|
list ports 'lan1:t'
|
|
|
|
|
|
|
|
config bridge-vlan
|
|
|
|
option device 'br-lan'
|
|
|
|
option vlan '21'
|
|
|
|
list ports 'lan1:t'
|
|
|
|
|
|
|
|
config bridge-vlan
|
|
|
|
option device 'br-lan'
|
|
|
|
option vlan '23'
|
|
|
|
list ports 'lan1:t'
|
2016-11-04 02:32:40 +02:00
|
|
|
|
2022-10-10 17:14:23 +03:00
|
|
|
config interface 'userwifi'
|
|
|
|
option proto 'none'
|
|
|
|
option device 'br-lan.21'
|
|
|
|
option defaultroute '0'
|
|
|
|
option peerdns '0'
|
|
|
|
option delegate '0'
|
|
|
|
|
|
|
|
config interface 'videowifi'
|
|
|
|
option proto 'none'
|
|
|
|
option device 'br-lan.23'
|
|
|
|
option defaultroute '0'
|
|
|
|
option peerdns '0'
|
|
|
|
option delegate '0'
|
|
|
|
|
|
|
|
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'
|
2016-11-04 02:32:40 +02:00
|
|
|
|