ffbsee / ffbsee-ansible

Automatisiertes Aufsetzen und Updaten der Freifunk Gateways.
https://www.ansible.com/
MIT License
1 stars 4 forks source link

Do not use same mac from hardif for bat0 as well #76

Closed mart-ffbsee closed 1 year ago

mart-ffbsee commented 2 years ago

it's generally a bad idea to use same mac adress twice. here the mac from the real ethernet interface was used again for bat0 Here we introduce new 'rolled' mac addresses for batman interface on each host.

DEvil0000 commented 2 years ago

I agree, that the mac should not be the same. I however do not understand the history of this or the full impact. 1) As far as I remember your explanation from a few years back this was about debugging and tracking back devices based on their batman mac address. In theory this is a good thing since a ban would be more permanent. I am however not sure if this is actually the mac batman would use internally. 2) We should come up with some more automated way to generate a mac (or do not change it at all) instead of hardcoding it for every machine. 3) Also we should check if some scripts may expect that.

DEvil0000 commented 2 years ago

BTW: this could explain why DHCP was not working as expected.