Skip to content

raspberry2: Have NetworkManager provide stable MAC

James Valleroy requested to merge jvalleroy:raspi-mac-workaround into master

With Debian Stretch on Raspberry Pi 2, the kernel is not reading the hardware MAC address, so it uses a random one. This causes the IP address to change on every boot.

I would guess this is due to a mismatch between the raspi3-firmware and the armmp kernel. They probably haven't been tested together much yet (due to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858428).

As a workaround, have NetworkManager provide a stable MAC for the ethernet device. It is generated by hashing the device name and a private key, so it is unique for each box.

I built a raspberry2 image and ran it, and confirmed that the IP address is stable after reboot.

Merge request reports

Loading