cli: a mask that is not a run of ones is refused in the box's own hex line #2189
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!2189
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1119-1742"
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?
What a mask that is not a run of ones gets
ip address 10.9.9.9 255.0.255.0answeredA sentence no IOS prints: it carries the
%marker itsBad mask /Nsiblings do not, spells the mask in thedecimal form the box does not use in this line, and explains a rule the box does not explain. A real box writes
the mask as a hex word, echoes the typed address and stops:
(https://www.n-study.com/en/ip-addressing/cisco-ipaddress-configuration/)
Change
ip address) now refuses a dotted quad that is not contiguous withBad mask 0X<hex> for address <ip>— unmarked, mask in the hex spelling the vendor documents for a netmask("as indicated by the leading 0X (for example, 0XFFFFFF00)",
ip netmask-format), no explanation.nothing in hand says what a box prints there.
ip routekeeps its own sentence too: the only transcript is anip addressline, and a static route'srefusal for the same mask is not witnessed. The asymmetry is deliberate and commented.
Evidence and what stays open
research/ip-address-bad-mask-hex.md records the transcript, the vendor's hex netmask format, the forum thread
titled
Bad mask 0XFFFFFwhose screenshot is unreadable, and the one detail still open: zero-padding (amask whose first byte is zero —
0.0.0.255— would print0X00FFFFFFhere; a single paste settles it), thecase of the
X(0xin the transcript,0Xin the vendor docs), an IOS XE witness, and the two doors leftalone above.
Tests
test/mask-rule.test.js(31) andtest/ip-address-not-a-host.test.js(43) updated to pin the new line, theunmarked refusal, and the padded zero-high-byte word; full
npm test: 382 suites, 12,890 assertions, 0failed.
node scripts/syntax-check.jsOK;check-doc-citationsclean (the_help()pointer indocs/BGP-POLICY.md re-anchored 7304 → 7357 after the shift, as #2171 did before).
`ip address 10.9.9.9 255.0.255.0` answered % Invalid mask: 255.0.255.0 - a netmask is a run of ones then zeros (255.255.255.0, or 24) - a sentence no IOS prints, with the leading marker its `Bad mask /N` siblings do not carry, the mask in the decimal spelling the box does not use in this line, and an explanation the box does not offer. A box writes the mask as a hex word instead, names the address that was typed and stops: R1(config-if)# ip address 192.168.1.254 255.255.5.0 Bad mask 0xFFFF0500 for address 192.168.1.254 The port door now prints `Bad mask 0XFF00FF00 for address 10.9.9.9`, the mask in the hex spelling the vendor documents for a netmask ("as indicated by the leading 0X (for example, 0XFFFFFF00)"). A mask that is not a dotted quad at all keeps this console's own sentence, and `ip route` keeps its own too - neither refusal is witnessed. research/ip-address-bad-mask-hex.md records the transcript, the hex-format reference, the one detail still open (zero-padding, which a single `0.0.0.255` paste would settle) and what would settle the rest.30d55f87ac455ac2dd74