New User
Posts: 1
Registered: ‎12-01-2010

multihome bgp with ospf


we have 2 border routers that run ospf towards the internal network, CE1 & 2. The border routers also have a single EBGP link each to a PE router, PE1 & 2, so the network is multi-homed to a single provider. Both PEs are within the same AS. I've set the BGP pref/med with policy so that there is deterministic routing through CE1-PE1 as preferred and a default route is passed from the SP.
For IGP integration I was initially going to export a conditional BGP default into OSPF at each CE based on whether it was passed via local EBGP peer and was going to set the OSPF metric for external route preferencing within OSPF so that the default route via CE1 would be preferred. This resulted in non-deterministic installation of the conditional default at one or other of the CEs.
What's the best way to route traffic through CE1-PE1 under normal conditions and sync OSPF routing with BGP so the inbound and outbound routing is synced across IGP/BGP.


Recognized Expert
Posts: 315
Registered: ‎11-01-2010

Re: multihome bgp with ospf

Have you tried injecting a 0/0 OSPF LSA Type 5 E1 routes from your CE1/CE2 with CE2 being slightly higher in OSPF link cost?

Doug Hanks

Follow me on Twitter @douglashanksjr
Copyright© 1999-2015 Juniper Networks, Inc. All rights reserved.