Batman-adv
Reference
- B.A.T.M.A.N. on Wikipedia
- OpenWrt wiki page for B.A.T.M.A.N. / batman-adv
- Open-Mesh wiki page for B.A.T.M.A.N. advanced
Default options:
routing_algo:BATMAN_IVbridge_loop_avoidance:1multicast_mode:0batadv_orig_interval:2000distributed_arp_table:0gw_mode:client- set gw_mode=client everywhere. Since there's no gw_mode=server, this makes bat0 never forward requests so a rogue DHCP server doesn't affect whole network (DHCP requests are always answered locally)Support
alfredif installed, replaced byshared-stateSet a unique macaddress for each batman interface
Avoid dmesg flooding caused by BLA with messages like "br-lan: received packet on bat0 with own address as source address". Tweak MAC address for each of the interfaces used by Batman-adv 00 + Locally administered unicast .. 2 bytes from interface name .. 3 bytes from main interfaceset the
mtufor each vlan interface to1532
Examples
batctl
get active interfaces
root@LiMe-ab46b8:~# batctl if
eth0_270: active
wlan0-mesh_270: activeget neighbours
root@LiMe-ab46b8:~# batctl n
[B.A.T.M.A.N. adv 2025.4-openwrt-2, MainIF/MAC: eth0_270/02:95:39:ab:46:b8 (bat0/76:ff:fb:da:33:92 BATMAN_IV)]
IF Neighbor last-seen
wlan0-mesh_270 02:58:47:59:82:57 4.640s