Juniper EX 15.X Password Reset
Published: 15th of August 2021
Recently, I was trying to reset the root password on an EX2200. Following the normal process of entering single user mode did not work. In this post I will cover the workaround to reset the root password.
On an EX2200/3200/3300/4200/4500/4550
running code version 15.1R1 - 15.1R6
password recovery via entering
from the loader prompt to enter single user mode results
in the switch booting from the alternate slice rather
than entering single user mode.
This post has the workaround. The steps are as follows:
- Press CTRLC + C to enter u-boot mode.
- Remove the boot_unattended environment variable.
- Boot the switch.
- Follow the normal password reset process found here.
U-Boot 1.1.6 (Feb 6 2008 - 11:27:42) Board: EX4200-24F 2.20 EPLD: Version 6.1 (0x85) DRAM: Initializing (1024 MB) FLASH: 8 MB USB: scanning bus for devices... 2 USB Device(s) found # <<<<< Type Ctrl + C here => # remove "boot_unattended" environment variable => setenv boot_unattended # Issue "boot" command, get into "loader>" => boot # Follow the normal password reset process
In this post, I covered the process of resetting the root password on a Juniper EX switch running code version 15.1R1 - 15.1R6. Thanks @python and future Brad, you are welcome.