I have several raspberry pi zero w devices that all need the same installed packages, users, etc, and I would like to be able to duplicate the micro SD cards (or something that achieves the same effect), in order to avoid redoing the setup process with each pi.
I attempted this by making a disk image of one pi's SD card, and flashing it to a second SD card, and this worked for the most part. The problem is that both pis now have the same MAC addresses on their wlan0 interface, and as they're going to be on the same network, this won't work.
I haven't been able to find any resources on permanently changing the wlan0 MAC address on the zero w 2s, and I was under the impression it should be read from the hardware directly, but copying the SD cards seems to have copied the MAC addresses as well.
Is there a way to either reset the MAC addresses to the correct hardware-set ones, or to copy all of the pi files without changing the MAC addresses?
ifconfig
on both pis shows that the MAC addresses (and IP addresses) are identical. The hostnames were changed, and are different between the pis.ifconfig
is deprecated - Useip a
&ip r
and post IN YOUR QUESTION. It is possible to override MAC but this is not normal.