How to Setup a Raspberry Pi Ad-Hoc Network Using BATMAN-ADV on Raspbian Stretch

Tyler Doll
6 min readApr 3, 2019
Photo by Alina Grubnyak on Unsplash

Setting up BATMAN-ADV (Better Alternative To Mobile Ad-hoc Networks — Advanced) is supposed to be very easy, and it is…if you know what you’re doing. If however, you’re like how I was at the beginning of all of this and have no clue what you’re doing, it can be a pain. Especially since all of the tutorials out there are outdated and for older Raspbian versions. Fortunately I was able to piece things together and figure out how to do this in 2019. Hopefully things won’t change too fast and this tutorial won’t become outdated within the year, but we’ll see how that goes.

What You Will Need

For this to work you will need a Raspberry Pi with built-in wifi (I used Pi 3b and ZWs). Also if you want to connect a Pi to the internet via WiFi to serve as an internet gateway, you’ll need a second network interface such as the TP-Link 150Mbps High Gain Wireless USB Adapter for PC and Laptops. This will enable you to have access to both the ad-hoc network and a WiFi network. This is a little more complicated though so I will cover this at the end of the tutorial. That’s it, that’s all you need. Simple right? Well now we get to the software.

Software Fun

--

--