Cisco
Step-by-step password recovery for the Cisco C9300-24UX (Catalyst 9300 (IOS-XE)). Console access required.
This guide provides step-by-step instructions for resetting lost or forgotten administrative passwords on enterprise networking hardware. Follow the procedure below carefully to regain access while preserving your device configuration.
Before proceeding with password recovery, ensure you have a console cable, terminal emulation software configured to 9600 baud, and physical access to the device.
Connect your terminal cable to the console port of the device and open your serial terminal session.
Power cycle the hardware and issue a Break key sequence during initial system startup to enter ROMMON mode.
Bypass startup configuration loading, boot into system software, set your new credentials, and save changes back to non-volatile memory.
This procedure recovers administrator access to the Cisco Catalyst C9300-24UX (Catalyst 9000 family, IOS-XE) when the enable secret or local user passwords are lost. The startup configuration is preserved (renamed, not erased).
Console cable (RJ-45 or USB-C console on newer 9300X/9500 models) with a terminal session at 9600 baud, 8N1. Physical access to power-cycle the switch and press the Mode button on the front panel.
switch:.flash_initdir flash: — locate the configuration file. On a standalone unit it is config.text; on a stack it is per-member (config.text-1, config.text-2, ...).rename flash:config.text flash:config.text.old (use the correct per-member name if stacking).boot — if the boot image is not auto-discovered, use boot flash:packages.conf (the IOS-XE package file on Catalyst 9300/9500).enable (no password required).copy flash:config.text.old system:running-config — when prompted for the source filename, enter flash:config.text.old.configure terminal.enable secret <new-password>.line vty 0 15 → password <new-password> → login; repeat for line console 0. If local users exist, reset them: username <name> privilege 15 secret <new-password>.end, then write memory.reload. Log in with the new credentials.If the Mode button is inaccessible (rack-mounted without front access), use the ROMMON break method:
rommon 1> prompt.confreg 0x2142reset (or boot).enable, then restore: copy startup-config running-config.configure terminal → config-register 0x2102.write memory, then reload.config.text-1, config.text-2, ...); show switch shows member numbers.no service password-recovery is present, neither method bypasses the config; only write erase (destructive factory reset) remains. Restore from a TFTP/USB backup afterwards.switch(boot)# — the same commands apply.Before any recovery, back up the running config: copy running-config usbflash0: or copy running-config tftp://<server>/<filename>. After recovery, verify show startup-config contains the expected config and re-save with write memory.