show ip route lists two routes for one prefix and says nothing: a shadowed route reads as installed #1407
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1407
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by asking whether a report's own summary matches the table under it. Two surfaces failed the same way.
show ip routeprinted every candidate the device held, as equals:Two rows, one destination.
routeTo()— the lookup that actually forwards — has always chosen by longest prefix thenlowest distance, so the engine knew which route was installed; the table did not say it. The same shape covers
static-over-connected, OSPF-over-BGP and BGP-over-OSPF, all reachable in a two-router lab.
And
show ip bgp summarysaid "3 prefix(es) installed from BGP" when only 1 was installed, because it counted what thepeer sent rather than what survived selection — the word "installed" over a count of "received".
What must be true instead
show ip bgp summarycounts installed prefixes and accounts for the rest.