Junos设备密码恢复

1


重启Junos设备,遇到下图提示时按下空格键。(因为提示时间短暂,建议不断按下空格键,避免错过提示)

Junos设备密码恢复

2


按下空格键后,出现OK提示输入 boot –s 进入单用户模式。

Junos设备密码恢复

3


出现如下提示时,输入recovery

Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh:recovery

Junos设备密码恢复

4


设备启动后,输入edit进入配置模式

Junos设备密码恢复

5


配置模式下输入set system root-authentication plain-text-password 开始设置新密码。

Junos设备密码恢复

6


设置完新密码后commit生效。

root# commit 

7


重新启动设备后,以新密码登录设备。

root# run request system reboot