74 lines
1.3 KiB
Plaintext
74 lines
1.3 KiB
Plaintext
|
|
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 'fd4a:07c0:7d8d::/48'
|
|
|
|
config device
|
|
option name 'br-lan'
|
|
option type 'bridge'
|
|
list ports 'eth0.1'
|
|
|
|
config interface 'lan'
|
|
option proto 'static'
|
|
option netmask '255.255.255.0'
|
|
option ip6assign '60'
|
|
option device 'br-lan.1'
|
|
option ipaddr '192.168.1.1'
|
|
option gateway '192.168.1.20'
|
|
list dns '8.8.8.8'
|
|
|
|
config switch
|
|
option name 'switch0'
|
|
option reset '1'
|
|
option enable_vlan '1'
|
|
|
|
config switch_vlan
|
|
option device 'switch0'
|
|
option vlan '1'
|
|
option ports '2 0t'
|
|
|
|
config switch_vlan
|
|
option device 'switch0'
|
|
option vlan '2'
|
|
option ports '3 6t'
|
|
|
|
config bridge-vlan
|
|
option device 'br-lan'
|
|
option vlan '1'
|
|
list ports 'eth0.1'
|
|
|
|
config bridge-vlan
|
|
option device 'br-lan'
|
|
option vlan '21'
|
|
list ports 'eth0.1:t'
|
|
|
|
config bridge-vlan
|
|
option device 'br-lan'
|
|
option vlan '23'
|
|
list ports 'eth0.1:t'
|
|
|
|
config bridge-vlan
|
|
option device 'br-lan'
|
|
option vlan '20'
|
|
list ports 'eth0.1:t'
|
|
|
|
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'
|
|
|