IP Commands
E-DOC-CTC-20060414-0002 v1.0
409
ip rtadd
Add a route to the routing table.
SYNTAX:
where:
EXAMPLE:
RELATED COMMANDS:
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
=>ip rtlist
Destination Label
Gateway
Intf Mtrc Status
10.0.0.0/24
10.0.0.140
eth0
0
[UP]
10.0.0.140/32
10.0.0.140
eth0
0
[UP]
127.0.0.1/32
127.0.0.1
loop
0
[UP]
=>ip rtadd dst=10.10.0.0/24 label=Interactive gateway=10.0.0.140
=>ip rtlist
Destination Label
Gateway
Intf Mtrc Status
10.0.0.0/24
10.0.0.140
eth0
0
[UP]
10.10.0.0/24 Interactive
10.0.0.140
eth0
0
[UP]
10.0.0.140/32
10.0.0.140
eth0
0
[UP]
127.0.0.1/32
127.0.0.1
loop
0
[UP]
=>
ip rtdelete
Delete a route from the routing table.
ip rtlist
Display the routing table.
Summary of Contents for SpeedTouch 516
Page 2: ......
Page 3: ...SpeedTouch 516 v6 536 v6 546 v6 CLI Reference Guide ...
Page 30: ...ADSL Commands E DOC CTC 20060414 0002 v1 0 10 ...
Page 61: ...ATM Commands E DOC CTC 20060414 0002 v1 0 41 atm oam ping Send ATM loopback cells ...
Page 86: ...AutoPVC Commands E DOC CTC 20060414 0002 v1 0 66 ...
Page 94: ...Config Commands E DOC CTC 20060414 0002 v1 0 74 ...
Page 130: ...DHCP Commands E DOC CTC 20060414 0002 v1 0 110 dhcp client ifdelete Delete a DHCP client ...
Page 315: ...Expr Commands E DOC CTC 20060414 0002 v1 0 295 EXAMPLE 1 ...
Page 317: ...Expr Commands E DOC CTC 20060414 0002 v1 0 297 EXAMPLE 2 ...
Page 322: ...Expr Commands E DOC CTC 20060414 0002 v1 0 302 ...
Page 360: ...GRP Commands E DOC CTC 20060414 0002 v1 0 340 ...
Page 382: ...IDS Commands E DOC CTC 20060414 0002 v1 0 362 ...
Page 404: ...Interface Commands E DOC CTC 20060414 0002 v1 0 384 ...
Page 446: ...IP Commands E DOC CTC 20060414 0002 v1 0 426 ...
Page 482: ...Label Commands E DOC CTC 20060414 0002 v1 0 462 ...
Page 500: ...MBUS Commands E DOC CTC 20060414 0002 v1 0 480 ...
Page 574: ...PPTP Commands E DOC CTC 20060414 0002 v1 0 554 ...
Page 602: ...Service Commands E DOC CTC 20060414 0002 v1 0 582 ...
Page 618: ...SNMP Commands E DOC CTC 20060414 0002 v1 0 598 ...
Page 628: ...Software Commands E DOC CTC 20060414 0002 v1 0 608 ...
Page 656: ...Upgrade Commands E DOC CTC 20060414 0002 v1 0 636 ...
Page 684: ...System Logging Messages E DOC CTC 20060414 0002 v1 0 664 ...
Page 694: ...Supported Key Names E DOC CTC 20060414 0002 v1 0 674 ...
Page 709: ......