In AlmaLinux 9 NetworkManager should be used to define connections. In the datacenter we use a route has to be defined in order to use custom IP from virtual machine. I have made progress defining IPs in host, but couldn't manage to have NetworkManager creating the route upon restart, but with this command network is working:
ip route add default via 192.168.0.1 dev ens18 onlink src 94.23.81.XXX
I'm not familiar with nmconnection file format so I couldn't make it with NetworkManager. Where should I put this command or in which file could I define this default and only route?
Thanks.