Implementing Static Routes on Cisco IOS XR Software
How to Implement Static Routes on Cisco IOS XR Software
RC-425
Cisco IOS XR Routing Configuration Guide
OL-14356-01
Configuring a 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}
5. prefix mask [vrf vrf-name] {ip-address | interface-type interface-instance} [distance] [description
text] [tag tag] [permanent]
Step 4
address-family {ipv4 | ipv6} {unicast |
multicast}
Example:
RP/0/RP0/CPU0:router(config-static-vrf)# addres
s family ipv4 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)# 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
end
or
commit
Example:
RP/0/RP0/CPU0:router(config-static-vrf-afi)# en
d
or
RP/0/RP0/CPU0:router(config-static-vrf-afi)#
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