firmware/bsp/dir300/root_file_system/etc/config/network
Tim Niemeyer 192dd3765c Change BATMAN ethernet ports
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>
2013-03-30 00:10:52 +01:00

43 lines
1 KiB
Text

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'
config 'interface' 'wlanmesh'
option 'mtu' '1528'
config 'interface' 'mesh'
option 'type' 'bridge'
option 'ifname' 'eth0.1 bat0 tap0'
option 'auto' '1'
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 5t'
config 'switch_vlan' 'eth0_2'
option 'device' 'eth0'
option 'vlan' '2'
option 'ports' '4 5t'
config 'switch_vlan' 'eth0_3'
option 'device' 'eth0'
option 'vlan' '3'
option 'ports' '2 3 5t'
config 'interface' 'ethmesh'
option 'ifname' 'eth0.3'
config 'interface' 'wan'
option 'ifname' 'eth0.2'