How to add Persistent Route on Microsoft Windows Operating System

First of all what is a Persistent Route? The answer is very simple. persistent route is a permanent static route that will not be deleted when computer restart.

Use following format to add Persistent route in Microsoft Windows using CMD(You need to run CMD as administrator)

route add destination mask subnetmask gateway

Example

For example, lets add a entry that will route 10.0.0.0/24 network through the gateway of 192.168.1.10. Open Windows command prompt as administrator and enter the following command.

route add -p 10.0.0.0 mask 255.0.0.0 192.168.1.10

Option -p is the important part. without -p this will not be persistent route and will be removed after system restart.

This works for on All Microsoft Windows operating systems, Both Desktop and server versions.