Juniper EX系列交换机密码恢复操作

如果Juniper设备的Root密码丢失,而且没有其他的超级用户权限,那么就需要执行密码恢复,该操作需要中断Juniper设备的正常功能。

要进行密码恢复,请按照下面操作进行:

  1. 重新启动Juniper设备。
  2. 在启动过程中,console上出现下面的提示的时候,按任意键中断正常启动方式,然后再进入单用户状态:

Hit [Enter] to boot immediately, or any other key for command prompt.

Booting [kernel] in 9 seconds...

< Press any key other than return >

ok boot –s

3.执行密码恢复:在以下提示文字后输入recovery

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

NOTE: Once in the CLI, you will need to enter configuration mode using

NOTE: the 'configure' command to make any required changes. For example,

NOTE: to reset the root password, type:

NOTE:    configure

NOTE:    set system root-authentication plain-text-password

NOTE:    (enter the new password when asked)

NOTE:    commit

NOTE:    exit

NOTE:    exit

NOTE: When you exit the CLI, you will be asked if you want to reboot

NOTE: the system

Starting CLI ...

root>

4.进入配置模式,删除root密码:

root> configure

Entering configuration mode

[edit]

root# set system root-authentication plain-text-password 

输入两遍新的口令。

root@router# commit

commit complete

[edit]

root@router# exit 

Exiting configuration mode

root@kenny> exit

Reboot the system? [y/n] y

Terminated

重新启动后, Juniper设备恢复正常。

你可能感兴趣的:(网络数通,服务器,运维,网络,网络工程师)