07-28-2023 08:35 AM - last edited on 08-01-2023 03:40 AM by Translator
Hey guys,
So in our network, we have 2 BGP routers connected to 2 ISPs, say R1 connected to ISP1 and R2 connected to ISP2. Now, we have enabled redundancy using HSRP, and when we check available paths to any external Ip from R1 using
sh ip bgp 8.8.8.8
it shows only one available path while when I check from R2 using same command, it shows 2 available paths. What can be the reason that R1 is learning only one path?
We are trying to optimize bandwidths as ISP1 has bandwidth of 1Gbps and ISP2 has bandwidth of 100Mbps, we want to use ISP1 primarily and ISP2 as failover.
Sorry I am not an expert but your insights will be highly valuable.
Solved! Go to Solution.
07-28-2023 08:43 AM
That normal'
Two edge routers there is ibgp between' so one have ebgp as best path other have ebgp and ibgp and I think it select ibgp as best path.
That normal.
MHM
07-28-2023 08:58 AM
It does but bgp is so slow protocol' you can add bfd to your ibgp and the failover will faster.
07-28-2023 08:43 AM
That normal'
Two edge routers there is ibgp between' so one have ebgp as best path other have ebgp and ibgp and I think it select ibgp as best path.
That normal.
MHM
07-28-2023 08:56 AM - last edited on 08-01-2023 03:41 AM by Translator
and can you also suggest what i can do to configure failover properly, as when our primary link fails, router doesnt failovers to secondary link automatically.
bgp always-compare-med
no bgp enforce-first-as
bgp log-neighbor-changes
bgp deterministic-med
bgp graceful-restart
bgp bestpath as-path multipath-relax
neighbor x.x.x.x ebgp-multihop 2
bgp additional-paths install
ip bgp-community new-format
This is part of my bgp config on R1
07-28-2023 08:58 AM
It does but bgp is so slow protocol' you can add bfd to your ibgp and the failover will faster.
07-28-2023 09:09 AM
Thank you so much
07-28-2023 10:34 AM
Could you clarify how you're using HSRP and BGP together?
Both your BGP routers are taking full Internet route tables from their respective ISPs and they also exchanges these, between themselves, using iBGP?
While waiting for answers to the forgoing, Cisco's BGP, by default, will use only one path, but when you have eBGP and iBGP, and two eBGP paths appear equal, the eBGP path will be taken vs. the iBGP path.
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