Skip to contentSkip to conversation

Consistent bat0 hardware address?

B.A.T.M.A.N. Jonathan Haws 2 participants 2 messages Aug 25, 2016 – Aug 26, 2016

lore
Share & tools
lore
#0 lore raw

Is there a way to ensure that the assigned hardware address for bat0 is consistent?  What I would like to have is keep the hardware address the same across reboots.  Can this be done?  Would it be done through /etc/udev/rules.d?  Or some other mechanism?

Thanks!
Jon

Signature · 4 lines
Jonathan R. Haws
Embedded Engineer
Space Dynamics Laboratory
[email protected]
#1 lore raw
Quoted 4 lines · Jonathan Haws

Is there a way to ensure that the assigned hardware address for bat0 is consistent?  What I would like to have is keep the hardware address the same across reboots.  Can this be done?  Would it be done through /etc/udev/rules.d?  Or some other mechanism?

Yes, I'd suggest using udev for this. batman-adv generates a random address every time it creates a new batX interface, therefore you need to use some userspace tool to make it static.

Cheers,

Signature · 1 line
Antonio Quartulli