So I replaced Netplan with Ifupdown as Netplan did not allow me to apply network configurations live, and I was told this is a known issue. To do this I installed ifupdown, used ip link show
to see my interface names and created the following /etc/network/interfaces
:
allow-hotplug eno1
iface eno1 inet dhcp
allow-hotplug eno2
iface eno2 inet dhcp
allow-hotplug enp10s0f0
iface enp10s0f0 inet static
address 10.0.1.235
netmask 255.255.255.0
gateway 10.0.1.1
allow-hotplug enp10s0f1
iface enp10s0f1 inet dhcp
I'm using allow-hotplug
because the system hangs at boot waiting for the network when I have some of the interfaces disconnected as I often don't use them all at the same time.
When the system boots, all connected interfaces get an IP address via DHCP, including the one I configured statically. To get the static IP address to apply, I must ifdown enp10s0f0
then ifup enp10s0f0
at which point it's fine.
If it's important, Netplan was removed with apt-get purge nplan
and cloud-init with apt-get purge cloud-init
.
How can I get my static configuration to work at boot?