Cloning OS to other devices and join network

Hello,

I have a few Raspberry Pi’s running Kali Linux.

I Have prebuilt one and setup the OS to my liking including joining ZT.

Instead of having to manually do this on every device, I have cloned the original ones OS to another Pi device.

However, when only having the cloned unit plugged in, it keeps being assigned the same IP as the original one that I cloned from.

Is there a way to have each new cloned Pi get it’s own unique IP without having to have them all connected to ZT at the same time?

Thanks in advance.

Delete /var/lib/zerotier-one/identity.*

The identity must be unique on each system.

1 Like

Thanks for the quick response. Should I do this from the cloned device before joining the network again? Do I have to leave that network first?

Yeah you’ll probably want to remove the identity files pre-clone so you don’t have to do it on each cloned instance.

All you need to do to auto-join a network is touch /var/lib/zerotier-one/networks.d/$NETWORK_ID.conf

2 Likes

Thank you so much for your help!

This topic was automatically closed after 14 days. New replies are no longer allowed.