Page 1 of 1

Add route to remote local network.

Posted: Sat Nov 27, 2021 1:50 pm
by RomanO.
Hi!
I'm have trouble with adding route from cfg file. For windows I'm use "route network mask gw", but this not work for Mac os. Server ovpn it's mikrotik, and I'm can't push route from him. Please write correct command. Big thanks!

Re: Add route to remote local network.

Posted: Tue Nov 30, 2021 5:53 am
by RomanO.
I'm find correct command, "route network mask", gw not needed.

Re: Add route to remote local network.

Posted: Tue May 16, 2023 4:02 pm
by funwisely
Here are few examples for add/delete additional routes on MacOS

sudo route –n add –net 172.16.1.0/24 10.8.0.1
sudo route add -host 172.16.10.7/32 -gateway 192.168.0.244
sudo route add -host 172.16.10.7/32 -gateway $DEFAULTGATEWAY

sudo route -n delete default A.B.C.D
sudo route -n delete -net 172.16.1.0/24
sudo route -n delete -net 137.200.42.0/24