
RP/0/RP0/CPU0:router(config)#
router static
RP/0/RP0/CPU0:router(config-static)#
address-family ipv6 unicast
RP/0/RP0/CPU0:router(config-static-afi)#
2001:0DB8::/32 Gigethernet0/0/0/0 2001:0DB8:3000::1
A fully specified route is valid (that is, a candidate for insertion into the routing table) when the specified
interface, IPv4 or IPv6, is enabled and up.
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. The following example shows how to define a floating static route:
RP/0/RP0/CPU0:router(config)#
router static
RP/0/RP0/CPU0:router(config-static)#
address-family ipv6 unicast
RP/0/RP0/CPU0:router(config-static-afi)#
2001:0DB8::/32 2001:0DB8:3000::1 210
Any of the three types of static routes can be used as a floating static route. A floating static route must be
configured with an administrative distance that is greater than the administrative distance of the dynamic
routing protocol because routes with smaller administrative distances are preferred.
By default, static routes have smaller administrative distances than dynamic routes, so static routes are preferred
to dynamic routes.
Note
Configuration Examples
This section provides the following configuration examples:
Configuring Traffic Discard: Example
Configuring a static route to point at interface null 0 may be used for discarding traffic to a particular prefix.
For example, if it is required to discard all traffic to prefix 2001:0DB8:42:1/64, the following static route
would be defined:
configure
router static
address-family ipv6 unicast
2001:0DB8:42:1::/64 null 0
end
Configuring a Fixed Default Route: Example
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.
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
470
Implementing Static Routes
Floating Static Routes