beautypg.com

Ip rtadd, Add a route to the routing table, Ip rtdelete – Technicolor - Thomson ST585 V6 User Manual

Page 475: Ip commands, Syntax

background image

E-DOC-CTC-20061027-0004 v1.0

IP Commands

451

ip rtadd

Add a route to the routing table.

SYNTAX:

where:

ip rtadd

dst =
[dstmsk = ]
[label = ]
[gateway = ]
[intf = ]
[srcintf = ]
[metric = ]

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