Basic IP Routing Configuration
147
Software Configuration Guide Release 2.10, Revision 1.00
The
no
form of the
route
command deletes a static IP route from the routing table.
•
Configuring static IP routes
•
Deleting static IP routes
•
Displaying IP route information
17.3 Configuring Static IP Routes
Rather than dynamically selecting the best route to a destination, you can configure one or more
static routes to that destination. Once configured, a static route stays in the routing table indefinitely.
When multiple static routes are configured for a single destination and the outbound interface of the
current static route goes down, a backup route is activated thus improving network reliability. Each
route is assigned a default precedence value and cost value. Modifying these values allow you to set
a preference for one route over the next. If static routes are redistributed through dynamic routing
protocol to neighboring devices, only the active static route to a destination is advertised.
Procedure
To configure one or more static IP routes to the same destination
Mode
Administrator execution
Command
Purpose
Step 1
node
(cfg)#context ip router
Enters the IP router context
Step 2
node
(ctx-ip)[router]#route
network mask
{
address
|
interface
}
[
metric
]
Adds a static route
Where the syntax is:
network
The IP address of the target network or subnet.
mask
A network mask where the 1 bits indicate the network or subnet, and the 0 bits
indicate the host portion of the network address provided.
address
The IP address of a next-hop router that can access the target network or subnet.
interface
The name of the outgoing interface to use for the target network or subnet.
metric
This is an optional parameter. Specifies the desirability of the route when
compared against other routes. The range is 0 through 15, where 0 is the preferred
route. If no metric is specified, the static route is assumed to have a metric of 0.
Note
: to configure a default static IP route, use 0.0.0.0 for the network number and mask. A valid
next-hop address or interface is required.
Example: Adding a Static IP Route
In the following example, packets for network 20.0.0.0/24 will be routed to device at 172.17.100.2.
Ethernet port 0 1 has the address 172.17.100.1/24 and is bound to interface
wan
.
SN>
enable
SN#
configure
SN(cfg)#
context ip router
SN(ctx-ip)[router]#
route 20.0.0.0 255.255.255.0 172.17.100.2
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
Summary of Contents for SmartWare Release 2.10
Page 2: ...2 Legal Notice Software Configuration Guide Release 2 10 Revision 1 00...
Page 15: ...Terms and Definitions 15 Software Configuration Guide Release 2 10 Revision 1 00...
Page 218: ...218 PPP Configuration no shutdown Software Configuration Guide Release 2 10 Revision 1 00...
Page 272: ...272 Tone Configuration Software Configuration Guide Release 2 10 Revision 1 00...