Previously, I configured IPVS loopback addresses in
auto lo:0 iface lo:0 inet static address 220.127.116.11 netmask 255.255.255.255 pre-up sysctl -q -p
On 18.04, I tried adding this section to the netplan config:
network: ethernets: lo: addresses: - 18.104.22.168/32
And then ran
netplan apply. systemd-networkd logs the following:
May 18 10:01:55 [...] systemd-networkd: lo: Adding address: 22.214.171.124/32 (valid forever) May 18 10:01:55 [...] systemd-networkd: lo: Adding address: 127.0.0.1/8 (valid forever) May 18 10:01:55 [...] systemd-networkd: rtnl: received address with invalid family 129, ignoring
But it doesn't seem to have any effect (
ifconfig doesn't list
lo:0). Not sure what the invalid family 129 refers to. The actual address (it's not 126.96.36.199 :-) ) works fine when I manually use ifconfig to set it up.
I also tried using
lo:0 as the YAML key name, but then I get this error:
May 18 10:00:06 [...] systemd-networkd: /run/systemd/network/10-netplan-lo:0.network:2: Interface name is not valid or too long, ignoring assignment: (null)
Looks like systemd-networkd doesn't like
lo:0 as an interface name. Any suggestions?