Juniper路由器密码恢复:
如果路由节点的Root密码丢失,而且没有其他的超级用户权限,那么就需要执行密码恢复,该操作需要中断路由节点的正常功能。
要进行密码恢复,请按照下面操作进行:
(1).重新启动路由节点。
(2).在启动过程中,console上出现下面的提示的时候,按任意键中断正常启动方式,然后再进入单用户状态:
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [kernel] in
< Press any key other than return >
ok boot –s // boot -s需要手工输入
要进行密码恢复,请按照下面操作进行:
(1).重新启动路由节点。
(2).在启动过程中,console上出现下面的提示的时候,按任意键中断正常启动方式,然后再进入单用户状态:
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [kernel] in
< Press any key other than return >
ok boot –s // boot -s需要手工输入
注:有时候“any other key for command prompt”这里可能是按space键。具体请根据提示操作。
(3).执行密码恢复:在以下提示文字后输入recovery
Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: recovery // 手工输入recovery
root的初始密码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
root的初始密码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# delete system root-authentication
root@router# commit
commit complete
[edit]
root@router# exit
root>
(4).进入配置模式,删除root密码:
root> configure
Entering configuration mode
[edit]
root# delete system root-authentication
root@router# commit
commit complete
[edit]
root@router# exit
Exiting configuration mode
root@kenny> exit
Reboot the system? [y/n] y
Terminated
(5).重新启动后,配置新的root密码。路由节点恢复正常。
root@kenny> exit
Reboot the system? [y/n] y
Terminated
(5).重新启动后,配置新的root密码。路由节点恢复正常。
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论