您的位置:首页 > 其它

EX4200交换机密码恢复

2014-11-29 19:35 141 查看
我们知道设备在出厂时,有个默认的管理用户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 usingNOTE: the 'configure' command to make any required changes. For example,NOTE: to reset the root password, type:NOTE: configureNOTE: set system root-authentication plain-text-passwordNOTE: (enter the new password when asked)NOTE: commitNOTE: exitNOTE: exitNOTE: When you exit the CLI, you will be asked if you want to rebootNOTE: the system
Starting CLI ... root>此时,我们就进入configure模式,删除root密码:root#delete system root-authentication plain-text-passwordroot#commit
root#exit
root>request system reboot重新启动后,密码就为空了,最后想怎么搞就怎么搞吧,自由发挥了。

本文出自 “茶余饭后,静思量” 博客,请务必保留此出处http://yanhuasanyue.blog.51cto.com/9005517/1584545
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: