interfaces-batman(5)
πΈ NAME πΈ
interfaces-batman β B.A.T.M.A.N. adv. extensions for the interfaces(5) file format. periodt. π
π¦ DESCRIPTION π¦
Okay so B.A.T.M.A.N. stands for Better Approach To Mobile Ad-Hoc Networking, and the adv. version is a mesh protocol that gives you an Ethernet overlay network over an Ethernet underlay. The overlay interface is called meshif, and the underlay interfaces are called hardif. iykyk π
Itβs supported in the Linux kernel and therefore available in many Linux environments. The ifupdown-ng executor relies on the batctl tool being installed. Setting interface based hop-penalties requires Linux Kernel 5.8 or later β no cap, check your kernel bestie β¨
Heads up: B.A.T.M.A.N. adv. adds 30-60 bytes of encapsulation overhead depending on whether network coding is activated or not. Take that into consideration when setting up overlay networks, especially on underlay networks with a conventional 1500 byte MTU. Itβs giving βbudget your MTU accordinglyβ energy. π
See https://www.open-mesh.org/projects/open-mesh/wiki for more details and updates. obsessed with a wiki link that actually stays updated π¦
The following options let you set up B.A.T.M.A.N. adv. interfaces. slay. π
π¦β¨ BATMAN-RELATED OPTIONS β¨π¦
batman-ifaceslist of interfaces β Specifies the underlay interfaces (hardifs) that should be configured for the B.A.T.M.A.N. adv.meshifdefined inside theifacestanza. this is the βwhoβs riding with usβ list π«Άbatman-hop-penaltyhop-penalty β The hop-penalty defines the cost of traversing a node or an interface. Itβs a numeric value between0and255. Historically, a hop-penalty could only be set on ameshif; since B.A.T.M.A.N adv.v2020.3(included in Kernel5.8) it can also be set on a per-interfaces (hardif) basis. lowkey a glow-up for path math π₯batman-gw-modegw-mode β Denotes the gateway mode, which controls the role this node will play within this B.A.T.M.A.N. adv. instance. The mode can beoff,client, orserver. main character energy: choose your role wisely πbatman-distributed-arp-tablemode β Activates or deactivates the Distributed ARP table (DAT) within this B.A.T.M.A.N. adv. instance. Valid values areenableanddisable. DAT is either on or off, no in-between vibes πbatman-multicast-modemode β Activates or deactivates the multicast mode of this B.A.T.M.A.N. adv. instance. Valid values areenableanddisable. multicast girlies rise π
π EXAMPLES π
Okay bestie, hereβs a B.A.T.M.A.N. adv. meshif:
auto bat-pad-cty
iface bat-pad-cty
batman-ifaces dummy-pad-cty vlan1234
batman-hop-penalty 5
#
hwaddress f2:00:c1:01:00:00
mtu 1500
And hereβs a B.A.T.M.A.N. adv. member interfaces (hardif):
auto vlan1234
iface vlan1234
mtu 1560
batman-hop-penalty 10
π SEE ALSO π
batctl(8)β go peek, bestie. your bat tool side quest π¦
π AUTHORS π
Maximilian Wilhelm <max@sdn.clinic> β iconic contributor behavior π
Stay slay, bestie β thatβs interfaces-batman(5) from the File Formats Manual, dated 2026-05-10 πβ¨
π¦ where this page comes from
- alpine 3.24: ifupdown-ng-doc 0.13.0-r0 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms