最佳答案
看截图应该是进入命令行了,可能是之前设置了进入系统视图的密码。这个无法根据mac地址计算出来。可以尝试display cu查看配置信息。或者参考一楼的建议,重启,ctrl+b进入bootware菜单,跳过配置文件启动。参考如下:
SMB V5平台的交换机,console密码忘记,且不能恢复出厂设置的处理方法。
1、交换机断电重启
System is starting...
Press Ctrl+D to access BASIC-BOOTWARE MENU
Booting Normal Extend BootWare
The Extend BootWare is self-decompressing.......................Done!
****************************************************************************
* *
* H3C S3110-26TP BootWare, Version 1.10 *
* *
****************************************************************************
Copyright (c) 2004-2014 Hangzhou H3C Technologies Co., Ltd.
Compiled Date : Jun 5 2014 11:34:07
CPU Type : MIPS4kec
CPU L1 Cache : 16KB
CPU Clock Speed : 500MHz
Memory Type : DDR3 SDRAM
Memory Size : 128MB
Memory Speed : 300MHz
BootWare Size : 3MB
Flash Size : 32MB
BootWare Validating...
Press Ctrl+B to enter extended boot menu...
2、根据提示按Ctrl+B
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.
===========================
|<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
3、根据提示输入6,启动时跳过当前配置启动
Enter your choice(0-9): 6
Flag Set Success.
================
|<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
4、根据提示输入0,重启设备
Enter your choice(0-9): 0
System is starting...
Press Ctrl+D to access BASIC-BOOTWARE MENU
Booting Normal Extend BootWare
The Extend BootWare is self-decompressing.......................Done!
****************************************************************************
* *
* H3C S3110-26TP BootWare, Version 1.10 *
* *
****************************************************************************
Copyright (c) 2004-2014 Hangzhou H3C Technologies Co., Ltd.
Compiled Date : Jun 5 2014 11:34:07
CPU Type : MIPS4kec
CPU L1 Cache : 16KB
CPU Clock Speed : 500MHz
Memory Type : DDR3 SDRAM
Memory Size : 128MB
Memory Speed : 300MHz
BootWare Size : 3MB
Flash Size : 32MB
BootWare Validating...
Press Ctrl+B to enter extended boot menu...
Starting to get the main application
file--flash:/s3110_26tp-cmw520-r1105.bin!...................................
.............................................................
The main application file is self-decompressing.............................
....................................................Done!
System application is starting...
Configuration file is skipped.
User interface aux0 is available.
Press ENTER to get started.
5、重启完成敲回车,已经可以登陆交换机
#Apr 26 12:01:48:608 2000 H3C SHELL/4/LOGIN:
Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.1
%Apr 26 12:01:48:747 2000 H3C SHELL/5/SHELL_LOGIN: Console logged in from aux0.
6、通过dir查看交换机的配置文件名称,此处文件名为startup.cfg
Directory of flash:/
0 -rw- 8485 May 07 2000 04:18:19 config.cwmp
1 drw- - Apr 26 2000 12:00:20 logfile
2 -rw- 2074 May 07 2000 04:18:43 startup.cfg
3 -rw- 12636160 Apr 26 2000 13:09:03 s3110_26tp-cmw520-r1105.bin
4 -rw- 151 May 07 2000 04:18:30 system.xml
5 -rw- 2045 May 07 2000 04:18:35 _startup_bak.cfg
6 -rw- 325 Apr 26 2000 19:40:48 22.pub
7 -rw- 324 Apr 26 2000 12:19:59 ssh-x.pub
8 -rw- 2422 Apr 26 2000 12:20:43 https-server.p12
9 drw- - Apr 26 2000 16:38:58 mk
10 -rw- 338 Apr 26 2000 19:50:42 identity.pub
11 -rw- 132 Apr 26 2000 12:34:02 patchstate
12 -rw- 4096 Apr 26 2000 16:27:49 x
29106 KB total (15943 KB free)
7、通过more查看文件的配置,若CONSOLE口配置的是明文,则直接重启设备通过看到的密码登陆。此处显示为密文:password cipher $c$3$H0SRQBiups2lGlycaTSiW4uZgZCEJKJQ,继续按下一步操作
#
version 5.20.99, Release 1105
#
sysname H3C
#
domain default enable system
#
ipv6
#
telnet server enable
#
password-recovery enable
#
acl number 3000
rule 5 deny ip source 192.168.1.0 0.0.0.255 destination 192.168.2.0 0.0.0.255
#
vlan 1
#
vlan 2
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
user-group system
group-attribute allow-guest
#
local-user admin
password cipher $c$3$H0SRQBiups2lGlycaTSiW4uZgZCEJKJQ
authorization-attribute level 3
service-type telnet terminal
service-type web
#
interface NULL0
#
interface Vlan-interface1
ip address 192.168.1.234 255.255.255.0
#
interface Ethernet1/0/1
#
interface Ethernet1/0/2
#
interface Ethernet1/0/3
#
interface Ethernet1/0/4
#
interface Ethernet1/0/5
#
interface Ethernet1/0/6
#
interface Ethernet1/0/7
#
interface Ethernet1/0/8
#
interface Ethernet1/0/9
#
interface Ethernet1/0/10
#
interface Ethernet1/0/11
#
interface Ethernet1/0/12
#
interface Ethernet1/0/13
#
interface Ethernet1/0/14
#
interface Ethernet1/0/15
#
interface Ethernet1/0/16
#
interface Ethernet1/0/17
#
interface Ethernet1/0/18
#
interface Ethernet1/0/19
#
interface Ethernet1/0/20
#
interface Ethernet1/0/21
#
interface Ethernet1/0/22
#
interface Ethernet1/0/23
#
interface Ethernet1/0/24
#
interface GigabitEthernet1/0/25
#
interface GigabitEthernet1/0/26
#
load xml-configuration
#
load tr069-configuration
#
user-interface aux 0
authentication-mode scheme
user-interface vty 0 4
authentication-mode scheme
user-interface vty 5 15
#
return
8、电脑上启动TFTP服务器
9、给交换机配置一个IP地址,此处配置为192.168.1.2
System View: return to User View with Ctrl+Z.
[H3C]int vlan 1
[H3C-Vlan-interface1]ip add 192.168.1.2 24
[H3C-Vlan-interface1]quit
[H3C]quit
10、通过TFTP命令把配置文件输出到电脑上
File will be transferred in binary mode
Sending file to remote TFTP server. Please wait... \
TFTP: 2074 bytes sent in 0 second(s).
File uploaded successfully. //提示输出成功
11、把刚刚输出到电脑上的配置文件startup.cfg用记事本打开
12、把密码改掉(此处改为:明文的admin),并保存
13、把刚才修改后的文件通过TFTP在上传到电脑上,根据提示输入y,把原来的文件覆盖掉
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: 2042 bytes received in 0 second(s)
File downloaded successfully. //提示上传成功
14、再重启路由器,不保存配置
Start to check configuration with next startup configuration file, please wait.........DONE!
This command will reboot the device. Current configuration will be lost, save current configuration? [Y/N]:n //注意这里是输入n
This command will reboot the device. Continue? [Y/N]:y
#Apr 26 12:07:45:150 2000 H3C DEVM/1/REBOOT:
Reboot device by command.
%Apr 26 12:07:45:236 2000 H3C DEVM/5/SYSTEM_REBOOT: System is rebooting now.
Now rebooting, please wait...
System is starting...
Press Ctrl+D to access BASIC-BOOTWARE MENU
Booting Normal Extend BootWare
The Extend BootWare is self-decompressing.......................Done!
****************************************************************************
* *
* H3C S3110-26TP BootWare, Version 1.10 *
* *
****************************************************************************
Copyright (c) 2004-2014 Hangzhou H3C Technologies Co., Ltd.
Compiled Date : Jun 5 2014 11:34:07
CPU Type : MIPS4kec
CPU L1 Cache : 16KB
CPU Clock Speed : 500MHz
Memory Type : DDR3 SDRAM
Memory Size : 128MB
Memory Speed : 300MHz
BootWare Size : 3MB
Flash Size : 32MB
BootWare Validating...
Press Ctrl+B to enter extended boot menu...
Starting to get the main application
file--flash:/s3110_26tp-cmw520-r1105.bin!...................................
.............................................................
The main application file is self-decompressing.............................
....................................................Done!
System application is starting...
User interface aux0 is available.
Press ENTER to get started.
15、根据提示敲回车登陆,输入用户admin
Login authentication
Username:admin
Password:
#Apr 26 12:01:29:470 2000 H3C SHELL/4/LOGIN:
Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.1
%Apr 26 12:01:29:616 2000 H3C SHELL/5/SHELL_LOGIN: admin logged in from aux0.
(0)
默认console无密码,尝试admin,不行就console登录按ctrl+B进入bootware菜单,按6提示skip跳过配置启动,进入后配置一个已知用户
(0)
Booting ... Booting ...image 0 ************************************************************ * * * H3C S5024P BOOTROM, Version 100 * * * ************************************************************ Copyright (c) 2004-2006 Hangzhou H3C Technologies Co., Ltd. All rights Reserved. CPU Type : 8051 CPU Clock Speed : 17MHz Memory Size : 128KB Software Version : S5024P-R0105 The switch MAC is: 000f-e23c-7836 ********************************************************************* * Copyright (c) 2004-2006 Hangzhou H3C Technologies Co., Ltd. * * All rights Reserved. * * Without the owner's prior written consent, * * no decompiling or reverse-engineering shall be allowed. * ********************************************************************* User interface Aux0/0 is available Please press ENTER. <zz5024>
老款机器没有ctrl b按键
那将设备重启信息记录贴出来看下
Booting ... Booting ...image 0 ************************************************************ * * * H3C S5024P BOOTROM, Version 100 * * * ************************************************************ Copyright (c) 2004-2006 Hangzhou H3C Technologies Co., Ltd. All rights Reserved. CPU Type : 8051 CPU Clock Speed : 17MHz Memory Size : 128KB Software Version : S5024P-R0105 The switch MAC is: 000f-e23c-7836 ********************************************************************* * Copyright (c) 2004-2006 Hangzhou H3C Technologies Co., Ltd. * * All rights Reserved. * * Without the owner's prior written consent, * * no decompiling or reverse-engineering shall be allowed. * ********************************************************************* User interface Aux0/0 is available Please press ENTER. <zz5024>
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明