route - modify the routing tableSYNOPSIS
route add dst mask gateway [metric] [ttl] [src] [proto] [portl] [porth]DESCRIPTION
route addi dst mask ifn [metric] [ttl] [src] [proto] [portl] [porth]
route delete dst mask [src] [metric]
route delete all ifn
route delete aux ifn
route copy rtype [ifn]
route vpn [ip | name] [delete]
Command route add attempts to add an entry to the routing table. The arguments are:NOTESArgument metric can have the values 0 (for direct delivery) or 1 - 15 (for indirect delivery). Argument proto can be any IP protocol type, but the values 6 (TCP) or 17 (UDP) require an additional port range specification. Argument portl then specifies the lower value of the destination port range; argument porth specifies the highest destination port for the entry. To specify only a single port, argument portl is used and argument porth can be omitted.
dst destination host (name or IP) or network address mask subnet mask for the specified destination address gateway address of the next hop for this entry metric RIP metric ttl time-to-live in seconds for this entry (infinity = 0) src source address or subnet for Route Selection via Source Address proto protocol type in IP Header portl Lowest protocol port number porth Highest protocol port number
Command route addi is identical to route add, except that argument ifn specifies an interface rather than a gateway.
Command route delete deletes the routes matching dst and mask and (optionally) src and metric from the routing table.
Command route delete all ifn deletes all routes with a non-zero source address for the specified interface.
Command route delete aux ifn deletes the auxiliary gateway route for the specified interface.
Command route copy copies routes of the type specified by rtype from the Windows Routing Table. If ifn is specified, only those routes pertaining to that interface are copied. Argument rtype should be 4 for routes to remote destinations or 3 for routes to local destinations.The route copy command should be used with caution, because it may copy Windows routes that are of no interest to NAT32.
Command route vpn is used to add/delete a source-specific route to/from the routing table. Argument ip or name specifies the desired source address. This command is used when an OpenVPN connection is in place and a specified machine decides to use or not use that connection for Internet access.
All addresses and masks are specified in dotted decimal notation.SEE ALSO
Routes to be added must point to an IP address on the specified network. The route add command cannot be used to add interfaces to NAT32.
Default routes are characterised by the destination address: 0.0.0.0 and the mask: 0.0.0.0, and 0 denotes "any" for most other arguments.
OpenVPN, routes, setaux, setis, setsr