Reference Manual


route - modify the routing table
route add dst mask gateway [metric] [ttl] [src] [proto] [portl] [porth]
route addi dst mask ifn [metric] [ttl] [src] [proto] [portl] [porth]
route delete dst mask [src] [metric]
route delete all ifn

Tip To view the current routing table, click this icon: NAT32 Routing Table Popup

Command route add attempts to add an entry to the routing table. The arguments are:
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
Argument 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.

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.

All addresses and masks are specified in dotted decimal notation.

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: and the mask:, and 0 denotes "any" for most other arguments.

routes, setis, setsr