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.1before 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