Hello all
I have successfully created a Batman mesh network according to this tutorial:
https://openwrt.org/docs/guide-user/network/wifi/mesh/batman?rev=1555021785
The network is basically like this:
L1-M1-----M2-L2
Where M1 and M2 are mesh nodes/routers, while L1 and L2 are non-mesh laptops.
The question is how can I make it possible for L1 and L2 to communicate with each other over the mesh network.
The tutorial suggests to bridge the ethx and bat0 interfaces as shown below:
config interface 'vlan1111'
option type 'bridge'
option stp '1'
option ifname 'eth1.1111 bat0.1111'
option proto 'static'
option ipaddr '192.168.11.11'
option netmask '255.255.255.0'
option delegate '0'
In my case I guess what I need to do is to bridge eth0.1 and bat0.
But this is however not possible as eth0.1 is already a member of another bridge 'br-lan' as shown in the configuration below.
So, how can I correctly configure a bridge between the LAN and mesh in order to achieve non-mesh communication?
Kind regards
Em
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd4b:c72f:2fd3::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.100.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device 'lan_eth0_1_dev'
option name 'eth0.1'
option macaddr 'c4:71:00:00:b9:ea'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
config device 'wan_eth0_2_dev'
option name 'eth0.2'
option macaddr 'c4:71:00:00:b9:eb'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config interface 'nwi_mesh0'
option ifname 'mesh0'
option proto 'batadv'
option mesh 'bat0'
option mtu '2304'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 6t'
config interface 'wwan'
option proto 'dhcp'
root@OpenWrt:/etc/config# cat wireless
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path 'platform/10300000.wmac'
option channel '3'
option country 'US'
option legacy_rates '1'
option disabled '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
config wifi-iface 'wmesh0'
option device 'radio0'
option ifname 'mesh0'
option network 'nwi_mesh0'
option mode 'mesh'
option mesh_fwding '0'
option mesh_id 'DEFmesh'
#option encryption 'psk2+ccmp'
#option key 'meshpassord'