To remove the admin password on a
Cisco Catalyst 3850, boot the switch into recovery mode by holding the Mode button for 12 seconds until the LED turns amber. Then, use the SWITCH_IGNORE_STARTUP_CFG=1 command in the switch: prompt to bypass the configuration, allowing you to reconfigure the password without losing existing settings.Step-by-Step Password Recovery Process:
- Connect to Console: Connect your computer to the switch console port.
- Power Cycle & Mode Button: Unplug the power, then plug it back in while holding the Mode button on the front panel.
- Enter ROMMON: Keep holding for 10-15 seconds until the status LED turns amber and you see the
switch:prompt. - Initialize Flash: Type
flash_initand press Enter. - Ignore Config: Type
SWITCH_IGNORE_STARTUP_CFG=1and press Enter. - Boot System: Type
bootand press Enter. - Enter Privilege Mode: Once booted (skipping config), type
enableto enter privileged EXEC mode. - Load Configuration: Rename the old config to make it the running config:
copy flash:config.text system:running-config. - Change Password: Enter global configuration mode (
conf t) and set a new password:username [name] privilege 15 secret [new_password]. - Disable Ignore Flag: Disable the ignore startup config setting:
no switch: SWITCH_IGNORE_STARTUP_CFG=1orconf t,system ignore startupconfig. - Save Configuration: Save the new configuration with
write memory.