cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
779
Views
5
Helpful
2
Replies

BGP OSPF distribution, route manipulation

wilson_1234_2
Level 3
Level 3

Say for example that the site "DR" in the drawing is logically divided into two sites A and B, A and B both have mutilple subnets.

If I wanted site A to prefer the ospf routes to "HQ" and site B to prefer the BGP routes to site "HQ", but A and B would use the available link if one were to fail,

What would the best way to have control of this scenario without causing a loop?

The distributed routes from BGP to OSPF will have either and E1 or E2 designation, while the OSPF routes in the same area will be preferred.

I don't know of a way to manipulate the intra area routes to prefer a distributed route, force an intra area route to be and E2 route for example.

I am thinking the options are the following, please someone let me know what could be wrong with my thinking:

1. Use prefix lenth and route maps on the distributed BGP routes into OSPF. Use longer mask to control which routes go where (across

2. Configure DR to be a different area than area 0, I am thinking this would allow me to control the O ( internal to each respective area), IA and E (distributed) routes.

3. Configure DR as EIGRP, which would allow control of the routes distributed from EIGRP into OSPF, the problem with this is that I am ditributing BGP into EIGRP into OSPF, which seems like a convoluted way to do things.

Any opinion would be appreicated.

2 Replies 2

Laurent Aubert
Cisco Employee
Cisco Employee

Hi,

If site A and B can use a different router to join HQ then on each router playing with the AD should be enough. If they are using the same router, you will have to use PBR or VRF (more complicated as it impact your design globaly).

HTH

Laurent.

Site a and Site b will be on a 4507 switch configured with OSPF.

Review Cisco Networking products for a $25 gift card