• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

H3C MSR 30-20

2021-05-22提问
  • 0关注
  • 1收藏,1037浏览
粉丝:0人 关注:0人

问题描述:

你好,请问一下如何 清除cons口的密码

组网及组网描述:

设置列表

  • 有序列表
  • 无序列表



最佳答案

粉丝:3人 关注:0人

V7交换机Console密码忘记处理方法

 

目录

V7交换机Console密码忘记处理方法 1

1 配置需求或说明 1

1.1 适用产品系列 1

1.2 配置需求及实现的效果 1

2 组网图 1

3 配置步骤 2

3.1 进入bootroom菜单清除Consle密码 2

3.2 如果不需要之前的配置信息的话 3

3.3 如果需要之前的配置信息的话 3

 

1 配置需求或说明

1.1 适用产品系列

本案例适用于如S5130-28F-WiNetS5500V2-24P-WiNetS5500V2-48P-WiNet等的V7交换机,V5V7交换机具体分类及型号可以参考1.1 Comware V5V7平台交换机分类说明”。

1.2 配置需求及实现效果

清除Consle密码,恢复出厂

2 组网图

3 配置步骤

3.1 进入bootroom菜单清除Consle密码

通过conlse线crt软件连接并登陆设备,然后把设备断电重启。控制台上会打印如下信息,当出现“press Ctrl+B”时候快速按住“Ctrl+B” 进入botroom菜单

System is starting...
Press Ctrl+D to access BASIC-BOOTWARE MENU
Booting Normal Extend BootWare
The Extend BootWare is self-decompressing.......................Done!
BootWare Validating...
Press Ctrl+B to enter extended boot menu... 

BotWare password: Not required. Please press Enter to continue.

Password recovery capability is enabled.

Note: The current operating device is flash

Enter < Storage Device Operation > to select device.

      按住“Ctrl+B”进入如下菜单。选择<6> Skip Current System Configuration跳过当前配置启动,不同设备可能不是数字6

===========================<EXTEND-BOOTWARE MENU>===========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> Skip Current System Configuration                                     |

|<7> BootWare Operation Menu                                               |

|<8> Clear Super Password                                                  |

|<9> Storage Device Operation                                              |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9): 6    

Flag Set Success.

然后输入0重启设备

===========================<EXTEND-BOOTWARE MENU>===========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> Skip Current System Configuration                                     |

|<7> BootWare Operation Menu                                               |

|<8> Clear Super Password                                                  |

|<9> Storage Device Operation                                              |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9): 0 

System is starting...

Press ENTER to get started.

3.2 如果不需要之前的配置信息的话

操作步骤:跳过启动文件后直接保存当前配置,再重启。

<H3C>save 

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):(输入回车)

flash:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...

Configuration is saved to device successfully.

<H3C>reboot 

Start to check configuration with next startup configuration file, please wait.........DONE!

Current configuration may be lost after the reboot, save current configuration? [Y/N]:y

This command will reboot the device. Continue? [Y/N]:y

3.3 如果需要之前的配置信息的话

<H3C>

#Apr 26 12:02:07:166 2000 H3C SHELL/4/LOGIN: 

 Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.1<hh3cLogIn>: login from Console

%Apr 26 12:02:07:306 2000 H3C SHELL/5/SHELL_LOGIN: Console logged in from aux0.

<H3C>dir  %查看设备配置文件

Directory of flash:/

 

   1     drw-         -  Apr 26 2000 12:00:20   logfile

   2     -rw-      1666  Apr 26 2000 12:05:39   startup.cfg

   3     -rw-      1556  Apr 26 2000 12:05:33   _startup_bak.cfg

   4     -rw-       151  Apr 26 2000 12:05:30   system.xml

29106 KB total (16876 KB free) 

给设备和电脑配置成同网段IP地址(举例:WAC配置成192.168.100.1,电脑配置成192.168.100.2),在电脑上通过3CD软件搭建tftp服务器。

 

 

<H3C>sys

System View: return to User View with Ctrl+Z.

[H3C]interface Vlan-interface 1

[H3C-Vlan-interface1]ip address 192.168.100.1 24

[H3C-Vlan-interface1]quit

[H3C]ping 192.168.100.2

  PING 192.168.100.2: 56  data bytes, press CTRL_C to break

    Reply from 192.168.100.2: bytes=56 Sequence=1 ttl=128 time=7 ms

    Reply from 192.168.100.2: bytes=56 Sequence=2 ttl=128 time=2 ms

 

<H3C>tftp 192.168.100.2 put startup.cfg
  
  File will be transferred in binary mode 
  Sending file to remote TFTP server. Please wait... |
  TFTP:     1666 bytes sent in 0 second(s).
  File uploaded successfully. 

 

