Specifications
Implementing Static Routes on Cisco IOS XR Software
How to Implement Static Routes on Cisco IOS XR Software
RC-414
Cisco IOS XR Routing Configuration Guide
Associating a VRF with a Static Route
This task explains how to associate a VRF with a static route.
SUMMARY STEPS
1. configure
2. router static 
3. vrf vrf-name 
4. address-family {ipv4 | ipv6} {unicast | multicast} 
5. prefix mask [vrf vrf-name] {ip-address | interface-type interface-instance} [distance] [description 
text] [tag tag] [permanent] 
6. end
or
commit
Step 3
maximum path {ipv4 | ipv6} 
value
Example:
RP/0/RP0/CPU0:router(config-static)# maximum 
path ipv4 10000
Changes the maximum number of allowable static routes.
• Specify IPv4 or IPv6 address prefixes. 
• Specify the maximum number of static routes for the 
given address family. The range is from 1 to 140000. 
• This example sets the maximum number of static IPv4 
routes to 10000.
Step 4
end
or
commit
Example:
RP/0/RP0/CPU0:router(config-static)# end
or
RP/0/RP0/CPU0:router(config-static)# commit
Saves configuration changes.
• When you issue the end command, the system prompts 
you to commit changes:
Uncommitted changes found, commit them before 
exiting(yes/no/cancel)?
[cancel]:
–
Entering yes saves configuration changes to the 
running configuration file, exits the configuration 
session, and returns the router to EXEC mode.
–
Entering no exits the configuration session and 
returns the router to EXEC mode without 
committing the configuration changes.
–
Entering cancel leaves the router in the current 
configuration session without exiting or 
committing the configuration changes.
• Use the commit command to save the configuration 
changes to the running configuration file and remain 
within the configuration session.
Command or Action Purpose










