systemd-network static ip assignment

droidus

Well-Known Member
Apr 5, 2020
112
2
58
35
I am running Ubuntu 20. I am running it inside a LXC container. I set a static IP, and do a reboot, and I am back to dhcp again. I look at the file, and all of my changes are lost. I did notice that my interface name changes. The format is: eth0@nnn. I tried for the match section, eth0@*, but that did not work. How do I make my changes persistent upon a reboot?
 
you should set your IP configuration for a container in the Proxmox GUI