105 lines
1.8 KiB
Plaintext
105 lines
1.8 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 'fd9e:05cc:1094::/48'
|
|
|
|
config device
|
|
option name 'br-lan'
|
|
option type 'bridge'
|
|
list ports 'eth1.1'
|
|
|
|
config interface 'lan'
|
|
option device 'br-lan'
|
|
option proto 'static'
|
|
option ipaddr '192.168.1.1'
|
|
option netmask '255.255.255.0'
|
|
option ip6assign '60'
|
|
|
|
config switch
|
|
option name 'switch0'
|
|
option reset '1'
|
|
option enable_vlan '1'
|
|
|
|
config switch_vlan
|
|
option device 'switch0'
|
|
option vlan '1'
|
|
option ports '0t 2 3 4 5'
|
|
option vid '1'
|
|
|
|
config device
|
|
option type 'bridge'
|
|
option name 'br-opf'
|
|
list ports 'eth0'
|
|
|
|
config device
|
|
option type '8021q'
|
|
option ifname 'br-opf'
|
|
option vid '20'
|
|
option name 'br-opf.20'
|
|
|
|
config device
|
|
option type '8021q'
|
|
option ifname 'br-opf'
|
|
option vid '21'
|
|
option name 'br-opf.21'
|
|
|
|
config device
|
|
option type '8021q'
|
|
option ifname 'br-opf'
|
|
option vid '23'
|
|
option name 'br-opf.23'
|
|
|
|
config bridge-vlan
|
|
option device 'br-opf'
|
|
option vlan '20'
|
|
list ports 'eth0:t'
|
|
|
|
config bridge-vlan
|
|
option device 'br-opf'
|
|
option vlan '21'
|
|
list ports 'eth0:t'
|
|
|
|
config bridge-vlan
|
|
option device 'br-opf'
|
|
option vlan '22'
|
|
list ports 'eth0:t'
|
|
|
|
config switch_vlan
|
|
option device 'switch0'
|
|
option vlan '2'
|
|
option ports '1t 6t'
|
|
option vid '20'
|
|
|
|
config switch_vlan
|
|
option device 'switch0'
|
|
option vlan '3'
|
|
option ports '1t 6t'
|
|
option vid '21'
|
|
|
|
config switch_vlan
|
|
option device 'switch0'
|
|
option vlan '4'
|
|
option ports '1t 6t'
|
|
option vid '23'
|
|
|
|
config interface 'mngmnt'
|
|
option proto 'static'
|
|
option device 'br-opf.20'
|
|
option ipaddr '10.20.0.59'
|
|
option netmask '255.255.255.0'
|
|
option gateway '10.20.0.1'
|
|
|
|
config interface 'Openfest'
|
|
option proto 'none'
|
|
option device 'br-opf.21'
|
|
|
|
config interface 'oflvideo'
|
|
option proto 'none'
|
|
option device 'br-opf.23'
|
|
|