Configuring Static Routes
This router can dynamically configure routes to other network segments using
dynamic routing protocols (i.e., RIP or OSPF). However, you can also manually
enter static routes in the routing table. Static routes may be required to access
network segments where dynamic routing is not supported, or can be set t o for ce the
use of a specific route to a subnet, rather than using dynamic routing. Static routes
do not automatically change in response to changes in network topolog y, so you
should only configure a small number of stable routes to ensure network
accessibility.
Command Usage
Up to 64 static routes can be configured.
If a static route is defined, it will always take pre ferenc e over a d ynamic rou te.
Static routes are included in RIP and OSPF updates periodically sent by the router
if this feature is enabled by the RIP or OSPF (see page 20-9 or 20 -35,
respectively).
Command Attributes
Interface – Index number of the IP interface.
IP Address – IP addres s of the des tinatio n network , subnetw ork, or host.
Netmas k – Network mask for the associated IP subnet. This mas k identifi es the
host address bits used for routing to specific subnets.
Gateway – IP address of t he next router h op used for this ro ute.
Metric – Cost for this interf ace. (Ra nge: 1-5 , Defa ult: 1)
The metric is an administrative distance, and indicates that this route can be
overridden by dynamic routing information if the distance of the dynamic r oute is
less than that configured for the static route. Note that the def ault admi nistrativ e
distances used by the dynamic unicast routing prot ocols i s 110 for O SP F and 120
for RIP.
Entry Count – The number of table entries.

19-21

Configuring Static Routes

19