Add Persistent Route on Windows Server


Login to Windows as administrator or you will get below error when executing the route add command:

The requested operation requires elevation.
Route add command:
C:\> route -p add 10.10.10.0 mask 255.255.255.0 192.168.1.1 metric 1

This writes the persistent route to the following Windows Registry key as a string value (REG_SZ):

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes

0 comments: