I have a working CoreOS machine where I need to change two virtual network interface IP’s in the /etc/systemd/network file like this:
[Match]
Name=interface name
[Network]
Address=ip address.
This works great for one interface, but when I add a second interface, which needs a different IP address, like this:
[Match]
Name=interface name
[Network]
Address=ip address.
[Match] Name=interface name2
[Network] Address=ip address2.
This doesn’t work. I can’t find an example where two interface IP’s are changed anywhere online.
Any help is very much appreciated. Thanks!