Do you have a Macbook Pro or Macbook Air and want to know how to show the routes it has in the routing table? Are you looking for the Windows command route print equivalent in OSX? This post is for you.
Show Routes
This is the command to show routes on a Mac OSX:
|
The -r
flag means to show routes.
The -n
flag means to not resolve IPs to hostnames.
Here is an example output of the command:
|
In the case above, the default gateway of this Mac is 192.168.20.1. Meaning all routes are pointing to that system.
Comments