IP Commands
E-DOC-CTC-20050531-0057 v1.0
396
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-100}>]
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. This hop must be directly connected.
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 580
Page 1: ...SpeedTouch 580 Wireless Residential ADSL Gateway CLI Reference Guide Release R4 3 1 ...
Page 2: ......
Page 3: ...SpeedTouch 580 CLI Reference Guide R4 3 1 ...
Page 28: ...ADSL Commands E DOC CTC 20050531 0057 v1 0 8 ...
Page 80: ...ATM Commands E DOC CTC 20050531 0057 v1 0 60 ...
Page 84: ...AutoPVC Commands E DOC CTC 20050531 0057 v1 0 64 ...
Page 92: ...Config Commands E DOC CTC 20050531 0057 v1 0 72 ...
Page 118: ...CWMP Commands E DOC CTC 20050531 0057 v1 0 98 ...
Page 264: ...DSD Commands E DOC CTC 20050531 0057 v1 0 244 ...
Page 328: ...Expr Commands E DOC CTC 20050531 0057 v1 0 308 ...
Page 358: ...Firewall Commands E DOC CTC 20050531 0057 v1 0 338 ...
Page 390: ...IDS Commands E DOC CTC 20050531 0057 v1 0 370 ...
Page 532: ...PPTP Commands E DOC CTC 20050531 0057 v1 0 512 ...
Page 568: ...SNMP Commands E DOC CTC 20050531 0057 v1 0 548 ...
Page 596: ...System Commands E DOC CTC 20050531 0057 v1 0 576 ...
Page 614: ...User Commands E DOC CTC 20050531 0057 v1 0 594 ...
Page 650: ...System Logging Messages E DOC CTC 20050531 0057 v1 0 630 ...
Page 660: ...Supported Key Names E DOC CTC 20050531 0057 v1 0 640 ...
Page 675: ......