Basic IP Routing Configuration
149
Software Configuration Guide, Revision 1.03
Status codes: * valid, U up, H host, G Gateway, L local, D default
Destination Nexthop Protocol Metric Flags Used
The route is added to the routing database with the default metric 0. The router will forward packets
to the 20.0.0 network via interface
wan
to the router on 172.17.100.2.
17.4 Deleting Static IP Routes
The
no
form of the
route
command deletes a static IP route from the routing table.
Procedure
To delete one or more static IP routes from the routing table
Mode
Administrator execution
Command Purpose
Step 1
node
(cfg)#context ip router
Enters the IP router context
Step 2
node
(ctx-ip)[router]#no route
network mask
{
address
|
interface
}
Deletes a static route
For the syntax description see Chapter 17.3, “Configuring Static IP Routes” above.
Example: Deleting a Static IP Route
In the following example, the route for packets to network 20.0.0.0/24, which are routed to device
with IP address 172.17.100.2, shall be deleted.
SN>
enable
SN#
configure
SN(cfg)#
context ip router
SN(ctx-ip)[router]#
no
route
20.0.0.0 255.255.255.0 172.17.100.2
17.5 Displaying IP Route Information
Procedure
To display static IP routes
Mode
Operator or administrator execution
Command Purpose
Step 1
node
>show ip route
Displays IP route information
This command displays the destination address, next-hop interface, protocol (local, static, rip, or
icmp), metric, flags (U up, H host, G Gateway, L local, D default), and amount of use for each route
in the routing table. If there are multiple routes to the same destination, the preferred route is
indicated by an asterisk (*).
Example: Displaying IP Route
In the following example, IP route information is displayed.
SN>
show ip route
Routes of IP context 'router':