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 !
Vor der Publizierung wird jeder Beitrag auf Spam geprüft. Leider dauert es deswegen bis ein Kommentar sichtbar wird. Dafür erhält aber kein Subscriber Spam eMails.
Die eMail ist optional und nicht öffentlich sichtbar. Sie ist notwendig um eMail Benachrichtigungen zu Antworten auf Kommentare zu erhalten und wird u.U. genutzt um offline zu kommunizieren.

Spam comments are useless !
Any comment will be reviewed first and checked for spam. Unfortunately this delays the publishing of comments but will protect subscribers from spam.
eMail is optional and hidden and is required get update notifications for any comments and may be used to contact you offline