Filtering Example

Unanswered Question
Jul 29th, 2009

Looking for Filtering Example when redistributing BGP into OSPF and OSPF into BGP.

Wanna Filter networks going in and out

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
milan.kulik Thu, 07/30/2009 - 00:40

Hi,

what I'm using is tagging the routes when redistributed:

router ospf yyy

redistribute bgp xxx metric 20 subnets route-map to-ospf

route-map to-ospf permit 10

match as-path rrr

set tag zzzz

Then on the router on the other side of OSPF cloud:

router bgp xxx

redistribute ospf yyy match external 2 route-map to-bgp

route-map to-bgp permit 10

match tag zzzz

set local-preference 50

Match and set commands might be more complicated, of course.

BR,

Milan

saquib.nawazz Thu, 07/30/2009 - 02:23

This would be helpful.

I need to understand more in details.

Can you assist with cisco example link or post your full configuration.

milan.kulik Thu, 07/30/2009 - 02:55

Hi,

some useful links:

http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a008047915d.shtml

http://www.cisco.com/en/US/docs/ios/iproute/configuration/guide/irp_ip_prot_indep_ps6441_TSD_Products_Configuration_Guide_Chapter.html#wp1057261

There is also a very useful Chapter 10 of the latest CCIE Preparation Guide explaining how redistribution filtering works.

I'm afraid my config would not help you too much as it was designed for a very specific purpose and it would require a long explanantion document (I still owe it to my colleagues as it took me several months to develop the config to fulfill all the requests).

BR,

Milan

Actions

This Discussion