Declare a static route to reach other LAN

I couldn’t get the nmcli method to work and therefore used Run On Startup.d. However, on a few rare occasions it didn’t work and I had to reboot (or restart the Run On Startup.d addon).

What finally works for me is:

  1. in order to get access to nmcli from the terminal, I had to log into the host system:
docker run --privileged --pid=host -it alpine:latest \
nsenter -t 1 -m -u -n -i sh

source

  1. follow the above steps with nmcli
2 Likes