How to Add Route to TCP/IP Routing Table With Windows Routing And Remote Access Console or DOS Prompt

Windows box which connected to network, be it local area network (LAN) or Internet has a IP Routing Table with rules that defines how and where all data packets should be sent and routed when the IP datagram is forwarded to remote destination, normally via main network adapter on the system to router or switch and hub before leaving to Internet.

On some system connected to complex and complicated network, administrator may require to configure a more advanced network topology with additional routing routes requirement. For example, customized route is required when the NIC interface does not know where to route to an IP address on network segment which does not belong to the same subnet, such as router at 192.168.1.1 to access node on 10.1.1.1 and subnet mask of 255.255.255.0. In any cases, administrator or user can add a route into TCP/IP Routing Table using DOS command prompt with route command or Routing And Remote Access management console in Windows.

Add IP Route Rules into Windows Routing Table in Command Prompt with Route Command

  1. Click Start -> Run (or at Start Search in Windows Vista or Windows 7), and type in Cmd, then press Enter to open a command prompt window.
  2. The syntax of route command to add a routing table entry:

    route ADD [destination IP address or subnet] MASK [subnet mask] [gateway IP address] [metric] IF [interface]

    Not all parts of the syntax is mandatory. Some if optional, such as metric and network interface. Example command to add a route to 10.1.1.0/24 subnet network through 192.168.1.8 gateway router:

    route ADD 10.1.1.0 MASK 255.255.255.0 192.168.1.8

    To make the route persistent across boots of the system, use -p flag in addition to route add command. Else, the route is not preserved once system restarts. For example:

    route -p ADD 10.1.1.0 MASK 255.255.255.0 192.168.1.8

    Note: route help will display different commands and switches supported by route command.

  3. Press Enter to execute the route command.
  4. View the routing table to verify that the new route rules is added correctly.

    Note: If any part of the information in the route is wrong, user has to use the route delete command to delete the incorrect entry, and then use route add command as illustrated above to re-enter the routing table entry.

Add New Routing Table Entry Using Routing and Remote Access Console

  1. Click Start -> Administrative Tools -> Routing And Remote Access.
  2. If the computer is already configured for routing and remote access, skip to step 5. Else, if the server is not yet configured for routing and remote access, right click on the computer node (or click on Action menu), and then click on Configure and Enable Routing and Remote Access option.

    Configure and Enabling Routing and Remote Access

    Note: If you don’t see your PC (normally local system will be added automatically), right clock on root of tree, and click on Add Server to add This Computer.

  3. While configuration the computer for routing and remote access, select Custom configuration, and click Next button.

    Custom Configuration

  4. Check the checkbox of LAN routing, and click Next button.

    LAN Routing

  5. Click on Finish button and if prompted, opt to start the service.
  6. In the console tree, expand the computer node to add the IP routing rule, and then expand the IP Routing sub-tree.
  7. Right click on Static Routes, and click Add Static Route on the right click menu.

    Create New Static Route

  8. A Static Route dialog box will open.

    Add New Static Route

  9. Select the appropriate network connection to route from the Interface drop-down list box, and fill in the value for Destination, Network mask, Gateway and Metric. Leave the Use this route to initiate demand-dial connections option checkbox enabled if the route is to be used for demand-dial connections.
  10. Click OK.

2 Responses to “How to Add Route to TCP/IP Routing Table With Windows Routing And Remote Access Console or DOS Prompt”

  1. Joe Network
    June 18th, 2009 00:36
    2

    Fantastic instructions! You might want to proof-read, or have someone check the grammer. Lots of little mistakes (i.e. “is” instead of “are”, missing the, etc.) stick out like a sore thumb.

  2. How to Delete and Remove a Route Rule from Windows Routing Table » My Digital Life
    December 25th, 2008 02:45
    1

    [...] environment or system with more than one network adapters. In some other cases, accidentally insert a TCP/IP route entry incorrectly also require a deletion of it from the routing table. To delete a route from Windows [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

route add - add route - route add windows - windows route add - windows add route - route add - add route windows - how to add route - addroute - "route add" - route add syntax - route add example - dos route add - windows route command - add route - route cmd - cmd route - windows Route Add Command - cmd route add - route add windows 7 - route add -net - windows route cmd - add route in windows - ip route add - add route cmd - cmd route command - windows cmd route - how to add a route - addroute windows - route add -host - vista add route - route command dos - route add dos - cmd add route - windows "add route" - how to add route in vista - how to add a route in windows - add route windows vista - how to route add - dos route command - windows routing table - add routes to windows - add rount command - route add sample - add a route in windows - add route on windows - windows ip route - route command in windows - Vista route add - ADD ROUTE TO routing table - windows add route command - add route command dos - how to add route in windows - ip router windows - route add command in cmd - dos add route - route add command - addroute under windows - windows route examples - 7. Which of the following commands adds a route in windows? - adding route in windows - route add mask - adding route to interface - routeadd - route add windows - DOS Window IP routing - route add destination - roure add - remote route add - cmd routing table - windows cmd static route - how to run route command in windows vista - add route command - windows 7 route add - command to check route table -