I have 2 interfaces on an ubuntu 18.04 LTS system. The primary f0 is for all the internet facing traffic and also vpn traffic. The f1 is for internal traffic.
My netplan is as follows:
ethernets: enp0s20f0: addresses: [10.10.20.148/28] gateway4: 10.10.20.158 nameservers: addresses: [18.104.22.168,22.214.171.124] enp0s20f1: addresses: [10.10.20.132/28] routes: - to: 10.10.10.0/24 via: 10.10.20.142 nameservers: addresses: [10.10.x.x,10.10.x.x]
When I apply this netplan it kills my VPN and will not add the route. However I can execute the following and am able to connect to the internal network. I have tried adding metrics to no avail. What am I not doing here?
route add -net 10.10.10.0/24 gw 10.10.20.142 dev enp0s20f1