- MAXIMUMpcguides – Windows 7 tips, tricks, help, and how-to guides - http://maximumpcguides.com/windows-7 -

Add a persistent route in Windows 7

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.