IP Commands
ip rtdelete
Delete a route from the routing table.
SYNTAX:
ip rtdelete
where:
dst
dstmsk
label
gateway
intf
EXAMPLE:
=>ip rtlist
Destination Label
10.0.0.0/24
10.10.0.0/24 Interactive
10.0.0.140/32
127.0.0.1/32
=>ip rtdelete dst=10.10.0.0/24 label=Interactive gateway=10.0.0.140
=>ip rtlist
Destination Label
10.0.0.0/24
10.0.0.140/32
127.0.0.1/32
=>
RELATED COMMANDS:
ip rtadd
ip rtlist
E-DOC-CTC-20061027-0012 v2.0
dst = <ip-address>
[dstmsk = <ip-mask(dotted or cidr)>]
[label = <string>]
[gateway = <ip-address>]
[intf = <string>]
The destination IP address(es) for this route.
Note
Supports cidr notation.
The destination IP address mask.
The name of the label.
The IP address of the next hop. The next hop must be directly connected.
Note
The parameters
gateway
Only for special interface routes: the outgoing IP interface name.
Note
The parameters
gateway
10.0.0.140
10.0.0.140
10.0.0.140
127.0.0.1
10.0.0.140
10.0.0.140
127.0.0.1
Add a route to the routing table.
Display the routing table.
and
intf
are mutually exclusive.
and
intf
are mutually exclusive.
Gateway
Intf Mtrc Status
eth0
0
eth0
0
eth0
0
loop
0
Gateway
Intf Mtrc Status
eth0
0
eth0
0
loop
0
REQUIRED
OPTIONAL
OPTIONAL
OPTIONAL
OPTIONAL
[UP]
[UP]
[UP]
[UP]
[UP]
[UP]
[UP]
459