07-13-2023 12:26 AM
Hi All,
Please help to get solution for below query :
We have our own Public IP pool of /24 subnet and ASN. 02 Routers connected with 02 Different Internet Service Providers and both the routers are connnected with iBGP also at LAN side. Eg :
Router-1 ---> Connected with ISP-1 (running eBGP)
Router-2 ----> Connected with ISP-2 (running eBGP)
Requirement : Routes learned from ISP-1 on Router-1 should not be learned via ISP-2 via Router-2
Rgds
***
07-13-2023 12:36 AM
Hi @netbeginner
You may not prevent R2 from learn the routes but you can work with local preference and make ISP-1 the preferred path by assigning higher preference.
07-13-2023 12:41 AM
Should not or prefer prefix ?
this can help us in solve issue
07-13-2023 02:00 AM
Access the configuration settings of Router-2, where you can modify the BGP settings.
Create an access list on Router-2 to match the routes learned from ISP-1 that you want to filter. This access list should specify the specific routes you want to prevent from being learned via ISP-2.
Define a route map on Router-2 that references the access list created in the previous step. The route map will be used to match the routes and apply a specific action.
Within the route map, set the action for the matched routes to "deny." This action ensures that the routes will not be accepted or advertised to other BGP peers.
Apply the route map to the BGP configuration on Router-2, specifically for the BGP neighbor session with Router-1. By doing this, the filtering will only affect routes learned from ISP-1.
Save the configuration changes on Router-2.
07-13-2023 03:52 AM - edited 07-13-2023 05:51 AM
As both @Flavio Miranda and @MHM Cisco World likely have in mind, the usual approach would be to prefer ISP-1 learned routes.
An advantage of what you propose would be saving RAM, on both your routers, as routes known via ISP-1, I believe, would be excluded from ISP-2. However, if so, consider what happens if connectivity to ISP-1 drops. You need to wait for ISP-2 routes to load (unless, perhaps, you have a static default route pointing to ISP-2).
07-13-2023 04:23 AM - edited 07-13-2023 04:23 AM
Hello @netbeginner,
please more elaborate :Requirement : "Routes learned from ISP-1 on Router-1 should not be learned via ISP-2 via Router-2"
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