Microsoft Windows [Version 6.0.6001] (C) Copyright 2006 Microsoft Corp. c:\windows>netsh interface ipv4 set route ?
Usage: set route [prefix=]/[interface=][[nexthop=]][[siteprefixlength=]][[metric=]][[publish=]no|yes|immortal][[validlifetime=]|infinite][[preferredlifetime=]|infinite][[store=]active|persistent]
Parameters:
Tag Value
prefix - Prefix of route to modify.
interface - Interface name or index.
nexthop - Gateway address, if prefix is not on-link.
siteprefixlength - Prefix length for the entire site, if on-link.
metric - Route metric.
publish - One of the following values:
no: Not advertised in Route Advertisements.
This is the default.
yes: Advertised in Route Advertisements.
immortal: Advertised in Route Advertisements
with an infinite lifetime.
validlifetime - Lifetime over which the route is valid.
The default value is infinite.
preferredlifetime - Lifetime over which the route is preferred.
The default value is infinite.
store - One of the following values:
active: Change only lasts until next boot.
persistent: Change is persistent. This is
the default.
Remarks: Modifies route parameters. Time values can be expressed in
days, hours, minutes, and seconds; e.g. 1d2h3m4s.
Example:
set route 10.2.0.0/16 "Internet" 10.0.0.1 0 2 yes 5000 5000
store=active