OSPF route-policy

  • 0
  • 1
  • Question
  • Updated 5 years ago
Create Date: Sep 13 2013 8:50AM

With RIP I can define a policy, which prevents receiving some routes. The command is configure rip vlan all route-policy in <policy>.
How can I do it with OSPF?


(from Hans-Werner_Paulsen )
Photo of EtherNation User

EtherNation User, Employee

  • 20,340 Points 20k badge 2x thumb

Posted 5 years ago

  • 0
  • 1
Photo of EtherNation User

EtherNation User, Employee

  • 20,340 Points 20k badge 2x thumb
Create Date: Sep 18 2013 11:10AM

Use below commands 

configure ospf area 0.0.0.1 external-filter <policy_name>

configure ospf area 0.0.0.1 interarea-filter <Policy_name>

(from sumittokle)
Photo of EtherNation User

EtherNation User, Employee

  • 20,340 Points 20k badge 2x thumb
Create Date: Sep 19 2013 7:20AM

Thank you for the hint. But, these commands do not work for me (XOS 15.2.2.7). Applying the policy (both external-filter and interarea-filter)
entry deny {
if match any {
    nlri 130.183.87.192/26 ;
}
then {
    deny  ;
}
}
entry permit {
if match all {
}
then {
    permit  ;
}
}

does not prevent adding the route
#o1  130.183.87.192/26  192.168.5.6     7    UG-D---um--f- Net-5      0d:15h:37m:13s
to the routing table.

(from Hans-Werner_Paulsen)
Photo of EtherNation User

EtherNation User, Employee

  • 20,340 Points 20k badge 2x thumb
Create Date: Sep 20 2013 5:06PM

This seems to be a bug. I already had similar problem with ospf filtering. In my case I solved using RIP for those specific area vlans that I didn't want to import some static routes.

(from Luis_Coelho)

This conversation is no longer open for comments or replies.