<H3C>

 

下载成功:

 

可以到本地相关路径(此例子中是E盘)查看到相关文件。

需要恢复之前配置

解决方法:删除密码恢复之前配置文件

使用记事本打开startup.cfg文件 

 

删除aux0口下的认证方式和密码并保存文件

 

 

覆盖当前配置文件

<H3C>tftp 192.168.100.20 get startup.cfg

The file startup.cfg exists. Overwrite it? [Y/N]:y

  Verifying server file...

  Deleting the old file, please wait...

  ...

  File will be transferred in binary mode 

  Downloading file from remote TFTP server, please wait....

  TFTP:     1166 bytes received in 0 second(s) 

  File downloaded successfully. 

 

<H3C>reboot

Start to check configuration with next startup configuration file, please wait.........DONE!

Current configuration may be lost after the reboot, save current configuration? [Y/N]:n 不保存配置

This command will reboot the device. Continue? [Y/N]:y 确定继续重启

 

暂无评论

4 个回答
粉丝:207人 关注:1人

配置密码恢复功能后,当用户忘记Console口认证密码或者登录认证失败,导致无法使用命令行操作设备时,可通过BootWare菜单以忽略系统当前配置的方式启动,再继续使用设备。关闭密码恢复功能后,设备将处于一个安全性更高的状态,即当出现上述情况时,若想继续使用Console口对设备进行命令行操作,只能通过BootWare菜单选择将设备恢复为出厂配置之后方可继续操作,这样可以有效地防止非法用户获取启动配置文件。缺省情况下,设备的密码恢复功能处于使能状态。

  1. 以忽略系统当前配置的方式启动

如果使能了密码恢复功能,当用户忘记了Console口密码时,可以重启设备根据系统提示按Ctrl+B进入BootWare主菜单选择<6>,即以忽略系统配置的方式启动,此时设备不会删除原有的配置文件。

Press Ctrl+B to enter extended boot menu...

BootWare password: Not required. Please press Enter to continue.

 

Password recovery capability is enabled.  //如果看到此提示,则表示设备开启了密码恢复功能。

Note: The current operating device is flash

Enter < Storage Device Operation > to select device.  

===========================<EXTEND-BOOTWARE MENU>===========================

<1> Boot System                        

<2> Enter Serial SubMenu           

<3> Enter Ethernet SubMenu         

<4> File Control                            

<5> Restore to Factory Default Configuration 

<6> Skip Current System Configuration 

<7> BootWare Operation Menu        

<8> Clear Super Password                 

<9> Storage Device Operation            

<0> Reboot                                   

==============================================================================

Ctrl+Z: Access EXTEND-ASSISTANT MENU  

Ctrl+F: Format File System  

Enter your choice(0-9): 6

系统出现如下提示表明已经设置成功。

Flag Set Success.

当再次出现BootWare主菜单时,选择<0>,设备开始重新启动。重启设备后,设备的配置为空,可以在系统视图下配置回滚恢复原有配置,如下配置表示将当前配置回滚到配置文件startup.cfg中的配置状态。如果不想恢复原有配置,请跳过此步骤。

<H3C> system-view

[H3C]configuration replace file startup.cfg

Current configuration will be lost, save current configuration? [Y/N]:n

Info: Now replacing the current configuration. Please wait...

Info: Succeeded in replacing current configuration with the file startup.cfg.

在系统视图下设置新的Console口密码,如下配置表示设置Console口验证方式为密码验证,且以密文方式设置Console口的密码为123456

<H3C>system-view

[H3C]user-interface aux 0      //如果没有aux选项,请选择console

[H3C-ui-aux0]authentication-mode password

[H3C-ui-aux0]set authentication password cipher 123456

[H3C]save    //保存配置

  1. 恢复出厂配置

如果关闭了密码恢复功能,当用户忘记了配置的Console口密码时,可以重启设备进入BootWare主菜单选择<5>,即恢复设备的出厂配置,此时设备会自动删除启动时使用的配置文件。 

Press Ctrl+B to enter extended boot menu...

BootWare password: Not required. Please press Enter to continue.

 

Password recovery capability is disabled.   //如果看到此提示,则表示设备关闭了密码恢复功能。

Note: The current operating device is flash

Enter < Storage Device Operation > to select device.    

===========================<EXTEND-BOOTWARE MENU>===========================

<1> Boot System                        

<2> Enter Serial SubMenu           

<3> Enter Ethernet SubMenu         

<4> File Control                            

<5> Restore to Factory Default Configuration 

<6> Skip Current System Configuration 

<7> BootWare Operation Menu        

<8> Clear Super Password                 

<9> Storage Device Operation            

<0> Reboot                    

===============================================================================

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9): 5  

