02-02-2024 10:03 AM
Hello guys.
I have more experience in switching than in routing, so, I have some doubts regarding BGP manipulation.
In the image attached, there is a diagram for any reference.
What I basically want to know, is if there is a way to force that all Internet traffic that wants to reach the public subnet we are going to distribute in BGP to both ISPs, can enter only by the first ISP (By Router R1).
So lets say that currently, to HSRP all outband traffic goes to R1 and use ISP 1. But what about the reply traffic? If it enters by ISP 2 may lead to asymetric traficc maybe? But even if it doesnt generate conflicts. How can we ensure that traffic always enters by ISP 1, and use ISP 2 only as a backup / redundancy
02-02-2024 10:10 AM
Hi @Fernando Hernández ,
Asymetric traffic would not be an issue in this scenario, but if you want to make sure that traffic returns via ISP1, you can use BGP conditional advertisement to advertised your public subnet through ISP2 only if there is an ISP1 failure.
Please refer to the following document for more information on this feature.
https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/16137-cond-adv.html
Regards,
02-02-2024 02:10 PM
I read the document, and seems to be a good use to solve the scenario. Cause have read other options are usually not really ideal or useful
02-02-2024 03:59 PM
@Harold Ritter recommendation is probably the best. You really cannot guarantee what ISPs may do regarding how the choose to route to your network allowed a CHOICE. What Harold suggest eliminates the ISPs having a choice.
02-02-2024 12:11 PM
If we talking about the same prefixes advertised through both ISPs, is just a matter of having an iBGP between your two routers, to make sure that you traverse the preferred ISP based on your LOCAL_PREF. and to make sure that traffic returns via the same ISP, you do AS-path prepend (2x your ASN) against your ISP2.
02-02-2024 01:42 PM
Hi @Ruben Cocheno ,
Bear in mind that using AS Path prepending might not be ideal in some scenarios, as some service provider will set local preference higher on their customer routes than on their peering and transit routes. This will cause them to prefer the customer routes over any other routes even though they have a longer AS path.
The best way to make sure that all ingress traffic comes through the primary provider under normal conditions is to only advertise to the secondary provider if there is a failure with the primary provider. This is what BGP conditional advertisement is all about.
Regards,
02-24-2024 03:40 PM - edited 02-24-2024 03:47 PM
Traffic manipulation inside Provider Networks is a dark box in general, and better have it advertise even "manipulated" as your backup plan as you can validate/monitor through ThousandEyes or other Looking Glass tooling, otherwise with BGP conditional advertisement you can only validate when you need it without mentioning the propagation time required (depending of ISP Tier).
If you can have downtime (?) during the transition (advertise+convergence) and want to use the ISP1 without any doubt then i agree with you that BGP conditional advertisement is likely to be the best option with the caveats mentioned before.
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