How to get default gateway in Mac OSX
You can try with: route -n get default It is not the same as GNU/Linux’s route -n (or even ip route show) but is useful for checking the default route information. Also, you can check the route that packages will take to a particular host. E.g. route -n get www.yahoo.com The output would be similar … Read more