系统出现如下提示信息,表明已经设置成功。

Because the password recovery capability is disabled, this operation can

cause the configuration files to be deleted, and the system will start up

with factory defaults. Are you sure to continue?[Y/N]Y 

Setting...Done.  

当再次出现BootWare主菜单时,选择<0>,设备开始重新启动。

重启设备后设备恢复出厂配置。

暂无评论

zhiliao_saOMKk 知了小白
粉丝:0人 关注:0人

BootWare   菜单进不去   

BootWare   默认密码是多少呀 



暂无评论

粉丝:133人 关注:6人

您好,请知:
 
1、如果忘记console登陆密码,可通过远程登录修改,参考命令如下:
 
local-user admin
 
password simple admin
 
quit
 
2、如果所有密码都忘记了,可通过重启,按下“ctrl+b”进入bootrom,选择跳过console密码选项进入设备后修改。
 
2、如果没有跳过console密码的选项,则选择跳过当前配置启动,将startup.cfg这个文件导出,用TXT方式打开后,将密码部分删除,保存,导入设备重启后再登陆看看。


  1. 以忽略系统当前配置的方式启动

如果使能了密码恢复功能,当用户忘记了Console口密码时,可以重启设备根据系统提示按Ctrl+B进入BootWare主菜单选择<6>,即以忽略系统配置的方式启动,此时设备不会删除原有的配置文件。

Press Ctrl+B to enter extended boot menu...

BootWare password: Not required. Please press Enter to continue.

 

Password recovery capability is enabled.  //如果看到此提示,则表示设备开启了密码恢复功能。

Note: The current operating device is flash

Enter < Storage Device Operation > to select device.  

===========================<EXTEND-BOOTWARE MENU>===========================

<1> Boot System                        

<2> Enter Serial SubMenu           

<3> Enter Ethernet SubMenu         

<4> File Control                            

<5> Restore to Factory Default Configuration 

<6> Skip Current System Configuration 

<7> BootWare Operation Menu        

<8> Clear Super Password                 

<9> Storage Device Operation            

<0> Reboot                                   

==============================================================================

Ctrl+Z: Access EXTEND-ASSISTANT MENU  

Ctrl+F: Format File System  

Enter your choice(0-9): 6

系统出现如下提示表明已经设置成功。

Flag Set Success.

当再次出现BootWare主菜单时,选择<0>,设备开始重新启动。重启设备后,设备的配置为空,可以在系统视图下配置回滚恢复原有配置,如下配置表示将当前配置回滚到配置文件startup.cfg中的配置状态。如果不想恢复原有配置,请跳过此步骤。

<H3C> system-view

[H3C]configuration replace file startup.cfg

Current configuration will be lost, save current configuration? [Y/N]:n

Info: Now replacing the current configuration. Please wait...

Info: Succeeded in replacing current configuration with the file startup.cfg.

在系统视图下设置新的Console口密码,如下配置表示设置Console口验证方式为密码验证,且以密文方式设置Console口的密码为123456

<H3C>system-view

[H3C]user-interface aux 0      //如果没有aux选项,请选择console

[H3C-ui-aux0]authentication-mode password

[H3C-ui-aux0]set authentication password cipher 123456

[H3C]save    //保存配置

  1. 恢复出厂配置

如果关闭了密码恢复功能,当用户忘记了配置的Console口密码时,可以重启设备进入BootWare主菜单选择<5>,即恢复设备的出厂配置,此时设备会自动删除启动时使用的配置文件。 

Press Ctrl+B to enter extended boot menu...

BootWare password: Not required. Please press Enter to continue.

 

Password recovery capability is disabled.   //如果看到此提示,则表示设备关闭了密码恢复功能。

Note: The current operating device is flash

Enter < Storage Device Operation > to select device.    

===========================<EXTEND-BOOTWARE MENU>===========================

<1> Boot System                        

<2> Enter Serial SubMenu           

<3> Enter Ethernet SubMenu         

<4> File Control                            

<5> Restore to Factory Default Configuration 

<6> Skip Current System Configuration 

<7> BootWare Operation Menu        

<8> Clear Super Password                 

<9> Storage Device Operation            

<0> Reboot                    

===============================================================================

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9): 5  

系统出现如下提示信息,表明已经设置成功。

Because the password recovery capability is disabled, this operation can

cause the configuration files to be deleted, and the system will start up

with factory defaults. Are you sure to continue?[Y/N]Y 

Setting...Done.  

当再次出现BootWare主菜单时,选择<0>,设备开始重新启动。

重启设备后设备恢复出厂配置。


暂无评论

粉丝:19人 关注:3人

你好,如果还能登陆进设备的话,直接在line class aux里面,

改成authentication-mode none即可

暂无评论

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明