In Windows, to add a static route, the syntax is as below:
route add [destination network] mask [destination network mask] [default gateway] -p
Example:
route add 10.0.0.0 mask 255.255.255.0 192.168.1.1 -p
*Without "-p", the route will be erased upon next reboot.
To see the routing table:
route print
To delete the route:
route delete [network]
Example:
route delete 10.0.0.0
* Make a Batch file for easy.
Post a Comment