DETAILED STEPS
PurposeCommand or Action
configure
Step 1
Configures the prefix set.
prefix-set prefix-set name
Example:
RP/0/RSP0/CPU0:router(config)#prefix-set ospf-critical-prefixes
Step 2
RP/0/RSP0/CPU0:router(config-pfx)#66.0.0.0/16
RP/0/RSP0/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
Example:
RP/0/RSP0/CPU0:router#route-policy ospf-spf-priority
Step 3
RP/0/RSP0/CPU0:router(config-rpl)#if destination in
ospf-critical-prefixes then
set spf-priority critical
endif
RP/0/RSP0/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/RSP0/CPU0:router# router ospf 1
Or
RP/0/RSP0/CPU0:router# router ospfv3 1
Configures SPF prefix-priority for the
defined route policy.
spf prefix-priority route-policy route-policy name
Example:
Step 5
Configure the spf
prefix-priority command
under router OSPF.
Note
Or
RP/0/RSP0/CPU0:router(config-ospfv3)#spf prefix-priority
route-policy ospf3-spf-priority
commit
Step 6
Displays the set SPF prefix priority.
show rpl route-policy route-policy name detail
Example:
RP/0/RSP0/CPU0:router#show rpl route-policy ospf-spf-priority
Step 7
detail
prefix-set ospf-critical-prefixes
66.0.0.0/16
end-set
!
route-policy ospf-spf-priority
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.3.x
471
Implementing OSPF
Configuring OSPF SPF Prefix Prioritization