A port with no address has no method, so show ip interface brief says unset #1557
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!1557
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1115-2231"
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 Method column of
show ip interface briefsay for a port that has no IP address?Evidence
show ip interface:Serial1 unassigned YES unset administratively down down- https://www.cisco.com/E-Learning/bulk/public/tac/cim/cib/using_cisco_ios_software/cmdrefs/show_ip_interface.htmshow ip interface: Method values includeunset: Unset- http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9500/software/release/17-18/command_reference/b_1718_9500_cr/interface_and_hardware_commands.pdfunassigned YES unset up up- http://www.cisco.com/c/en/us/td/docs/routers/secure-routers/sec-8100-series/software-config-guide/cisco-8100-series-secure-routers-software-configuration-guide/m-interface-configuration.htmlVerdict
unset. The table printedmanualfor every non-DHCP port, including ports with no address, which claimed a method nobody configured.manualnow belongs only beside a static address; a DHCP client keepsDHCPwhile its lease is outstanding; no address meansunset.Changed
engine/cli.js: the Method cell is derived from the port state instead of the binary DHCP/not-DHCP choice.docs/CLI.md: the Method column and the three states, with Cisco's field definition.test/brief-method-unset.test.js: 8 assertions - factory port, static, DHCP before a lease,no ip address, and every factory port of a switch.Gates
node scripts/syntax-check.js: 326 files, all OKnpm test: 256 suites, 9305 assertions, 0 failedUnresolved
A static address loaded from startup-config prints
NVRAMon a real box andmanualwhen configured in the running session. PacketForge has no startup/running distinction, so it saysmanualfor any static address; modelling the NVRAM/manual split would need a persisted startup config first.show ip interface briefsays unset1b2ddc1dd1805cc36809show ip interface brief: a port with no address has no method, and every row lands under its heading #1562