ip Commands
E-DOC-CTC-20080409-0002 v2.0
529
ip rtadd
Add a route to the routing table.
SYNTAX:
ip rtadd dst = <ip-address>
[dstmsk = <ip-mask(dotted or cidr)>]
[label = <{None|DSCP|Interactive|Management|
Video|VoIP-RTP|VoIP-Signal|default}>]
[gateway = <ip-address>]
[intf = <{loop|ipsec0|lan1|wan1|dmz1|guest1}>]
[srcintf = <{loop|ipsec0|lan1|wan1|dmz1|
guest1}>]
[static = <{enabled|disabled}>]
[status = <{up|down}>]
[metric = <number{0-255}>]
where:
dst The destination IP address(es) using this route.
Supports ip/mask notation.
REQUIRED
dstmsk The destination IP address mask. OPTIONAL
label The name of a label. OPTIONAL
gateway The IP address of the next hop (direct connected
gateway or extended route)
OPTIONAL
intf Only for special interface routes : the outgoing IP
interface name.
OPTIONAL
srcintf Use this interface for source address selection. OPTIONAL
static Route persistency: static or dynamic (note that
not all routes can be changed).
OPTIONAL
status The administrative state of the route. OPTIONAL
metric The metric for this route (weight factor). OPTIONAL