Hi,
I'm trying to use batman-adv to fix wifi signal problems with a few Raspberry Pis. So far it's more-or-less working. I'm using dnsmasq on the main gateway node to serve IP addresses over DHCP.
One problem I have is that the bat0 device has a different MAC address each time it starts. My Raspbery Pis reboot each day on a cron job and each time they get a new MAC. This causes dnsmasq to give them a new IP address. This causes problems talking to other nodes with outdated DNS caches, as well as being irritating when I try to use ssh and it thinks the nodes are "impersonating" each other.
Is there a way to force batman-adv to use a stable MAC address?
Thanks, Matthew Exon
On Saturday, 31 August 2019 21:33:09 CEST batman.mexon@spamgourmet.com wrote:
I'm trying to use batman-adv to fix wifi signal problems with a few Raspberry Pis.
batman-adv doesn't change your wifi signal. So I am assuming that your main access point wasn't able to cover the whole area and so you use multiple accesspoint and use mesh as a backbone between them.
[...]
Is there a way to force batman-adv to use a stable MAC address?
ip link set dev bat0 address XX:XX:XX:XX:XX:XX
There might be a configuration option in whatever configuration interface you use to bring up the interfaces.
Kind regards, Sven
On 2019-09-01 08:42 , Sven Eckelmann - sven@narfation.org wrote:
On Saturday, 31 August 2019 21:33:09 CEST batman.mexon@spamgourmet.com wrote:
I'm trying to use batman-adv to fix wifi signal problems with a few Raspberry Pis.
batman-adv doesn't change your wifi signal. So I am assuming that your main access point wasn't able to cover the whole area and so you use multiple accesspoint and use mesh as a backbone between them.
Not quite. It's just that the most distant raspberry pi can't reach the main access point, so I want it to automatically find a closer raspberry pi to act as a relay. But yeah you're right I'm not trying to improve the signal itself, just work around what I've got.
[...]
Is there a way to force batman-adv to use a stable MAC address?
ip link set dev bat0 address XX:XX:XX:XX:XX:XX
There might be a configuration option in whatever configuration interface you use to bring up the interfaces.
Hey yeah, that's exactly what I'm after, thanks! I'm not sure I've quite got it working exactly right, I'll have to see if leases still get renewed correctly. But that command is definitely what I needed.
b.a.t.m.a.n@lists.open-mesh.org