OSPFv2
OSPFv3
This example shows how to configure /32 prefixes as medium-priority, in general, in addition to
placing some /32 and /24 prefixes in critical-priority and high-priority queues:
prefix-set ospf-critical-prefixes
192.41.5.41/32,
11.1.3.0/24,
192.168.0.44/32
end-set
!
prefix-set ospf-high-prefixes
44.4.10.0/24,
192.41.4.41/32,
41.4.41.41/32
end-set
!
prefix-set ospf-medium-prefixes
0.0.0.0/0 ge 32
end-set
!
route-policy ospf-priority
if destination in ospf-high-prefixes then
set spf-priority high
else
if destination in ospf-critical-prefixes then
set spf-priority critical
else
if destination in ospf-medium-prefixes then
set spf-priority medium
endif
endif
endif
end-policy
router ospf 1
spf prefix-priority route-policy ospf-priority
area 0
interface TenGigE 0/3/0/0
!
!
area 3
interface TenGigE 0/2/0/0
!
!
area 8
interface TenGigE 0/2/0/0
router ospfv3 1
spf prefix-priority route-policy ospf-priority
area 0
interface TenGigE 0/3/0/0
!
!
area 3
interface TenGigE 0/2/0/0
!
Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.3.x
87
Implementing OSPF
Configure OSPFv2 OSPF SPF Prefix Prioritization