Configuring No Service Password-Recovery on the Cisco 4000 Series Integrated Services Routers
Prerequisites for No Service Password-Recovery
Information About No Service Password-Recovery
Cisco Password-Recovery Procedure
Configuration Registers and System Boot Configuration
How to Enable No Service Password-Recovery
Enabling No Service Password-Recovery
Recovering a Device with the No Service Password-Recovery Feature Enabled
Configuration Examples for No Service Password-Recovery
Feature Information for No Service Password-Recovery
The No Service Password-Recovery feature is a security enhancement that prevents anyone with console access from accessing the router configuration and clearing the password. It also prevents anyone accessing ROMMON or changing the ROMMON variables.
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information Table at the end of this document.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
You must download and install ROM monitor (ROMMON) version 15.3(3r)S1 before you can use this feature.
The Cisco IOS password recovery procedure allows you to to gain access, using the console, to ROMMON mode by using the Break key during system startup and reload. When the router software is loaded from ROMMON mode, the configuration is updated with the new password. The password recovery procedure makes anyone with console access have the ability to access the router and its network.
The No Service Password-Recovery feature explained in this document, is designed to prevent the service password-recovery procedure from being used to gain access to the router and network.
The lowest four bits of the configuration register (bits 3, 2, 1, and 0) form the boot field. The boot field determines if the router boots manually from ROM or automatically from flash or the network. For example, when the configuration register boot field value is set to any value from 0x2 to 0xF, the router uses the register boot field value to form a default boot filename for autobooting from a network server.
Bit 8, when set to 1, ignores the startup configuration. Bit 6, when set to 1, enables break key detection. You must set the configuration register to autoboot to enable this feature. Any other configuration register setting will prevent the feature from being enabled.
Note By default, the no confirm prompt and message are not displayed after reloads.
If your router or access server does not find a valid system image to load, the system will enter ROMMON mode. ROMMON mode can also be accessed by interrupting the boot sequence during startup.
Another method for entering ROMMON mode is to set the configuration register so that the router automatically enters ROMMON mode when it boots. For information about setting the configuration register value, refer to the Configuration Fundamentals Configuration Guide Cisco IOS XE Release 3S and also see “Configuring the Configuration Register for Autoboot”, in the “Installing the Software” section of the Software Configuration Guide for the Cisco 4451-X Integrated Services Router.
Please refer to the Hardware Installation Guide for the Cisco 4451-X Integrated Services Router for information on how to upgrade and verify your version of ROMMON.
You can enable the No Service Password-Recovery in the following two ways:
Note As a precaution, a valid Cisco IOS image should reside in the bootflash: before this feature is enabled.
If you plan to enter the no service password-recovery command, Cisco recommends that you save a copy of the system configuration file in a location away from the router.
Ensure that this feature is disabled before making any change to the router regardless of the significance of the change—such as a configuration, module, software version, or ROMMON version change.
The configuration register boot bit must be enabled to load the startup configuration by setting bit-8 to 0, to ignore the break key in Cisco IOS XE by setting bit-6 to 0, and to auto boot a Cisco IOS XE image by setting the lowest four bits 3-0, to any value from 0x2 to 0xF. Changes to the configuration register are not saved after the No Service Password-Recovery feature is enabled.
Note If Bit-8 is set to 1, the startup configuration is ignored. If Bit-6 is set to 1, break key detection is enabled in Cisco IOS XE. If both Bit-6 and Bit-8 are set to 0, the No Service Password-Recovery feature is enabled.
Perform the following steps to enable the No Service Password-Recovery feature.
5. no service password-recovery [strict]
To recover a device once the no service password-recovery feature has been enabled using the
no service password-recovery command, look out for the following message that appears during the boot: “PASSWORD RECOVERY FUNCTIONALITY IS DISABLED.” As soon as “..
” appears, press the Break key. You are then prompted to confirm the Break key action.
Note You cannot recover a device if the No Service Password-Recovery feature was enabled using the
no service password-recovery strict command.
This example shows a Break key action being entered during boot up, followed by confirmation of the break key action. The startup configuration is erased and the device then boots with the factory default configuration with the No Service Password-Recovery feature enabled.
System integrity status: 00000610
System Bootstrap, Version 15.3(3r)S, RELEASE SOFTWARE
Copyright (c) 1994-2013 by cisco Systems, Inc.
Current image running: Boot ROM1
Cisco ASR 1000 platform with 4194304 Kbytes of main memory
PASSWORD RECOVERY FUNCTIONALITY IS DISABLED
PASSWORD RECOVERY IS DISABLED.
Do you want to reset the router to the factory default
y
configuration and proceed [y/n] ?
Router clearing configuration. Please wait for ROMMON prompt...
Located isr4400-universalk9.BLD_V153_3_S_XE310_THROTTLE_LATEST_20130623_234109.SSA.bin
Image size 395545216 inode num 26, bks cnt 96569 blk size 8*512
This example shows a Break key action being entered during boot up, followed by the non-confirmation of the break key action. The device then boots normally with the No Service Password-Recovery feature enabled.
System integrity status: 00000610
System Bootstrap, Version 15.3(3r)S, RELEASE SOFTWARE
Copyright (c) 1994-2013 by cisco Systems, Inc.
Current image running: Boot ROM1
Cisco ASR 1000 platform with 4194304 Kbytes of main memory
PASSWORD RECOVERY FUNCTIONALITY IS DISABLED
PASSWORD RECOVERY IS DISABLED.
Do you want to reset the router to the factory default
n
configuration and proceed [y/n] ?
Router continuing with existing configuration...
Located isr4400-universalk9.BLD_V153_3_S_XE310_THROTTLE_LATEST_20130623_234109.SSA.bin
Image size 395545216 inode num 26, bks cnt 96569 blk size 8*512
######################################################################## …
The following example shows how to obtain the configuration register setting (which is set to autoboot), disable password recovery capability, and then verify that the configuration persists through a system reload:
Cisco Internetwork Operating System Software
IOS (tm) 5300 Software (C7200-P-M), Version 12.3(8)YA, RELEASE SOFTWARE (fc1)
TAC Support: http://www.cisco.com/tac
Copyright (c) 1986-2004 by Cisco Systems, Inc.
Compiled Wed 05-Mar-04 10:16 by xxx
Image text-base: 0x60008954, data-base: 0x61964000
ROM: System Bootstrap, Version 12.3(8)YA, RELEASE SOFTWARE (fc1)
125440K bytes of ATA PCMCIA card at slot 0 (Sector size 512 bytes).
8192K bytes of Flash internal SIMM (Sector size 256K).
Configuration register is 0x2102
Router(config)#
no service password-recovery
Executing this command will disable the password recovery mechanism.
Do not execute this command without another plan for password recovery.
Are you sure you want to continue? [yes]:
yes
Proceed with reload? [confirm]
yes
00:01:54: %SYS-5-RELOAD: Reload requested
System Bootstrap, Version 12.3...
Copyright (c) 1994-2004 by cisco Systems, Inc.
C7400 platform with 262144 Kbytes of main memory
PASSWORD RECOVERY FUNCTIONALITY IS DISABLED
The following example shows how to disable password recovery capability using the
no service password-recovery strict command:
Router(config)#
no service password-recovery strict
Do not execute this command without another plan for password recovery.
The Integrated File System Configuration Guide, Cisco IOS XE Release 3S. |
|
Security commands: complete command syntax, command mode, command history, defaults, usage guidelines, and examples. |
|
To locate and download MIBs for selected platforms, Cisco IOS releases and feature sets, use Cisco MIB locator http://www.cisco.com/go/mibs |
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator www.cisco.com/go/cfn to find information about platform support and Cisco software image support. An account on Cisco.com is not required.