Hello fellow forum people!
I have discovered OpenWRT searching for a way to reuse old hardware, and fell in love with the amounth of settings and tweekings possible!
Unfortunatly i was a little too motivated and i think i skipped some essential steps (one little after another... ;)) Well now i am stuck with my (selfmade) problem, and i would love a little help from you guys! Thanks in advance!
Here is what i am trying to achieve with batman-adv over Wifi-Mesh:
Router (with no Wifi) serves DHCP and Firewall over two VLANs in a Wifi-Mesh:
3: IOT
4: GUEST
The each of the three Ethernet Ports on the dump AP should be assigned to one VLAN.
Just like the tutorial of onemarcfifty:
I got the Wifi Mesh working, but i am not sure if i configured the wired part of the network correctly.
Also, i struggle to understand how the VLAN filtering works on DSA and swconfig devices.
I just don't get how the traffic should be tagged or untagged to be visible to batman...
I read that VLAN 1 & 2 are sometimes used by the cpu, how do i handle these two?
My Hardware is as follows:
Router: Ubiquiti Edgerouter Er8-pro
Dump APs: Netgear R6120, SRR60, RBR40
Here are the /etc/config/network of all devices:
Router:
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 'fd00:3f14:febd::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'bat0'
list ports 'eth0'
list ports 'eth2'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '64'
option defaultroute '0'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
config interface 'wan6'
option device '@wan'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option norelease '1'
config interface 'GUEST'
option proto 'static'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
option device 'br-guest'
option defaultroute '0'
config interface 'IOT'
option proto 'static'
option ipaddr '10.0.0.1'
option netmask '255.255.255.0'
option device 'br-iot'
option defaultroute '0'
config interface 'bat0'
option proto 'batadv'
option routing_algo 'BATMAN_IV'
option bridge_loop_avoidance '1'
option gw_mode 'server'
option hop_penalty '30'
config interface 'batwire'
option proto 'batadv_hardif'
option master 'bat0'
option device 'br-lan'
config device
option type 'bridge'
option name 'br-iot'
list ports 'bat0.3'
list ports 'eth3'
config device
option type 'bridge'
option name 'br-guest'
list ports 'bat0.4'
list ports 'eth4'
Dump AP: NETGEAR SRR60
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 'fd17:b412:ddda::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'bat0'
list ports 'lan1'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.3'
option netmask '255.255.255.0'
config device
option name 'wan'
option macaddr '38:94:ed:ca:e6:b1'
config interface 'IOT'
option proto 'dhcp'
option defaultroute '0'
option device 'br-iot'
option hostname '3iot'
config interface 'GUEST'
option proto 'dhcp'
option defaultroute '0'
option device 'br-guest'
option hostname '3guest'
config interface 'bat0'
option proto 'batadv'
option routing_algo 'BATMAN_IV'
option bridge_loop_avoidance '1'
option gw_mode 'client'
option hop_penalty '30'
config device
option type 'bridge'
option name 'br-iot'
list ports 'bat0.3'
list ports 'lan2'
config device
option type 'bridge'
option name 'br-guest'
list ports 'bat0.4'
list ports 'lan3'
config interface 'batmesh'
option proto 'batadv_hardif'
option master 'bat0'
option defaultroute '0'
option mtu '1532'
config interface 'batwire'
option proto 'batadv_hardif'
option device 'eth0'
option master 'bat0'
Dump AP NETGEAR R6120
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 'fd61:eeb8:c095::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'bat0'
list ports 'eth0.1'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.2'
option netmask '255.255.255.0'
option ip6assign '60'
option force_link '0'
option defaultroute '0'
config device
option name 'eth0.2'
option macaddr '94:a6:7e:b5:93:41'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '6t 3 2'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '6t 4'
config interface 'bat0'
option proto 'batadv'
option routing_algo 'BATMAN_IV'
option bridge_loop_avoidance '1'
option gw_mode 'off'
option hop_penalty '30'
config interface 'batmesh'
option proto 'batadv_hardif'
option master 'bat0'
config device
option type 'bridge'
option name 'br-guest'
list ports 'eth0.4'
list ports 'bat0.4'
config device
option type 'bridge'
option name 'br-iot'
list ports 'eth0.3'
list ports 'bat0.3'
config switch_vlan
option device 'switch0'
option vlan '3'
option ports '6t 1'
config switch_vlan
option device 'switch0'
option ports '6t 0'
option vlan '4'
config bridge-vlan
option device 'br-iot'
option vlan '3'
list ports 'bat0.3:t'
list ports 'eth0.3'
config bridge-vlan
option device 'br-guest'
option vlan '4'
list ports 'bat0.4:t'
list ports 'eth0.4'
config interface 'IOT'
option proto 'dhcp'
option device 'br-iot'
option hostname '2iot'
config interface 'GUEST'
option proto 'dhcp'
option device 'br-guest'
option hostname '2guest'
I searched the forum and read all the posts about VLAN filtering and batman-adv wiki.
Maybe i just need a little hint to get it working....
Thank you !

