EX4200交换机密码恢复

我们知道设备在出厂时,有个默认的管理用户root,密码为空,这个用户是不允许我们远程登录使用的。所以我们用默认用户进入设备后要新建一个用户作为super-user。但root用户因为没有密码,所以为了安全,我们也设置一道关卡密码,作为屏障,这个用户为超级用户。一旦我们为超级用户设置了密码,忘记了怎么办?下面就是一个很好的解决办法:

     我们可以拨电重启,或是用命令request system reboot或者request system halt或者request system power-off后,这里我们要注意一下,关闭交换机时,先要用命令关闭交换机,等待系统进程停止时,再关掉电源模块。

在关闭交换机电源之前必须先利用命令关闭交换机

这时我们只需要在设备出现以下命令提示符:

      

Booting [kernel] in 9 seconds...

< Press any key other than return >

  我们要迅速按任意键中断启动方式,进入单用户模式:boot -s 

  然后在:

Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh:           后输入recovery,记住是输入 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>

此时,我们就进入configure模式,删除root密码:

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

root#commit 

root#exit

root>request system reboot

重新启动后,密码就为空了,最后想怎么搞就怎么搞吧,自由发挥了。


        

你可能感兴趣的:(方法,密码恢复,EX4200)