01-09-2020 08:40 PM
Hi, Hope you can give me some feedback
I want to redistribute BGP to OSPF as the image shows
I have 2 links, the primary link is carrying only internet traffic, the secondary internet link is empty
I want to inject only BGP prefixes to the secondary internet link (Which is empty) to avoid saturation
How to can do that? from the redistribution command?
both sides? consideration?
any help is much appreciated,
01-10-2020 07:55 AM
Does R5 and R6 have a BGP peer to each other or is it OSPF only? Is R4 your router or is it the ISP router? Do you only have 1 router peering with your ISP?
01-10-2020 08:56 AM
thanks,
yes, there is iBGP between R5 and R6 likewise R1 and R2, however there is a OSPF process running already, but the existing OSPF process is for internet traffic only between the sites,
Sorry for the diagram, yes, both R5 and R6 have a peering with R4 likewise R1 and R2 have ebgp peering with R3
there is also a OSPF process running between R1 and R2 as well as R5 and R6 for redundancy
I would like to know how to inject the bgp routes to the VC that is not being used, so it can use the alternate path via OSPF instead, but currently the primary for Internet is the best path installed in OSPF
essentially, I want to put the bgp traffic to the other leg being emtpy leaving the internet traffic alone in the other circuit,
please your help
01-10-2020 09:50 AM - edited 01-10-2020 09:52 AM
Essentially you would want to use route-maps and Local Preference to split up your prefixes that you are receiving from your ISP.
For example, say you receive 4 prefixes from R3:
20.0.0.0/24
30.0.0.0/24
40.0.0.0/24
50.0.0.0/24
On R2, you would configure:
ip prefix-list prefer-R2 permit 20.0.0.0/24
ip prefix-list prefer-R2 permit 30.0.0.0/24
!
route-map PREFER-R2
match ip prefix-list prefer-R2
set local-preference 200
Then attach the route-map to the R3 neighbor
On R1, you would configure:
ip prefix-list prefer-R1 permit 40.0.0.0/24
ip prefix-list prefer-R1 permit 50.0.0.0/24
!
route-map PREFER-R1
match ip prefix-list prefer-R1
set local-preference 200
Then attach the route-map to the R3 neighbor
This is a very manual way to help bring some traffic onto other links
01-10-2020 11:46 AM
01-10-2020 11:51 AM
01-10-2020 12:42 PM
If it was me, I would move the connection that is between the edge routers to the opposing router instead , so R1 would connect to R5 and R6, and R2 would connect to R5 and R6.
Then you would use OSPF ecmp to you can do full load balancing in OSPF. Then it will also load balance across BGP. You can then use BGP communities with you ISP if you want to influence any routes coming back from them to prefer R1 or R2.
01-11-2020 03:30 PM
01-15-2020 09:11 AM
01-16-2020 06:06 AM
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