E-DOC-CTC-20061027-0003v2.0
IP Commands
455
ip rtadd
Add a route to the routing table.
SYNTAX:
where:
ip rtadd dst = <ip-address>
[dstmsk = <ip-mask(dotted or cidr)>]
[label = <string>]
[gateway = <ip-address>]
[intf = <string>]
[srcintf = <string>]
[metric = <number{0-255}>]
dst The destination IP address(es) for this route.
Note Supports ip/mask notation.
REQUIRED
dstmsk The destination IP address mask. OPTIONAL
label The name of the label. OPTIONAL
gateway The IP address of the next hop (direct connected gateway or extended
route).
Note The parameters gateway and intf are mutually exclusive.
OPTIONAL
intf Only for special interface routes: the outgoing IP interface name.
Note The parameters gateway and intf are mutually exclusive.
OPTIONAL
srcintf Use this interface for source address selection. OPTIONAL
metric The metric for this route (weight factor).
The lower the metric, the higher the weight.
The default is 0.
OPTIONAL