If you want to clone a SD image which was created on a Raspberry Pi and use the cloned SD on another Raspberry you have to execute one important additional step. Otherwise the Raspberry starting with the cloned SD card will not get a network connection.


As usual configure thesystem with all the stuff you need on the cloned image. Finally delete /etc/udev/rules.d/70-persistent-net.rules and shutdown the system. Don't boot the image any more. Now you have a master image which can be cloned. Clone the SD card and other Raspberries will startup a network connection successfully with this cloned image.

What's the root cause for the networking issue?

/etc/udev/rules.d/70-persistent-net.rules is used by Linux to map an interface MAC address to a network interface eth0 or wlan0. If now the SD card is used on another Raspberry with another MAC address the new MAC address will be registered with the next free network interface - which is eth1 or wlan1 - and in /etc/network/interfaces there is no network definition for eth1 or wlan1 because there was only eth0 or wlan0 defined.

Add comment

Spam Kommentare sind sinnlos denn sie werden nicht publiziert. Sie werden vor der Publizierung auf Spam geprüft. Deshalb kann es aber etwas dauern bis ein Kommentar sichtbar wird.
Die eMail ist optional und nicht öffentlich sichtbar Sie wird u.U. genutzt um offline zu kommunizieren

Spam comments are useless because they will not be published. Before they are published they are checked for spam. Therefore it may take some time until the comment is published.
eMail is optional and hidden and may be used to contact you offline