I’m using systemd-networkd on Archlinux on one of my servers to configure the static IP addresses. While this seems pretty straight-forward, there’s a big issue that you can bump into when trying to configure multiple IP addresses. As this took me some time to figure out and it’s not well documented, I decided to leave a blog post for future me (and possibly others).
Apparently, the configuration described in the Archlinux wiki is not feasible when trying to configure multipe addresses. You need to use the alternative method using one
[Network] block. Using multiple
Address= lines in the
[Address] block is apparently not valid.
systemctl restart systemd-networkd doesn’t complain about an invalid configuration, but instead leaves you without any network config at all – Which then requires a rescue-system to boot when you’re on a server without physical access.
So here’s the working configuration I ended up with:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Update: According to this post I wasn’t reading through
man systemd.network carefully enough. It’s also possible to just use multiple
[Address] sections with one IP each.