Network routes?

Karl Auer kauer at biplane.com.au
Mon Jun 12 13:47:33 UTC 2023


On Mon, 2023-06-12 at 08:17 -0500, Knute Johnson via ubuntu-users
wrote:
> I'm running NetworkManager and when I go to edit that connection and
> put in a route for the networks that are reachable through the
> 172.0.10.1 router it doesn't work.  If I put a route in on the
> command line:
> > 
> > ip route add 172.0.0.0/11 via 172.0.10.1 dev xxxx metric 1

I've set up routes in Network Manager that have worked.

Are your NICs wireless or wired?

Be a bit more specific about "doesn't work". Does the route appear in
the route table ("ip route show")? What happens when you ping the other
side of the link to the VPN hardware - do you get a timeout, network
unreachable, or something else? Does the entry in NetworkManager
"stick", or does it disappear after ten minutes or so? What exact
values are you putting in the four boxes for the NetworkManager route?
And why "/11"? that's an odd prefix length. I guess it's correct if it
works, but it's odd. It's wrong if you were aiming for RFC1918
addressing, though (should be e.g. 172.16.0.0/12). Does it match the
network address and prefix length on the VPN device's interface?

I have found that with Network Manager I need to reconnect in order for
new things to take effect. Your CLI route command would take immediate
effect though.

You might like to investigate nmcli, too.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer







More information about the ubuntu-users mailing list