NT/2000/XP: Display or view the Windows routing table

Home -> Windows -> Network administration

23261 views

From the computer of: qmchenry (339 recipes)
Created: Jun 15, 2004     Updated: Jun 16, 2004


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

During troubleshooting and system configuration, it is sometimes helpful to get a look at a host's routing table. This recipe describes viewing the routing table from the command prompt in Windows.

From a command prompt, type the following command to view the complete routing table:

route print


This will display a list of the active network interfaces by name and MAC address, all active routes, and all persistent routes. A persistent route is one that will still be around after a reboot.

The active route information includes the Network Destination, Netmask, Gateway, Interface, and Metric. The Network Destination and Netmask describe the destination of the route. The Gateway is the IP address through which packets must be routed to get to the destination network. The Interface represents the IP address on the network interface on the local system that will be used to reach the gateway. The Metric is a cost associated with the route. Given two routes to the same destination network, the route with the lowest cost will be used.

For UNIX users, the familiar command below will also display the routing table on a Windows host:

netstat -r

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  NT/2000/XP: Add a temporary route to the Windows routing table
  Connect to XP's Remote Desktop Connection with Windows 95,98,ME,NT, or 2000
  Turn off the Display of Startup, Shutdown, Logon, and Logoff Messages
  NT/2000/XP: Free GUI IP Configuration Tool from Microsoft
  Windows: Service Managing Through Command Line
  Add The Stored User Names and Passwords Applet to XP's Control Panel
  How to enable friendly trees in Windows Explorer
  XP: Set or configure static network IP address wtih netsh from command line
  Windows Server 2003: Kill Shutdown Tracker
  XP: Resolve Incorrectly Displayed Icons

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.