How to show ip routes in Mac OS X?

Fire up your terminal an enter the following command:

netstat -nr


Or you could limit it a bit to this:

netstat -rnf inet


Or mabye you are just looking for the default route:

route -n get default


For the BSD guys this is easy, but as a Linux user, I was trying route all the time ;)

Last update:
08-10-2012 14:37
Daniel Urstöger
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.