cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
612
Views
0
Helpful
0
Replies

OSPF default route filtering with RPL

Hi!

 

I'm trying to filter out the default router received by a neighbour. I know the root cause and I'll fix it ASAP but now I need to filter it out and I thought I'd use RPL to try something new since I'm configuring a new ASR 9001.

 

That's the 'prefix-set'/RPL section:

 

 

prefix-set PS_DEFAULT
  0.0.0.0/0
end-set
!
prefix-set PS_ALL-ROUTES
  0.0.0.0/0 le 32
end-set
!
route-policy RP_DENY-DEFAULT
  if destination in PS_DEFAULT then
    drop
  endif
  if destination in PS_ALL-ROUTES then
    pass
  endif
end-policy

And that's the relevant OSPF section:

 

 

router ospf <removed
 log adjacency changes
 area 0
  route-policy RP_DENY-DEFAULT in
  interface TenGigExxx

But the default is still there:

 

RP/0/RSP0/CPU0:router#sh route
Tue Oct 23 18:00:02.909 Rome

Codes: C - connected, S - static, R - RIP, B - BGP, (>) - Diversion path
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
       U - per-user static route, o - ODR, L - local, G  - DAGR, l - LISP
       A - access/subscriber, a - Application route
       M - mobile route, r - RPL, (!) - FRR Backup path

Gateway of last resort is x.x.x.x to network x.x.x.x

O*E1 0.0.0.0/0 [110/502] via x.x.x.x, 01:07:27, TenGigExxx

 

I'm running Cisco IOS XR Software, Version 6.2.3[Default]

 

Can you point out some advice? Thanks!

0 REPLIES 0