route manipulation in redistribution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
- Labels:
-
Routing Protocols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2020 11:46 AM
well actually, I have it like that, for eBGP prefixes received, I left R1 as primary and R2 as secondary with local preference, in fact, thats the way it is now,
however, what I want to achieve is that once prefixes coming from eBGP and are being redistributed to OSPF, once all internet traffic and BGP traffic are in OSPF, how can I just send the BGP traffic to use the secondary VC instead of using the primary where the internet traffic is passing?
sorry if I dont understand your full picture :( I just dont know how to inject the bgp into ospf only to use the secondary VC so each site can reach each other but only using the secondary VC and not using the primary
any ideas? or is it the same process you are describing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2020 11:51 AM
and in the VC721 would be passing internet traffic, not mixing up in other words,
this scenario is like for a failover purpose that in the case of R3 goes down, BGP traffic should pass via the other VC without not touching cost in the primary VC because thats the way it should be, like load balance the traffic
hope that it helps, but I really appreciate your time, please tell me any more ideas,
thanks so much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2020 03:30 PM
I just want to know how to inject only coming bgp traffic to the other VC and leave the primary as it is (np BGP traffic)
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2020 09:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2020 06:06 AM
yeah, I know its a bit weird the set up, as much as I tried to play with cost/metrics, I could not make it work,
and I was thinking about a distribute list but as Cisco says its not a best practice
I will deep dive a bit more
thank you so much
