Cisco

Cisco ISR and ASR Router Password Recovery

Recover a lost enable password on Cisco ISR and ASR routers using the config-register 0x2142 procedure over the console port.

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

ISR and ASR platforms use the standard Cisco IOS/IOS-XE password-recovery procedure: interrupt the boot before IOS finishes loading, boot with the configuration register set so the router ignores its startup configuration, set a new password, then restore the original configuration.

Prerequisites

Recovery Steps

  1. Connect the console and power-cycle the router.
  2. Interrupt the boot with a break signal to reach the rommon 1 > prompt. The break sequences are defined in detail below.
  3. Bypass the startup configuration:
    rommon 1 > confreg 0x2142
    rommon 2 > reset
  4. After boot, answer no to the setup dialog, then merge the saved configuration back:
    Router> enable
    Router# copy startup-config running-config
  5. Set the new password:
    Router(config)# enable secret <new-password>
  6. Restore the register, save and reload:
    Router(config)# config-register 0x2102
    Router(config)# end
    Router# write memory
    Router# reload

Step 2 in detail: the possible break sequences

The break has to land after POST completes and just before IOS/IOS-XE finishes loading, not at power-on. For the ISR G2 (1900/2900/3900), ISR 1000, ISR 4000 (4321 to 4461) and ASR 1000 families, Cisco documents that you must send the break repeatedly through the boot window until the boot aborts. One well-timed press is often not enough.

If the break does not register

You are in ROMMON when the boot stops like this

Current image running: Boot ROM1
Last reset cause: LocalSoft
ISR4331/K9 platform with 4194304 Kbytes of main memory
........
Located isr4300-universalk9.16.12.04.SPA.bin
##############################################
Failed to boot file bootflash:isr4300-universalk9.16.12.04.SPA.bin
.......
rommon 1 >

At the rommon 1 > prompt continue with step 3 above.

Note

On IOS-XE platforms that load packages.conf, use boot flash:packages.conf at the rommon prompt if a plain reset does not boot the router.