Multiple loopback IPs in Arch Linux

Posted in arch by aangelis on 01 April 2016

A pretty easy way to configure multiple loopback IPs in Arch Linux is using systemd-networkd.

We must populate the configuration file for loopback interface

# cat << EOF > /etc/systemd/network/loopback-alias.network
[Match]
Name=lo

[Network]

[Address]
Label=lo:1
Address=172.16.253.10/32

[Address]
Label=lo:2
Address=172.16.253.11/32

[Route]
EOF

And finally we must enable systemd-networkd

# systemctl enable systemd-networkd.service