09-07-2016 12:35 AM - edited 03-05-2019 04:39 AM
Hi ,
My branch office is getting internet through Head office & connected through Lease line and ospf is running. one static route 0.0.0.0 id defiend towards HO.
Now one extra link is added with our wan for redundancy MPLS link & EBGP is running .
My question is how to configure ospf route(my internal network) to bgp & default route (for internet) for connectivity ?
Please help with examples .
Thank You
Solved! Go to Solution.
09-07-2016 02:54 AM
For internet you need default route. I am assuming you will get default route from MPLS as well so leased line will go down defualt route from MPLS BGp will get inject into LAN by this command which I was already added in your config.
router ospf xxx
default-information originate
!
Also if your are connecting Lased line and MPLS on same router then router will choose MPLS as Primary path as eBGP preferred then ospf . So you ave to change BGP routes AD so that ospf will get prefer than BGP. Use below config for Leased line as Primary and MLPS as secondary.
router bgp xxx
distance bgp 200 200 200
!
09-07-2016 12:56 AM
Could you please explain what exactly you would like to achieve.
do you want the wan link (Leased line and MPLS) as active standby. then which would be Primary you want?
09-07-2016 01:49 AM
Hi Sir,
My branch router connected with HO with lease line & OSPF is configured for wan & lan network.
i have added one more wan mpls link with bgp protocol . both link will run simultaneously if any link is goes down other should work .if i redistribute ospf to bgp then it may loop occurs in bgp link.
in bgp i want configure ospf route & internet traffics should allow over mpls bgp from branch router to HO access.
My branch router also getting inter from HO.
09-07-2016 02:09 AM
To avoid loop you should configured route-map allowing only LAN subnets of branch to redistribute in BGP.
Create prefix-list allowing all LAN subnets
ip prefix-list LAN-subnet seq 5 permit x.x.x.x
i
route-map OSPF-TO-BGP permit 10
match ip prefix-list LAN-subnet
!
router bgp xxxx.
redistribute ospf xxx route-map OSPF-TO-BGP
!
router ospf xxx
default-information originate
!
09-07-2016 02:39 AM
Hi Sir,
If my lease line ospf (old link) link will goes down then can my branch router will get internet through mpls bgp link
any command for internet needs add or not
Please check my attached previous post diagram
09-07-2016 02:54 AM
For internet you need default route. I am assuming you will get default route from MPLS as well so leased line will go down defualt route from MPLS BGp will get inject into LAN by this command which I was already added in your config.
router ospf xxx
default-information originate
!
Also if your are connecting Lased line and MPLS on same router then router will choose MPLS as Primary path as eBGP preferred then ospf . So you ave to change BGP routes AD so that ospf will get prefer than BGP. Use below config for Leased line as Primary and MLPS as secondary.
router bgp xxx
distance bgp 200 200 200
!
09-07-2016 05:09 AM
Hi sir,
My Ho router is connected with internet & my branch router is getting internet through HO router So in witch router ,i needs put that command "default-information originate" or in both router
09-07-2016 05:18 AM
Branch router
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide