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

BGP routes redistribution into OSPF

Folks,

My question in on BGP to OSPF redistribution.

 

I have 2 routers each terminating an MPLS link. In our case we want to prioritize on MPLS link always. Please refer to the diagram I have attached in this question.

 

Each router i.e. Primary router and the Secondary router receive the same set of routes. In this case I want to make sure that the routes and the link over the Primary router will always be preferred.

 

i.e. the Active firewall will always refer the path directly connected to the Primary router.

 

I believe this is inherent when BGP redistributed routes back to OSPF. Can someone help me confirm this fact.

 

Both the routers are Cisco ISR 4451 and the firewalls are Palo Alto.

 

Regards,

N.

1 Accepted Solution

Accepted Solutions

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @network_geek1979 ,

primary router should use a smaller seed metric for redsitributed routes into OSPF

 

route-map BGP-into-OSPF permit 10

match address ExpectedRoutes

set metric 50

set metric type 1

 

router ospf 10

redistribute bgp <your-BGP-AS> subnets

 

on secondaryx router

route-map BGP-into-OSPF permit 10

match address ExpectedRoutes

set metric 150

set metric type 1

 

router ospf 10

redistribute bgp <your-BGP-AS> subnets

 

Hope to help

Giuseppe

 

View solution in original post

2 Replies 2

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @network_geek1979 ,

primary router should use a smaller seed metric for redsitributed routes into OSPF

 

route-map BGP-into-OSPF permit 10

match address ExpectedRoutes

set metric 50

set metric type 1

 

router ospf 10

redistribute bgp <your-BGP-AS> subnets

 

on secondaryx router

route-map BGP-into-OSPF permit 10

match address ExpectedRoutes

set metric 150

set metric type 1

 

router ospf 10

redistribute bgp <your-BGP-AS> subnets

 

Hope to help

Giuseppe

 

I Don't Know about Palo but for ASA the outside must be connect to SW and the SW connect to both edge router.
for host INSIDE config the active as Default GW and for return traffic I need more info.

Review Cisco Networking for a $25 gift card