09-16-2023 09:44 AM
Hi,
I have met a strange behavior of AD routing on ASR9k router.
I have two same routes. The first route by config static route and has AD 1 by default and the second route is learned via iBGP with AD 200.
The first route will be active with a smaller AD, then I change the AD of the static route to 201. The result is static route remains active. It's not how AD is supposed to work.
If I delete the static route and add a new one with AD 201, the BGP route will be active.
Is it a mechanism or a bug?
09-16-2023 03:00 PM
Soon you have AD 201, the BGP should be active and work as expected
again as you mentioned this could be bug - what IOS XR version ? and what device model ?
09-16-2023 08:06 PM
The device is ASR9010 with OS XR 6.4.2
09-16-2023 04:22 PM - edited 09-16-2023 04:32 PM
When you configure a static route with an AD of 1 and then you configure another static route with an AD of 201 then both routes would be in the config and the router would use the static route with an AD of 1 still. It could be configuring the same static route does NOT override the original static route. It works when you delete the static route because you're removing the entry.
Can you test this. Configure 2 static routes with different AD's and then do a show run or show ip route static. They should both be in there. If you want to change the AD of a single static route you need to delete the original and add the one you want.
-David
09-16-2023 08:08 PM
I'm sure the 201 AD route replaced the 1 AD, confirmed with the command show route.
09-16-2023 05:02 PM - edited 09-16-2023 05:03 PM
Did u apply changes using Commit command?
Regards, ML
**Please Rate All Helpful Responses **
09-16-2023 08:09 PM
Yes, I confirmed by show route command and the new static route has AD 201
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