Juniper Root Password Recovery

Tested: Juniper MX204

Root Password Recovery

Lakukan remote console ke perangkat, lalu tekan CTRL+C jika muncul log/bagian berikut

FreeBSD/x86 bootstrap loader, Revision 1.1
([email protected], Sun Feb  4 13:06:24 PST 2018)
/
Autoboot in 1 seconds... (press Ctrl-C to interrupt)

Jika muncul pilihan berikut:

Choice:
Main Menu

1.  Boot [J]unos volume
2.  Boot Junos volume in [S]afe mode

3.  [R]eboot

4.  [B]oot menu
5.  [M]ore options

Pilih 5 atau M, lalu ENTER

Jika muncul pilihan berikut:

Choice:
Options Menu

1.  Recover [J]unos volume
2.  Recovery mode - [C]LI

3.  Check [F]ile system

4.  Enable [V]erbose boot

5.  [B]oot prompt

6.  [M]ain menu

Pilih 2 atau C, lalu ENTER

Setelah menunggu beberapa saat akan muncul tampilah berikut, lalu ketik configure:

NOTE: When you exit the CLI, you will be in a shell.
Starting CLI ...

root> configure
Entering configuration mode

Set password baru, ketikkan perintah berikut:

[edit]
root# set system root-authentication plain-text-password

Lalu akan diminta memasukkan password root baru:

New password: password

Ketik ulang password root baru untuk mengkonfirmasi:

Retype new password: password

Setelah password baru lakukan commit untuk melakukan apply konfigurasi:

root@host# commit
commit complete

Keluar dari mode konfigurasi:

root@host# exit
Exiting configuration mode

Keluar dari oprational mode:

root@host> exit

Pada tampilan prompt/shell ketik:

NOTE: Type 'exit' to restart the system.
# exit

Ketika muncul pilihan:

Reboot the system? [y/n] y 

Pilih y untuk melakukan reboot system

Reset Konfigurasi (Factory Default Configuration)

Masuk kedalam mode konfigurasi:

root> configure

Ketikkan perintah berikut untuk load factory default configuration:

root# load factory-default
warning: activating factory configuration

Set root password baru:

root# set system root-authentication plain-text-password
New password:
Retype new password:

Lakukan apply konfigurasi:

root# commit

Keluar dari configuration mode:

root# exit
Exiting configuration mode

Lakukan reboot system:

root> request system reboot
Reboot the system ? [yes,no] (no) yes
Sumber/referensi:

https://www.juniper.net/documentation/us/en/software/junos/user-access/topics/topic-map/recovering-root-password.html