Cisco

Cisco WS-C3850-48P Password Recovery

Step-by-step password recovery for the Cisco WS-C3850-48P (Catalyst 3850 (IOS-XE)). Console access required.

Overview

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.

Prerequisites

Before proceeding with password recovery, ensure you have a console cable, terminal emulation software configured to 9600 baud, and physical access to the device.

Step 1: Establish Console Connection

Connect your terminal cable to the console port of the device and open your serial terminal session.

Step 2: Interrupt the Boot Sequence

Power cycle the hardware and issue a Break key sequence during initial system startup to enter ROMMON mode.

Step 3: Reset Password & Configuration

Bypass startup configuration loading, boot into system software, set your new credentials, and save changes back to non-volatile memory.

Overview

This procedure recovers administrator access to the Cisco Catalyst 3850-48P (IOS-XE) when the enable secret or local user passwords are lost. The startup configuration is preserved (renamed, not erased).

Prerequisites

Console cable (RJ-45 to DB-9 or USB) with a terminal session at 9600 baud, 8N1. Physical access to power-cycle the switch and reach the Mode button on the front panel.

Recovery Procedure — Mode Button Method

  1. Connect the console cable and open a terminal session (9600 8N1).
  2. Power-cycle the switch.
  3. Within 15 seconds of power-on, press and HOLD the Mode button on the front panel. Keep holding until the system LED turns solid amber (roughly 10–15 seconds), then release. A brief press does nothing.
  4. The switch enters the boot loader and shows the switch: prompt.
  5. Initialize flash: flash_init
  6. List flash contents: dir flash: — locate config.text (on stacked units: config.text-1, config.text-2, ...).
  7. Rename the configuration: rename flash:config.text flash:config.text.old (use the correct per-member name if stacking).
  8. Boot the switch: boot — if the image is not auto-discovered, use boot flash:packages.conf.
  9. The switch boots to the CLI with an empty configuration. Enter enable (no password).
  10. Restore the config: copy flash:config.text.old system:running-config — enter flash:config.text.old as the source filename when prompted.
  11. Enter configuration mode: configure terminal.
  12. Set a new enable secret: enable secret <new-password>.
  13. Set line passwords: line vty 0 15password <new-password>login; repeat for line console 0. If local users are used (username/password), reset them too: username <name> privilege 15 secret <new-password>.
  14. Exit and save: end, then write memory.
  15. Reload and verify: reload. Log in with the new credentials.

Important Notes

Protecting Your Configuration

Before recovery, back up the config: copy running-config tftp://<server>/<filename> or copy running-config usbflash0:. After recovery, verify show startup-config and re-save.