5. prefix mask [vrf vrf-name ] { ip-address | interface-type interface-instance } [ distance ] [ description
text ] [ tag tag ] [ permanent ]
6. commit
DETAILED STEPS
Step 1 configure
Step 2 router static
Example:
RP/0/RP0/CPU0:router(config)# router static
Enters static route configuration mode.
Step 3 vrf vrf-name
Example:
RP/0/RP0/CPU0:router(config-static)# vrf vrf_A
(Optional) Enters VRF configuration mode.
If a VRF is not specified, the static route is configured under the default VRF.
Step 4 address-family { ipv4 | ipv6 } { unicast | multicast }
Example:
RP/0/RP0/CPU0:router(config-static-vrf)# address family ipv6 unicast
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)# 2001:0DB8::/32 2001:0DB8:3000::1 201
Configures an administrative distance of 201.
Step 6 commit
A floating static route is often used to provide a backup path if connectivity fails. In the following
example, a route is configured with an administrative distance of 201.
configure
router static
address-family ipv6 unicast
2001:0DB8::/32 2001:0DB8:3000::1 201
end
Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.3.x
194
Implementing Static Routes
Configure Floating Static Route