#TIL One could change the mac address of the lo interface, but one cannot revert it to 00:00:00:00:00:00. When the kernel boots or a netns is created, the lo interface spawns with the initial mac address 00:00:00:00:00:00. It can be changed afterwards, but it seems to be impossible to change it back to it's initial value 00:00:00:00:00:00. Fascinating. 🤷
In case you bother why I'm looking at MAC address handling for various link types of the Linux kernel: I'm working on a new ifstate feature to get reproducible mac addresses for virtual interfaces and reset the mac address of physical links to their permanent mac address by default.
https://codeberg.org/routerkit/ifstate/pulls/185
The reproducible MAC addresses are based on SHAKE256 with an input build from the host (machine-id), netns and interface (link) name.





