Monday, June 7, 2010

windows persistent static routes

route -p add "dest.ip.addr" mask "netmask" "gateway"

-p to make the routing persistent

"dest.ip.addr" - like 172.18.0.0
"netmask" - netmask like 255.255.255.0
"gateway" - like 192.168.244.1

The persistent routes are stored in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes

No comments: