Setting a static ip in Containers

Hello,

What is the correct procedure for setting a static ip in 25.04.2.3 Containers (Ubuntu 24.04)?
Thank you.

from within the lxc you have to edit the network config file under

/etc/systemd/network/

example config:

[Match]
Name=eth0
[Network]
Address=192.168.2.9/24
Gateway=192.168.2.1
DNS=1.1.1.1
DNS=1.0.0.1

Thank you for that, how do I enter the lxc and access that file?