forked from freifunk-franken/firmware
192dd3765c
BATMAN couldn't handle devices with the same MAC, so this uses the internal switch to bridge the ports. It also changes the MAC to a localy unique address. Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
42 lines
933 B
Plaintext
42 lines
933 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' 'wlanmesh'
|
|
option 'ifname' 'wlan1'
|
|
option 'mtu' '1528'
|
|
|
|
config 'interface' 'mesh'
|
|
option 'type' 'bridge'
|
|
option 'ifname' 'eth0.1 wlan0 bat0 tap0'
|
|
option 'auto' '1'
|
|
|
|
config 'interface' 'wan'
|
|
option 'ifname' 'eth1'
|
|
option 'proto' 'dhcp'
|
|
|
|
config 'interface' 'ethmesh'
|
|
option 'ifname' 'eth0.3'
|
|
option 'mtu' '1528'
|
|
|
|
config 'switch'
|
|
option 'name' 'eth0'
|
|
option 'reset' '1'
|
|
option 'enable_vlan' '1'
|
|
|
|
#3. und 4. LAN Port
|
|
config 'switch_vlan'
|
|
option 'device' 'eth0'
|
|
option 'vlan' '1'
|
|
option 'ports' '1 2 0t'
|
|
|
|
#1. und 2. LAN Port
|
|
config 'switch_vlan'
|
|
option 'device' 'eth0'
|
|
option 'vlan' '3'
|
|
option 'ports' '4 3 0t'
|
|
|