So in /etc/systemd/network I have a file lan.network:[Match]Name=eth0[Network]DHCP=no[Address]Address=192.168.59.1/24Sometimes I bring additional equipment onto that same interface but it's on a separate subnet (192.168.1.x).  To access this equipment I'd like to selectively run two IP addresses on the interface.  What is the best way to do this in systemd?  In older versions of Debian (Wheezy) I edited /etc/network/interfaces and had something like this:auto eth0iface eth0 inet staticaddress 192.168.59.1iface eth0:1 inet staticaddress 192.168.1.5And so by default the eth0 interface would be enabled, and when I needed to get on 192.168.1.x I'd run:ifup eth0:1.
How do I to set multiple IP addresses on an interface in systemd?
debian;systemd;systemd networkd
As I understand it, to do this permanently, you simply pile all the addresses together, i.e.:Address=192.168.59.1/24 192.168.1.5/24