Home » Guides » Networking »

Published on 10.18.11 by Brent Trahan

Add a persistent route in Windows 7

How to use the route command to bridge two networks together permanently.

Every computer has a local routing table that routes network traffic based on the network configuration. If you use a “sandboxed” network for testing or you have a very large complex network, a persistent route is needed sometimes to bridge the networks together.

How to add a persistent route

So if you have a sandboxed network (10.1.1.0) that you want to bridge with your production network (192.168.1.0) and your production network’s gateway is 192.168.1.1, this would be the syntax to add a persistent route.

Route Syntax: route –p ADD [sandboxed network] MASK [subnet mask] [gateway ip address]

route –p ADD 10.1.1.0 MASK 255.255.255.0 192.168.1.1

Now all traffic to the sandboxed network (10.1.1.0) from the computer you added the persistent route to will be directed to the gateway (192.168.1.1).

Note: Don’t forget the –p to make sure this route is saved for good. Persistent routes are saved in the registry at HKEY_LOCAL_MACHINE\ System\ CurrentControlSet\ Services\ Tcpip\ Parameters\ PersistentRoutes in Windows 7.

Still need help? Ask your computer question now.

Related Guides:

Leave a Reply

Subscribe to this guide's comments RSS feed.

Microsoft Windows is a registered trademark of Microsoft Corporation. Microsoft Corporation in no way endorses or is affiliated with MAXIMUMpcguides.com. All other products mentioned are registered trademarks of their respective companies. MAXIMUMpcguides IS NOT RESPONSIBLE for any damage or data loss to your computer from using this web site. All information on MAXIMUMpcguides is provided on an AS IS basis with NO WARRANTIES.

Copyright 2006-2016 Brent Trahan. All rights reserved.