37 lines
860 B
Plaintext
37 lines
860 B
Plaintext
|
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 'eth0'
|
||
|
option proto 'static'
|
||
|
option ipaddr '<ip>'
|
||
|
option netmask '255.255.255.0'
|
||
|
option gateway '10.100.0.1'
|
||
|
option dns '10.100.0.1'
|
||
|
option ipv6 'no'
|
||
|
|
||
|
config interface 'wireless'
|
||
|
option ifname 'eth1'
|
||
|
option proto 'none'
|
||
|
option ipv6 'no'
|
||
|
option force_link '1'
|
||
|
option type 'bridge'
|
||
|
|
||
|
config switch
|
||
|
option name 'switch0'
|
||
|
option reset '1'
|
||
|
option enable_vlan '1'
|
||
|
|
||
|
config switch_vlan
|
||
|
option device 'switch0'
|
||
|
option vlan '100'
|
||
|
option ports '5t 6'
|
||
|
|
||
|
config switch_vlan
|
||
|
option device 'switch0'
|
||
|
option vlan '102'
|
||
|
option ports '0 5t'
|