Implementing Static Routes
Enters address family mode.
Step 5
prefix mask [vrf vrf-name ] { ip-address | interface-type interface-instance } [ distance ] [ description text ] [ tag
tag ] [ permanent ]
Example:
RP/0/RP0/CPU0:router(config-static-vrf-afi)# 10.0.0.0/8 172.20.16.6 110
Configures an administrative distance of 110.
• This example shows how to route packets for network 10.0.0.0 through to a next hop at 172.20.16.6 if dynamic
information with administrative distance less than 110 is not available.
Step 6
commit
A default static route is often used in simple router topologies. In the following example, a route is
configured with an administrative distance of 110.
configure
router static
Floating Static Routes
Floating static routes are static routes that are used to back up dynamic routes learned through configured
routing protocols. A floating static route is configured with a higher administrative distance than the dynamic
routing protocol it is backing up. As a result, the dynamic route learned through the routing protocol is always
preferred to the floating static route. If the dynamic route learned through the routing protocol is lost, the
floating static route is used in its place.
Note
By default, static routes have smaller administrative distances than dynamic routes, so static routes are preferred
to dynamic routes.
Configure Floating Static Route
This task explains how to configure a floating static route.
SUMMARY STEPS
1. configure
2. router static
3. vrf vrf-name
4. address-family { ipv4 | ipv6 } { unicast | multicast }
address-family ipv4 unicast
0.0.0.0/0 2.6.0.1 110
end
Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.3.x
Floating Static Routes
193