Skip to content

Batman-adv

batmanadv

Reference

Default options:

  • routing_algo: BATMAN_IV

  • bridge_loop_avoidance: 1

  • multicast_mode: 0

  • batadv_orig_interval: 2000

  • distributed_arp_table: 0

  • gw_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 alfred if installed, replaced by shared-state

  • Set 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 interface

  • set the mtu for each vlan interface to 1532

Examples

batctl


get active interfaces

root@LiMe-ab46b8:~# batctl if
eth0_270: active
wlan0-mesh_270: active

get 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