The Windows Routing Table

Routing Tables Overview

When routers need to forward packets, they interpret the addresses of the packets, and then use the information in the routing tables to pass the packet on. Data packets contain both source and destination addresses in their packet headers. This is the information that is used when routing decisions need to be made.

The destination address is compared with the local address to determine the following information on how to route the packet:

The routing table contains route entries. The different types of routes in the routing are:

You can view the content of the IP routing table from:

With static routing, administrators have to manually create and modify the routing table entries. Each time a change occurs in the network configuration, the entries in the routing table have to be modified to reflect these changes. Static routing works well in a small network where it is easier to configure a small number of static routes than it is to configure dynamic routing.

With dynamic routing, routing protocols enable IP routers can communicate with each other. The routing protocols also enable routers to share the information they have in their routing tables. A router that is configured to use dynamic routing forwards its routing table’s content to the other routers configured for dynamic routing at regular time periods or intervals.

Understanding the Windows 2000 and Windows XP Routing Tables

The Windows 2000 routing table and Windows XP routing table can however only be accessed from a command line. The Routing And Remote Access management console cannot be used to view the contents of a Windows 2000 routing table and Windows XP routing table.

The standard fields in a Windows 2000 routing table and Windows XP routing table are:

The additional fields that can be present in the Windows 2000 routing table and Windows XP routing table are:

How to view a Windows 2000 routing table or Windows XP routing table:

  1. Click Start, Run, enter cmd, and then press Enter to open a command prompt window.
  2. Enter the command route help to display the different commands that can be used with the route command. Press Enter
  3. To view the routing table, enter route print.
  4. The default routing table entries are created whenever the TCP/IP protocol starts on the specific computer.
  5. The default route should be displayed as 0.0.0.0 with the subnet mask of 0.0.0.0.
  6. The loopback route should be displayed as 127.0.0.0 with a subnet mask of 255.0.0.0 and gateway 127.0.0.1.
  7. The Network Destination column should contain a route entry for the local computer.
  8. Enter exit to close the command prompt window.

How to add routing table entries using the route command:

  1. Click Start, Run, enter cmd, and then press Enter to open a command prompt window.
  2. Enter the command route help to display the different commands that can be used with the route command. Press Enter.
  3. The command line format used to add a routing table entry is:
    • route add [destination] [mask] [gateway] [metric] IF [interface]
  4. To verify that the correct routing table entry was added, enter route print to view the routing table.
  5. If the incorrect gateway or metric was entered, use the route change command to modify these values.
  6. If any other information was incorrectly entered, you have to use the route delete command to delete the specific entry, and the route add command to re-enter the routing table entry.

How to delete routing table entries:

  1. Click Start, Run, enter cmd, and then press Enter to open a command prompt window.
  2. The command line format to delete a routing table entry is:
    • route delete [destination]
  3. To verify that the correct routing table entry was deleted, enter route print to view the routing table.

Understanding the Windows Server 2003 Routing Table

The Windows Server 2003 routing table contains the following standard fields:

With Windows Server 2003, you can view the routing table using:

The main differences between the previous routing tables and the Windows Server 2003 routing tables are listed below:

How to view the routing table in Window Server 2003:

  1. Click Start, Administrative Tools, and click Routing And Remote Access to open the Routing And Remote Access console.
  2. In the console tree, expand the IP Routing node.
  3. Right-click the Static Routes node, and then select the Show IP Routing Table command from the shortcut menu.
  4. When the routing table is viewed from the Routing And Remote Access console, the Protocol field is displayed. The Protocol field indicates the manner in which the route was discovered.

How to add routing table entries using the Routing And Remote Access console:

  1. Click Start, Administrative Tools, and click Routing And Remote Access to open the Routing And Remote Access console.
  2. In the console tree, expand the IP Routing node.
  3. To view the routing table for an interface, right-click the specific interface, and then select Show IP routing Table from the shortcut menu.
  4. To add a static routing table entry, expand the IP Routing node, and then select Static Routes.
  5. Right-click Static Routes, and click Add Static Route on the shortcut menu.
  6. The Static Route dialog box opens.
  7. From the Interface drop-down list box, select the interface.
  8. Enter a value for Destination.
  9. Enter a value for Network mask.
  10. Enter a value for Gateway.
  11. Enter a value for Metric.
  12. Leave the demand-dial connections checkbox enabled if the route is to be used for demand-dial connections.
  13. Click OK.

How to delete routing table entries using the Routing And Remote Access console

  1. Click Start, Administrative Tools, and click Routing And Remote Access to open the Routing And Remote Access console.
  2. In the console tree, expand the IP Routing node.
  3. Select Static Routes to display the current static routes in the right pane.
  4. Locate and select the static route that you want to remove from the IP routing table.
  5. Right-click the specific static route, and then select Delete from the shortcut menu.
  6. The static route is immediately removed from the routing table.

How to disable the automatic metric calculation feature:

  1. Click Start, Control Panel, and then click Network Connections.
  2. Select Local Area Connection.
  3. The Local Area Connection Properties dialog box opens.
  4. In the This connection uses the following items box, select the Internet Protocol (TCP/IP). Click Properties.
  5. When the Internet Protocol (TCP/IP) Properties dialog box opens, click Advanced.
  6. The Advanced TCP/IP Settings dialog box contains a number of tabs: IP Settings tab, DNS tab, WINS tab and Options tab.
  7. The IP Settings tab is divided into the following areas:
    • IP addresses
    • Default gateways
    • Automatic metric
  8. In the Automatic metric area of the IP Settings tab, uncheck the Automatic metric checkbox to disable the automatic metric calculation feature.
  9. You can manually enter the Interface metric once the automatic metric calculation feature is disabled.
  10. Proceed to set the value for the Interface metric in the available field.
  11. Click OK to save your changes and close the Advanced TCP/IP Settings dialog box.
  12. Click OK to close the Internet Protocol (TCP/IP) Properties dialog box.
  13. Click OK to close the Local Area Connection Properties dialog box.


Top 5 Free Networking Tools

Bookmark The Windows Routing Table

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.