设为首页 收藏本站
查看: 1344|回复: 0

忆龙2009:恢复H3C系列交换机控制台登陆口令

[复制链接]

尚未签到

发表于 2015-5-26 08:25:14 | 显示全部楼层 |阅读模式

  如果用户设置的控制台登录口令丢失,可以通过使用BOOT菜单中的“跳过配置文件启动”功能进行恢复。
  (1) 使用配置线缆将计算机的串口与H3C系列交换机的Console口进行连接,配置终端仿真程序,重新启动交换机。
  (2) 在交换机完成自检后,在下面的界面键入进入BOOT菜单。
  Board checking.......................................LSA1LTSG
  SDRAM fast selftest.......................................OK!
  Flash fast selftest.......................................OK!
  CPLD selftest.............................................OK!
  Switch chip selftest......................................OK!
  Slot 1/1/1 has no module or get slot type error
  Slot 1/1/2 has no module or get slot type error
  Slot 1/1/3 has no module or get slot type error
  Slot 1/1/4 has no module or get slot type error
  PHY selftest..............................................OK!
  Please check port leds..............................finished!
  The switch Mac is: 000f-e200-3900
  Press Ctrl-B to enter Boot Menu... 5
  password:                           
  说明:缺省情况下,进入BOOT菜单的口令为空。如果用户设置了BOOT菜单口令,但该口令已经丢失,请与代理商联系。
  (3) 进入BOOT菜单后,键入“7”,选择“跳过配置文件启动”功能。
  BOOT  MENU
  1. Download application file to flash
  2. Select application file to boot
  3. Display all files in flash
  4. Delete file from flash
  5. Modify bootrom password
  6. Enter bootrom upgrade menu
  7. Skip current configuration file
  8. Set bootrom password recovery
  9. Set switch startup mode
  0. Reboot
  Enter your choice(0-9): 7
  The current setting is running configuration file when reboot.
  Are you sure to skip current configuration file when reboot? Yes or No(Y/N) y
  Setting......done!  
  (4) 回到BOOT菜单后,输入“0”重新启动交换机。
  BOOT  MENU
  1. Download application file to flash
  2. Select application file to boot
  3. Display all files in flash
  4. Delete file from flash
  5. Modify bootrom password
  6. Enter bootrom upgrade menu
  7. Skip current configuration file
  8. Set bootrom password recovery
  9. Set switch startup mode
  0. Reboot
  Enter your choice(0-9): 0
  ^@System rebooting...            
  (5) 再次启动时,交换机会跳过配置文件,即跳过对控制台口令的配置,用户可以直接登录交换机。
  **************************************************************************
  * Copyright (c) 2004-2007 Hangzhou H3C Tech. Co., Ltd. All rights reserved.*
  * Without the owner's prior written consent,                                   *
  * no decompiling or reverse-engineering shall be allowed.                    *
  **************************************************************************
  Configuration file is skipped.
  User interface aux0 is available.
  Press ENTER to get started.
  
  (6) 用户登录后,可以使用display startup命令查看启动配置文件,并使用more命令查看该配置文件中的控制台口令配置。
  display startup
  Current startup saved-configuration file:          NULL
  Next startup saved-configuration file:             flash:/vrpcfg.cfg  
  more vrpcfg.cfg
  ……(略)
  #
  user-interface aux 0
  authentication-mode password
  set authentication password simple test
  user-interface vty 0 4
  authentication-mode none
  user privilege level 3
  idle-timeout 0 0
  #
  return
  
  说明:如果用户设置的口令为明文,则口令将直接显示在配置文件中;如果用户设置了密文的口令,则将显示为转换后的密文字符,此时需要用户自行将密文转换为明文。
  (7) 用户可以使用FTP或TFTP将启动配置文件发送到PC上,使用文本编辑软件(例如Windows系统的“记事本”或“写字板”软件)对配置文件进行编辑,修改认证口令或修改认证方式为None,再将配置文件上传到交换机上覆盖原有文件。再次启动后,交换机将使用更新后的配置文件,用户可以重新进行口令配置,同时其他原有配置不会丢失。
  说明:以上操作适用于在Password方式或Scheme方式中的本地方式下恢复登录口令。如果用户使用Scheme方式中的Radius方式进行认证,用户的登录口令将在Radius服务器上进行设置,当登录口令丢失或Radius服务器不可用时,也会造成登录失败;这种情况下,用户可以通过上面描述的方式编辑配置文件,修改认证方式为None,即可跳过认证直接登录,但登录口令需要用户在Radius服务器上进行恢复。
  (8) 需要注意的是,在第三步操作中选择的“跳过配置文件”选项会保存在BootRom中,如果不进行修改,则此后每次重启设备都会跳过配置文件。因此,需要用户手工重启设备,并再次进入BOOT菜单选择“跳过配置文件”选项,在提示确认的时候输入“N”,才能恢复启动时加载配置文件。
  BOOT  MENU
  1. Download application file to flash
  2. Select application file to boot
  3. Display all files in flash
  4. Delete file from flash
  5. Modify bootrom password
  6. Enter bootrom upgrade menu
  7. Skip current configuration file
  8. Set bootrom password recovery
  9. Set switch startup mode
  0. Reboot
  Enter your choice(0-9): 7
  The current setting is running configuration file when reboot.
  Are you sure to skip current configuration file when reboot? Yes or No(Y/N) n
  Setting......done!  
  
  
  该方法适用于以下交换机:


  • S2126-EI
  • S3100
  • S3100-52P
  • S3600
  • S3610
  • S5100
  • S5500
  • S5510
  • S5600
  • E126/E126A/E152/E352/E328

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-70693-1-1.html 上篇帖子: H3C:MAS多媒体存储访问架构解析[转] 下篇帖子: H3C交换机堆叠设置实例
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表