88 lines
2 KiB
Text
88 lines
2 KiB
Text
|
|
config interface 'loopback'
|
|
option ifname 'lo'
|
|
option proto 'static'
|
|
option ipaddr '127.0.0.1'
|
|
option netmask '255.0.0.0'
|
|
|
|
config globals 'globals'
|
|
option ula_prefix 'fdb1:00b1:0ffb::/48'
|
|
|
|
config interface 'lan'
|
|
option type 'bridge'
|
|
option ifname 'eth0.1'
|
|
option proto 'static'
|
|
option ipaddr '192.168.1.1'
|
|
option netmask '255.255.255.0'
|
|
option ip6assign '60'
|
|
|
|
config device 'lan_dev'
|
|
option name 'eth0.1'
|
|
option macaddr '80:2a:a8:de:20:8a'
|
|
|
|
config interface 'wan'
|
|
option ifname 'eth0.2'
|
|
option proto 'dhcp'
|
|
|
|
config interface 'eth0_1'
|
|
option proto 'static'
|
|
option ifname 'eth0.101'
|
|
option ipaddr '10.6.19.1'
|
|
option netmask '255.255.255.0'
|
|
|
|
config interface 'eth0_2'
|
|
option proto 'static'
|
|
option ifname 'eth0.102'
|
|
option ipaddr '10.6.20.1'
|
|
option netmask '255.255.255.0'
|
|
|
|
config interface 'eth0_3'
|
|
option proto 'static'
|
|
option ifname 'eth0.103'
|
|
option ipaddr '10.6.21.1'
|
|
option netmask '255.255.255.0'
|
|
|
|
config interface 'eth0_4'
|
|
option proto 'static'
|
|
option ifname 'eth0.104'
|
|
option ipaddr '10.6.22.1'
|
|
option netmask '255.255.255.0'
|
|
|
|
config device 'wan_dev'
|
|
option name 'eth0.2'
|
|
option macaddr '80:2a:a8:de:20:8b'
|
|
|
|
config interface 'wan6'
|
|
option ifname 'eth0.2'
|
|
option proto 'dhcpv6'
|
|
|
|
config switch
|
|
option name 'switch0'
|
|
option reset '1'
|
|
option enable_vlan '1'
|
|
|
|
config switch_vlan
|
|
option device 'switch0'
|
|
option vlan '2'
|
|
option ports '0 6t'
|
|
|
|
config switch_vlan
|
|
option device 'switch0'
|
|
option vlan '101'
|
|
option ports '1 6t'
|
|
|
|
config switch_vlan
|
|
option device 'switch0'
|
|
option vlan '102'
|
|
option ports '2 6t'
|
|
|
|
config switch_vlan
|
|
option device 'switch0'
|
|
option vlan '103'
|
|
option ports '3 6t'
|
|
|
|
config switch_vlan
|
|
option device 'switch0'
|
|
option vlan '104'
|
|
option ports '4 6t'
|
|
|