Network Troubleshooting: Performing a Route Print (MacOS)

Summary

Mac OS X has a command-line utility for performing a route print called "netstat". The routing table of a device displays the various paths an application may take to reach various network resources. When connected to the USNH VPN, various routes may be assigned to your device to allow network access to such resources.

 

How-To

Task: Print the routing table

Instructions

Step 1 - To print the routing table on a Mac OS X computer, you must open a Terminal window.

Step 2 - Terminal can be found by opening the Finder, selecting Applications and Utilities. To open a terminal session, double-click on "Terminal.app".

preview of the terminal menu

 

Step 3 -  Inside the Terminal application, the route print command is "netstat -nr". This will display the current routing table for the logged-in user.

routing table preview

 

Step 4 - To copy this result simple highlight and copy (Command (?) C).

Step 5 - You may also export the results of the route print directly to a file on your computer by directing the output of the netstat command to a file versus the screen.

  • The following command will output the routing table to a file called "routing_table.txt" on the Desktop:  netstat -nr > ~/Desktop/routing_table.txt  
  • The resulting file will include the same route information that is displayed on the screen in the Step 3 above.

 

Outcome

You have run the route print and copied or output the results to a file to save or share.

 

Need additional help?

Visit the Technology Help Desk Support page to locate your local campus contact information or to submit an online technology support request.  For password issues you must call or visit the Help Desk in person.