I am trying to port the following alias from /etc/network/interfaces
to /etc/systemd/network/eth0.network
.
auto eth0:1
iface eth0:1 inet static
address 10.0.2.1/24
I am trying to port the following alias from /etc/network/interfaces
to /etc/systemd/network/eth0.network
.
auto eth0:1
iface eth0:1 inet static
address 10.0.2.1/24
As Michael pointed out, you don’t.
Instead, you add additional
Address=
andGateway=
lines to the interface.Example: