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 ( that you want to bridge with your production network ( and your production network’s gateway is, 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 MASK

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

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-2019 Brent Trahan. All rights reserved.