
3.
route-policy route-policy name
if destination in prefix-set name then set spf-priority
{
critical
|
high
|
medium
}
endif
4.
Use one of these commands:
•
router ospf ospf-name
•
router ospfv3 ospfv3-name
5.
spf prefix-priority route-policy route-policy name
6.
commit
7.
show rpl route-policy route-policy name detail
DETAILED STEPS
Purpose
Command or Action
configure
Step 1
Configures the prefix set.
prefix-set prefix-set name
Example:
Step 2
RP/0/RP0/CPU0:router(config)#prefix-set
ospf-critical-prefixes
RP/0/RP0/CPU0:router(config-pfx)#66.0.0.0/16
RP/0/RP0/CPU0:router(config-pfx)#end-set
Configures route policy and sets OSPF SPF priority.
route-policy route-policy name
if destination in
prefix-set name then set spf-priority
{
critical
|
high
|
medium
}
endif
Step 3
Example:
RP/0/RP0/CPU0:router#route-policy ospf-spf-priority
RP/0/RP0/CPU0:router(config-rpl)#if destination in
ospf-critical-prefixes then
set spf-priority critical
endif
RP/0/RP0/CPU0:router(config-rpl)#end-policy
Enters Router OSPF configuration mode.
Use one of these commands:
Step 4
•
router ospf ospf-name
•
router ospfv3 ospfv3-name
Example:
RP/0/RP0/CPU0:router# router ospf 1
Or
RP/0/RP0/CPU0:router# router ospfv3 1
Configures SPF prefix-priority for the defined route policy.
spf prefix-priority route-policy route-policy name
Step 5
Example:
Configure the
spf prefix-priority
command
under router OSPF.
Note
Or
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
311
Implementing OSPF
Configuring OSPF SPF Prefix Prioritization