Celeb Glow
news | March 30, 2026

Using Netplan to setup a static IP for a cluster of devices connected via ethernet

I'm coming from NetworkManager world, so bear with me. I can do this on Ubuntu if I change Netplan's rendered to NetworkManger, but I'm hoping to learning the more native approach.

I have four devices (Raspberry Pi's) running Ubunutu 20.04 connected by switch. Only the 'master' pi connects to the external net via wifi, the rest have a static internal IP, and connect outside via NAT from the master.

With NetworkManager, i can vim /etc/network/interfaces.d/eth0 and add:

allow-hotplug eth0
iface eth0 inet static address 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255 gateway 10.0.0.1

before installing/configuring isc-dhcp server. Everything works gravy. I'm having trouble translating this into the net-plan configuration yaml. Or does it also involve Networkd??

4 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy