cli: ip ospf priority exists, and the DR election reads it #2291
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!2291
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1120-0942"
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 decides DR/BDR on a multiaccess segment, and what does a box print when a port may not stand? The
Pricolumn ofshow ip ospf neighborwas a constant1and the role beside it was decided by router ID alone, becauseip ospf prioritydid not exist (docs/plans/ospf-elections.md).Evidence
ip ospf priority- range 0-255, default 1, higher priority wins, ties fall to the higher router ID, and "A router with a router priority set to zero is ineligible to become the designated router or backup designated router."https://cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/command/iro-cr-book.pdf
https://www.rfc-editor.org/rfc/rfc2328.html#section-9.4
What changed
ip ospf priority <0-255>in interface mode (norestores 1), stored per interface, printed inshow running-config, and read back as a newPricolumn inshow ip ospf interface.computeOspf()puts the value in the per-interface record, elects DR by priority then router ID, and the neighbour record now carries the peer's own priority, soPriandStatecome from one source.FULL/DR, since a DROTHER synchronises with the DR. On serial (point-to-point) the line is stored andFULL/ -is unchanged, as IOS accepts it there and no election runs.2WAY/DROTHERand carries no route. This model has no two-way state, so the link is refused and the console prints the reason plus RFC 2328 9.4 instead of aFULLthat cannot exist.test/ospf-priority.test.js(38 checks) plus the 0-255 probe set intest/stated-range-is-the-enforced-range.test.js; docs, plan status and the two research notes updated.Tests
node scripts/syntax-check.jsOK; fullnpm test: 409 suites, 13586 assertions, 0 failed (baseline 408 / 13542).Unresolved
A third speaker on one segment (true
DROTHER/2WAYrows), DR stickiness/boot order, andip ospf networkremain unmodelled - the two-way row is documented inresearch/show-ospf-neighbor-state.md.ip ospf priorityexists, and the DR election reads it