Persistent route are stored in the registry at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes.
You can use the P switch with the route command to add a static route to the registry. The syntax is:
route -p add DestinationIP mask IpMask GatewayIP
Example:
route -p add 131.107.3.0 mask 255.255.255.0 131.107.3.1
NOTE: The above adds a data type REG_SZ entry with a data value of 131.107.3.0 255.255.255.0 131.107.3.1
0 comments
Hide comments