mickey
June 30, 2021, 9:12am
1
Hi,
I configured sucessfully 802.11s mesh with batman-adv using the guide: https://openwrt.org/docs/guide-user/network/wifi/mesh/batman
The part of important configuration is:
/etc/config/network:
config interface 'lan'
option type 'bridge'
option ifname 'bat0 eth0.1'
config interface 'bat0'
option proto 'batadv'
option routing_algo 'BATMAN_V'
config interface 'net_wifi_mesh0'
option mtu '2304'
option proto 'batadv_hardif'
option master 'bat0'
/etc/config/wireless
config wifi-iface 'meshnet0'
option device 'radio0'
option mode 'mesh'
option mesh_fwding '0'
option ifname 'mesh0'
option network 'net_wifi_mesh0'
And it works well.
But I thought that I can make second mesh on second radio, so I added to configuration:
/etc/config/network:
config interface 'net_wifi_mesh1'
option mtu '2304'
option proto 'batadv_hardif'
option master 'bat0'
/etc/config/wireless
config wifi-iface 'meshnet1'
option device 'radio1'
option mode 'mesh'
option mesh_fwding '0'
option ifname 'mesh1'
option network 'net_wifi_mesh1'
Generally it worked too, but not in the way I wanted
After this change I saw 2 copies of the device in batctl lists: one for the 5GHz (mesh0, MAC1) and the second one for 2.4GHz (mesh1, MAC2). Maybe it is ok... I don't know
I'm expecting in batctl o list such a device, with double mesh networks to be visible as one with two available paths...
Regards,
Mickey
mickey
July 13, 2021, 9:35am
2
I did the first test in too much of a hurry
The configuration above works properly.
I have more neighbors (10):
# batctl n
[B.A.T.M.A.N. adv openwrt-2019.2-11, MainIF/MAC: mesh1/d8:0d:17:22:b4:c5 (bat0/c2:ae:c2:ee:2f:cd BATMAN_V)]
IF Neighbor last-seen
30:b5:c2:96:1b:9b 0.050s ( 18.1) [ mesh1]
f4:f2:6d:9b:f6:30 0.330s ( 43.9) [ mesh1]
e8:94:f6:d0:d1:be 0.310s ( 18.7) [ mesh1]
c4:6e:1f:40:9e:bc 0.400s ( 47.9) [ mesh1]
d4:6e:0e:c6:0e:e6 0.450s ( 47.1) [ mesh1]
d4:6e:0e:c6:0e:e7 0.030s ( 38.9) [ mesh0]
e8:94:f6:d0:d1:bf 0.220s ( 4.2) [ mesh0]
30:b5:c2:96:1b:9c 0.010s ( 48.2) [ mesh0]
c4:6e:1f:40:9e:bd 0.090s ( 116.0) [ mesh0]
f4:f2:6d:9b:f6:31 0.510s ( 88.4) [ mesh0]
But routes are only to 5 devices:
# batctl o
[B.A.T.M.A.N. adv openwrt-2019.2-11, MainIF/MAC: mesh1/d8:0d:17:22:b4:c5 (bat0/c2:ae:c2:ee:2f:cd BATMAN_V)]
Originator last-seen ( throughput) Nexthop [outgoingIF]
d4:6e:0e:c6:0e:e6 0.400s ( 43.3) d4:6e:0e:c6:0e:e7 [ mesh0]
d4:6e:0e:c6:0e:e6 0.400s ( 21.0) e8:94:f6:d0:d1:bf [ mesh0]
d4:6e:0e:c6:0e:e6 0.400s ( 38.6) 30:b5:c2:96:1b:9c [ mesh0]
d4:6e:0e:c6:0e:e6 0.400s ( 43.3) f4:f2:6d:9b:f6:31 [ mesh0]
d4:6e:0e:c6:0e:e6 0.400s ( 43.7) c4:6e:1f:40:9e:bd [ mesh0]
d4:6e:0e:c6:0e:e6 0.400s ( 16.9) 30:b5:c2:96:1b:9b [ mesh1]
d4:6e:0e:c6:0e:e6 0.400s ( 22.7) e8:94:f6:d0:d1:be [ mesh1]
d4:6e:0e:c6:0e:e6 0.400s ( 41.0) c4:6e:1f:40:9e:bc [ mesh1]
d4:6e:0e:c6:0e:e6 0.400s ( 38.1) f4:f2:6d:9b:f6:30 [ mesh1]
* d4:6e:0e:c6:0e:e6 0.400s ( 45.8) d4:6e:0e:c6:0e:e6 [ mesh1]
f4:f2:6d:9b:f6:30 0.960s ( 43.3) d4:6e:0e:c6:0e:e7 [ mesh0]
f4:f2:6d:9b:f6:30 0.960s ( 20.7) e8:94:f6:d0:d1:bf [ mesh0]
f4:f2:6d:9b:f6:30 0.960s ( 38.8) 30:b5:c2:96:1b:9c [ mesh0]
f4:f2:6d:9b:f6:30 0.960s ( 47.9) c4:6e:1f:40:9e:bd [ mesh0]
* f4:f2:6d:9b:f6:30 0.960s ( 95.9) f4:f2:6d:9b:f6:31 [ mesh0]
f4:f2:6d:9b:f6:30 0.960s ( 17.0) 30:b5:c2:96:1b:9b [ mesh1]
f4:f2:6d:9b:f6:30 0.960s ( 43.4) f4:f2:6d:9b:f6:30 [ mesh1]
f4:f2:6d:9b:f6:30 0.960s ( 20.6) e8:94:f6:d0:d1:be [ mesh1]
f4:f2:6d:9b:f6:30 0.960s ( 37.2) d4:6e:0e:c6:0e:e6 [ mesh1]
f4:f2:6d:9b:f6:30 0.960s ( 41.0) c4:6e:1f:40:9e:bc [ mesh1]
c4:6e:1f:40:9e:bc 0.850s ( 43.3) d4:6e:0e:c6:0e:e7 [ mesh0]
c4:6e:1f:40:9e:bc 0.850s ( 20.7) e8:94:f6:d0:d1:bf [ mesh0]
c4:6e:1f:40:9e:bc 0.850s ( 38.8) 30:b5:c2:96:1b:9c [ mesh0]
c4:6e:1f:40:9e:bc 0.850s ( 45.7) f4:f2:6d:9b:f6:31 [ mesh0]
* c4:6e:1f:40:9e:bc 0.850s ( 124.5) c4:6e:1f:40:9e:bd [ mesh0]
c4:6e:1f:40:9e:bc 0.850s ( 21.7) e8:94:f6:d0:d1:be [ mesh1]
c4:6e:1f:40:9e:bc 0.850s ( 16.7) 30:b5:c2:96:1b:9b [ mesh1]
c4:6e:1f:40:9e:bc 0.850s ( 36.5) d4:6e:0e:c6:0e:e6 [ mesh1]
c4:6e:1f:40:9e:bc 0.850s ( 38.3) f4:f2:6d:9b:f6:30 [ mesh1]
c4:6e:1f:40:9e:bc 0.850s ( 45.7) c4:6e:1f:40:9e:bc [ mesh1]
30:b5:c2:96:1b:9b 0.350s ( 43.3) d4:6e:0e:c6:0e:e7 [ mesh0]
30:b5:c2:96:1b:9b 0.350s ( 21.0) e8:94:f6:d0:d1:bf [ mesh0]
* 30:b5:c2:96:1b:9b 0.350s ( 77.3) 30:b5:c2:96:1b:9c [ mesh0]
30:b5:c2:96:1b:9b 0.350s ( 47.9) c4:6e:1f:40:9e:bd [ mesh0]
30:b5:c2:96:1b:9b 0.350s ( 45.7) f4:f2:6d:9b:f6:31 [ mesh0]
30:b5:c2:96:1b:9b 0.350s ( 42.3) c4:6e:1f:40:9e:bc [ mesh1]
30:b5:c2:96:1b:9b 0.350s ( 38.1) f4:f2:6d:9b:f6:30 [ mesh1]
30:b5:c2:96:1b:9b 0.350s ( 22.7) e8:94:f6:d0:d1:be [ mesh1]
30:b5:c2:96:1b:9b 0.350s ( 16.9) 30:b5:c2:96:1b:9b [ mesh1]
30:b5:c2:96:1b:9b 0.350s ( 37.2) d4:6e:0e:c6:0e:e6 [ mesh1]
e8:94:f6:d0:d1:be 0.020s ( 41.7) d4:6e:0e:c6:0e:e7 [ mesh0]
e8:94:f6:d0:d1:be 0.020s ( 20.9) e8:94:f6:d0:d1:bf [ mesh0]
e8:94:f6:d0:d1:be 0.020s ( 39.2) 30:b5:c2:96:1b:9c [ mesh0]
e8:94:f6:d0:d1:be 0.020s ( 41.7) f4:f2:6d:9b:f6:31 [ mesh0]
e8:94:f6:d0:d1:be 0.020s ( 41.7) c4:6e:1f:40:9e:bd [ mesh0]
e8:94:f6:d0:d1:be 0.020s ( 17.0) 30:b5:c2:96:1b:9b [ mesh1]
e8:94:f6:d0:d1:be 0.020s ( 36.8) d4:6e:0e:c6:0e:e6 [ mesh1]
e8:94:f6:d0:d1:be 0.020s ( 38.5) f4:f2:6d:9b:f6:30 [ mesh1]
* e8:94:f6:d0:d1:be 0.020s ( 42.1) c4:6e:1f:40:9e:bc [ mesh1]
e8:94:f6:d0:d1:be 0.020s ( 22.7) e8:94:f6:d0:d1:be [ mesh1]
But from a performance perspective, it seems better to make only one mesh on 5GHz and connect the clients to a 2.4GHz radio.
I think topic can be closed.
Regards,
Mickey