cli(ipv6): a link-local address is not a global one, and the box refuses it #2406
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!2406
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1121-1013"
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 an IOS-like box do with
ipv6 address fe80::1/64- a link-local address handed to the global form of the command?Evidence.
ipv6 address FE80::1/64->% Link local requires link-local keyword;ipv6 address 2001::2 link-local->% Invalid link-local address; its running-config keepsipv6 address FE80::1 link-local(no prefix length).ipv6 address fe80::1234/16refused, component response quoting the same sentence.ipv6-i1.html): the global form andipv6 address ... link-localare separate grammar; a link-local must be configured with thelink-localcommand.fe80::/10); PacketLife and Cisco Community td-p/854688 for the reverse rule.Verdict. The box refuses it. This console stored
fe80::1/64as the interface's global address and advertisedfe80::/64in its router advertisements with A=1 - a SLAAC promise no box makes.Changed.
engine/cli.js_ipv6Iface(): fe80::/10 in the global form ->% Link local requires link-local keywordplus one console line naming the MAC-derived link-local;link-localwith a global address ->% Invalid link-local address; the keyword form with a link-local -> the console line only (this model keeps no manual link-local). Nothing is stored in any case.engine/ra.js:addressPrefixes()skips a link-local prefix (guards boards saved before the door). Newtest/ipv6-address-link-local.test.js(41 assertions);docs/CLI.mdIPv6 section updated; newresearch/ipv6-address-link-local-refusal.md.Tests.
npm test: 445 suites, 15,024 assertions, 0 failed.node scripts/syntax-check.js: all files OK.Unresolved. Whether the box also prints the caret line, and where the caret sits (the SD-WAN page shows both renderings); the caret for a prefix length after the keyword; a trailing non-keyword word is still ignored; modelling a manual link-local is a feature, not this fix; the rule implemented is the IOS one (Juniper accepts a link-local in the ordinary address statement).