Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix random MAC address on reboot or when a VM/LXC is stopped or started. #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drescherflo
Copy link

I noticed that the raspberry's MAC changed on every reboot or when a container/vm is started. Nothing too problematic, but this requires other devices to update their ARP table more often than needed.

This PR sets the MAC of vmbr0 to the one of eth0 in the network config. This should fix the issue for new users. Old users need to append their /etc/network/interfaces with

        post-up ip link set vmbr0 address <MAC-address of eth0>

From my knowledge, it is required to set the MAC of vmbr0 to one of the bridged ports (in this case eth0). Else it gets randomly generated, and the set address is ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants