2011-03-23 15:19:27 +01:00
|
|
|
config 'interface' 'loopback'
|
|
|
|
option 'ifname' 'lo'
|
|
|
|
option 'proto' 'static'
|
|
|
|
option 'ipaddr' '127.0.0.1'
|
|
|
|
option 'netmask' '255.0.0.0'
|
|
|
|
|
|
|
|
#config 'interface' 'lan'
|
|
|
|
# option 'proto' 'dhcp'
|
|
|
|
# option 'ifname' 'eth0.1'
|
|
|
|
|
2011-05-19 14:25:06 +02:00
|
|
|
config 'interface' 'wlanmesh'
|
2011-12-13 16:39:15 +01:00
|
|
|
option 'mtu' '1528'
|
2011-03-23 15:19:27 +01:00
|
|
|
|
|
|
|
config 'interface' 'mesh'
|
|
|
|
option 'type' 'bridge'
|
2012-01-10 18:23:21 +01:00
|
|
|
option 'ifname' 'eth0.1 bat0 tap0'
|
2011-12-13 16:39:15 +01:00
|
|
|
option 'auto' '1'
|
2011-03-23 15:19:27 +01:00
|
|
|
|
|
|
|
config 'switch' 'eth0'
|
|
|
|
option 'name' 'eth0'
|
|
|
|
option 'reset' '1'
|
|
|
|
option 'enable_vlan' '1'
|
|
|
|
|
|
|
|
config 'switch_vlan' 'eth0_1'
|
|
|
|
option 'device' 'eth0'
|
|
|
|
option 'vlan' '1'
|
|
|
|
option 'ports' '0 1 2 3 5t'
|
|
|
|
|
|
|
|
config 'switch_vlan' 'eth0_2'
|
|
|
|
option 'device' 'eth0'
|
|
|
|
option 'vlan' '2'
|
|
|
|
option 'ports' '4 5t'
|
|
|
|
|
|
|
|
config 'interface' 'wan'
|
|
|
|
option 'ifname' 'eth0.2'
|
2011-05-19 14:25:06 +02:00
|
|
|
option 'proto' 'dhcp'
|