07-26-2021 03:04 AM
The customer is connected to an ISP through two links to provide redundancy through two provider routers.
To achieve primary and backup path requirement, the customer decides to use a default route on the primary path R2 and a FLOATING default route on the backup R3, then redistribute these default route into the IGP that the customer run within its network.
To ensure the return traffic will always go through the primary path, the Provider decides to use a static route toward the customer public address space 209.165.200.0/24 as shown in the topology and redistribute these static routes into BGP :
The static route on R5 has an AD 254, making the redistributed IBGP route toward 209.165.200.0/24 from R4 better, so that R5 will always send the return traffic to R4 through the primary path.
After throubleshooting, R4 detects a link failure of the prim path, R5 now decide to insert the static floating route in its routing table as expected.
A few hours after this failure, the primary path R1-R4 comes back, after verification you notice after the floating route is inserted, it is never removed from the routing table even if the primary link comes back which make this issue undesirable for customer.
How to explain this behabvior and how to fix it?
Solved! Go to Solution.
07-26-2021 09:29 AM
we need to reduce the weight 32768 of the locally sourced route on R5 to be equal to 0 because the IBGP route received from R4 does not have a weight value, and then set the local preference to be lower than the default local preference of the IBGP route received from R4.
07-26-2021 03:13 AM
Hello @Meddane ,
in BGP a locally generated route either via network command either via redistribute has weight 32,768.
So R5 BGP route has this weight and it is preferred to the iBGP route coming from R4.
solution:
under router bgp
neighbor <R4> weight 40000
Hope to help
Giuseppe
07-26-2021 09:29 AM
we need to reduce the weight 32768 of the locally sourced route on R5 to be equal to 0 because the IBGP route received from R4 does not have a weight value, and then set the local preference to be lower than the default local preference of the IBGP route received from R4.
07-26-2021 01:47 PM - edited 07-26-2021 01:51 PM
Hello @Meddane ,
your solution is not so different then mine. By the way I tested it 20 years ago and it works and it is simpler then yours.
Next time if you have already the answer for your question don't open a thread or provide your suggested solution in the first post.
Edit: multiple solutions are possible for the same problem, but the root cause is the default weight value of locally generated routes in BGP.
Hope to help
Giuseppe
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