show ip route: the candidate-default asterisk belongs to the prefix, not to one row #1737
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!1737
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1116-2130"
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?
Question. What does the asterisk in
show ip routemark - the installed default, the route that lost to it, or every route to0.0.0.0/0?Verdict. It marks a candidate default and belongs to the prefix. Cisco doc 16448 prints a typed
ip route 0.0.0.0 0.0.0.0 10.108.99.2asS* 0.0.0.0/0 [1/0] via 10.108.99.2, and the same page prints two starred candidates in one table (S* 0.0.0.0/0andS* 192.168.1.0/24). Learned defaults carry it too (D*EX 0.0.0.0/0,O*E2 0.0.0.0/0).PacketForge had it inverted: the star sat on the invented distance-254 gateway row, while a typed static default printed as a plain
S.Changed
engine/device.js:row.candidateDefaultderived from0.0.0.0/0;displayCode = code + "*"for those rows. Both defaults keep their distance ([1/0]vs[254/0]), which is what separates two routes.engine/cli.js: legend now ends, * - candidate default- the table had printedS*since #1407 while defining only C, S, O and B.test/route-candidate-default.test.js(21 checks);show-ip-route,routes-agreement,show-ip-route-host-table,ospf-route-metricupdated where they pinned the old inversion.research/show-ip-route-candidate-default.mdrecords the sources and what stays open (the invented badge row;ip default-network; unmodelledE2/EXsuffixes).docs/CLI.mdstates the rule.Gates. syntax-check 364 files OK; full
npm test293 suites / 10398 assertions / 0 failed.452090cf8577615f58e7