We are using
sudo route del default ppp0
sudo route add -net 172.20.0.0 netmask 255.255.0.0 dev ppp0
Mac OS X 10.11.6
Mac OS X
sudo route delete -net default -ifp ppp0
I used this question to help me out and it turned out I needed one extra command.
Basically the working solution for
Mac OS X 10.11.6 goes as follows:
sudo route delete -net default -interface ppp0 sudo route add -net 0.0.0.0 -interface en0 sudo route add -net 172.20.0.0 -netmask 255.255.0.0 -interface ppp0
Which basically means:
ppp0which was set by
Linux equivalent, as mentioned in the question, is:
sudo route del default ppp0 sudo route add -net 172.20.0.0 netmask 255.255.0.0 dev ppp0
So you actually skip the step #2.
Not that hard in the end.