cli: a subinterface prompts (config-subif)#, its parent port (config-if)# #1755
Closed
jaylouisw
wants to merge 1 commit from
rev/1116-2330 into main
pull from: rev/1116-2330
merge into: jaylouisw:main
jaylouisw:main
jaylouisw:rev/1121-1812
jaylouisw:catalogue/1121-1822
jaylouisw:docs/1121-1817
jaylouisw:catalogue/1121-1752
jaylouisw:docs/1121-1747
jaylouisw:rev/1121-1742
jaylouisw:catalogue/1121-1722
jaylouisw:rev/1121-1712
jaylouisw:docs/1121-1717
jaylouisw:catalogue/1121-1652
jaylouisw:rev/1121-1642
jaylouisw:docs/1121-1647
jaylouisw:ci/1121-1646
jaylouisw:ci/1121-1427
jaylouisw:rev/1121-1412
jaylouisw:catalogue/1121-1422
jaylouisw:docs/1121-1417
jaylouisw:catalogue/1121-1352
jaylouisw:rev/1121-1342
jaylouisw:docs/1121-1347
jaylouisw:rev/1121-1212
jaylouisw:catalogue/1121-1222
jaylouisw:docs/1121-1217
jaylouisw:ci/1121-1027
jaylouisw:catalogue/1121-1022
jaylouisw:rev/1121-1013
jaylouisw:docs/1121-1017
jaylouisw:catalogue/1121-0852
jaylouisw:rev/1121-0842
jaylouisw:docs/1121-0847
jaylouisw:ci/1121-0827
jaylouisw:catalogue/1121-0822
jaylouisw:rev/1121-0812
jaylouisw:catalogue/1121-0752
jaylouisw:rev/1121-0742
jaylouisw:docs/1121-0747
jaylouisw:catalogue/1121-0722
jaylouisw:docs/1121-0717
jaylouisw:rev/1121-0712
jaylouisw:rev/1121-0642
jaylouisw:plan/1121-0637
jaylouisw:ci/1121-0627
jaylouisw:catalogue/1121-0622
jaylouisw:rev/1121-0612
jaylouisw:docs/1121-0617
jaylouisw:plan/1120-0337
jaylouisw:docs/1120-0347
jaylouisw:rev/1119-1942
jaylouisw:rev/1119-1912
jaylouisw:catalogue/1119-1752
jaylouisw:docs/1119-1347
jaylouisw:catalogue/1119-1352
jaylouisw:fix/1119-1232
jaylouisw:fix/1119-0602
jaylouisw:catalogue/1119-0452
jaylouisw:catalogue/1119-0422
jaylouisw:docs/1119-0417
jaylouisw:fix/1119-0202
jaylouisw:catalogue/1119-0222
jaylouisw:rev/1119-0042
jaylouisw:catalogue/1118-2252
jaylouisw:docs/1118-2047
jaylouisw:catalogue/1118-2152
jaylouisw:fix/1118-2037
jaylouisw:ci/1118-2027
jaylouisw:docs/1118-1416
jaylouisw:fix/1118-1006
jaylouisw:catalogue/1118-0326
jaylouisw:catalogue/1117-2326
jaylouisw:catalogue/1117-0025
jaylouisw:catalogue/1116-1730
jaylouisw:fix/1523-speed-downgrade-one-end
jaylouisw:fix/enable-required-and-empty-pipe-help
jaylouisw:land-all-v5
jaylouisw:land-all-v4
jaylouisw:land-all-v3
jaylouisw:land-all-v2
jaylouisw:land-all
jaylouisw:fix/board-id
jaylouisw:fix/stated-range
jaylouisw:fix/no-form-names-v2
jaylouisw:fix/voice-vlan
jaylouisw:devices/catalogue-batch
jaylouisw:devices/powerline-moca
jaylouisw:devices/firewalls-enterprise
jaylouisw:devices/pon-splitters
jaylouisw:devices/nvr-and-taps
jaylouisw:devices/four-nvr-models
jaylouisw:fix/contributing-exemption
jaylouisw:fix/stale-github-urls
jaylouisw:ci/cancel-superseded-runs
jaylouisw:gh/1438
jaylouisw:device/uisp-console-lbe-xr
jaylouisw:gh/1442
jaylouisw:docs/readme-current-counts
jaylouisw:feat/device-ubiquiti-wave-fiber-onu
jaylouisw:fix/address-ownership
jaylouisw:feat/vrrp-in-path
jaylouisw:fix/merge-research-duplicate
jaylouisw:docs/hybrid-patch-current
jaylouisw:fix/audit-port-template
jaylouisw:fix/2930f-jl256a-uplinks
jaylouisw:feat/dhcp-in-path
jaylouisw:feat/hackgpon-ubiquiti-uisp-fiber-xgs
jaylouisw:feat/hackgpon-adtran-sdx-621
jaylouisw:tool/issue-duplicate-sweep
jaylouisw:feat/device-mikrotik-rb433ah
jaylouisw:feat/hackgpon-ma5671a
jaylouisw:issues/categories-and-labels
jaylouisw:ci/run-every-suite-locally
jaylouisw:chore/http-smoke
No reviewers
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!1755
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1116-2330"
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?
A subinterface is its own configuration mode on an IOS box, and says so in the prompt. This console printed
(config-if)#inside aGi0/0.10, so a router-on-a-stick transcript pasted into it came back wearing a prompt no box produces.The rule is asked of the interface object the mode was entered on (
type === 'subinterface'), not of the typed name, so the prompt follows the object: subif to subif stays subif, subif to a physical port is(config-if)#, and re-entering an existing subinterface does not create a second one.Evidence (all captured lines, not prose about the mode):
research/subinterface-prompt.mdrecords what is known, what is inferred, and two open points: this rests on published captures rather than a box in hand, and a refusedinterface <name>from inside an interface mode still drops the session to(config)#(a box reports the error and leaves you where you were) — noted there as its own question, not fixed here.test/subinterface-prompt.test.jsholds seven checks: both prompts, the hostname in the prompt, subif→subif, subif→physical port, re-entry without duplicating the object, the mode still working under the new prompt, and the whole prompt ladder.docs/CLI.mdgains the mode row and the config-mode row.Full suite: 297 suites, 10489 assertions, 0 failures;
scripts/syntax-check.jsclean (368 files).A router keeps one connected route per subnet, so two of its ports cannot hold addresses in the same subnet. IOS refuses the command with one line and applies nothing: R4(config-if)#ip address 192.168.254.32 255.255.255.192 % 192.168.254.0 overlaps with FastEthernet0/0 Three public transcripts print that sentence with the network of the address being typed under the mask being typed, name the port that got there first, and show the refused port still `unassigned` afterwards (one of them is a subinterface colliding with its own parent): https://learningnetwork.cisco.com/s/question/0D53i00000Kt12sCAB/can-one-subnet-be-on-opposite-sides-of-a-router https://learningnetwork.cisco.com/s/question/0D53i00000Ksv3lCAB/two-interfaces-on-the-same-subnet https://learningnetwork.cisco.com/s/question/0D53i00000KsxMfCAJ/subinterfaces This console took the address and wrote it down, so a lab could hold two ports in one subnet and print two connected routes for a network the box has one wire for. The check compares the two address *ranges*, so 10.1.1.1/16 and 10.1.2.1/24 collide in either order where "same subnet" would miss them; it runs before anything is stored, so the port keeps its previous address, mask and DHCP flag and `show running-config` never carries the line. Two consequences are left unmodelled and recorded instead of guessed: an incumbent port that is administratively down (one contributor says IOS accepts the overlap then; no vendor page or capture confirms it) and an address a DHCP client holds at run time. docs/CLI.md states the rule; research/ip-address-overlap.md holds the evidence, the two open questions and what would settle them; test/ip-address-overlap.test.js adds 14 checks.cli: a second primary address in a subnet this box already holds is refusedto cli: a subinterface prompts(config-subif)#, its parent port(config-if)#Pull request closed