一、故障描述:
公司买了两台交换机 H3C S5120,由于小兄弟没经验,把 flash: 给格式化了,交换机不停的在重启,无法进入系统。
二、解决思路:
1. 下载 tftp 站群软件。
2. 从另外一台交换机的 flash 中下载一份系统档案。
3. 装系统档案上传致故障交换机的 flash 中,重启交换机,故障解决。
三. 详细配置过程如下:
1. 下载 tftp 站群软件。
连结:http://pan.baidu.com/s/1qYqfsle 密码:751q
(1) 把电脑本地网络卡配置:
IP 地址:10.10.10.2
子网掩码: 255.255.255.0
(2) 开启 tftp 站群软件:
下载的站群软件目录 data 中已存有交换机的系统档案(s5720li-v200r010c00spc600.c)
如果在遇到相同型号的装置,可省略第 2 步。直接上传到故障交换机即可。
2. 从另外一台交换机的 flash 中下载一份系统档案 (s5720li-v200r010c00spc600.cc) 。
(1) 检视另一台交换机 flash:
Directory of flash:/
Idx Attr Size(Byte) Date Time FileName
0 drw- – Aug 23 2016 03:00:52 dhcp
1 drw- – Aug 23 2016 03:00:24 user
2 drw- – Aug 23 2016 03:01:03 logfile
3 drw- – Aug 23 2016 03:00:12 $_install_mod
4 -rw- 836 Aug 23 2016 03:04:07 rr.bak
5 -rw- 836 Aug 23 2016 03:04:07 rr.dat
6 -rw- 28 Aug 23 2016 03:03:55 private-data.txt
7 drw- – Aug 23 2016 03:00:52 localuser
8 -rw- 64,011,164 Dec 15 2016 17:51:28 s5720li-v200r010c00spc600.cc
(2) 配置交换机 VLAN1 IP 为 10.10.10.1:
#interface Vlanif1
#ip address 10.10.10.1 255.255.255.0
(3) 从交换机下载系统档案:
Info: Transfer file in binary mode.
Uploading the file to the remote TFTP server. Please wait…
100%
TFTP: Uploading the file successfully.
64011164 byte(s) sent in 1435 second(s).
3. 将系统档案上传致故障交换机的 flash 中,重启交换机,故障解决。
(1) 机器重启生出现下面介面按 Ctrl + B
INIT: version 2.88 booting
Starting udev
Starting Bootlog daemon: bootlogd.
Populating dev cache
INIT: Entering runlevel: 3ge = 5
Stopping Bootlog daemon: bootlogd.
Wind River Linux 6.0.0.30 localhost console
localhost login: root (automatic login)
login[1922]: root login on ‘console’
Jan 23 2017, 19:21:20
mknod: /dev/mvPP: File exists
BootLoad version : 020a.0001
Backup U-Boot ……………………………………………………. done
Press Ctrl+B or Ctrl+E to enter BootLoad menu: 2
(2)进入下面启动选单:
1)选择 4
Enter your choice(1-8):
BootLoad Menu
1. Boot with default mode
2. Enter serial submenu
3. Enter startup submenu
4. Enter ethernet submenu
5. Enter filesystem submenu
6. Enter password submenu
7. Clear password for console user
8. Reboot
(Press Ctrl+E to enter diag menu)
Enter your choice(1-8): 4
2)选择 4
ETHERNET SUBMENU
1. Update BootROM system
2. Download file to Flash through ethernet interface
3. Upload Configuration file to Ftp through ethernet interface
4. Modify ethernet interface boot parameter
5. Return to main menu
Enter your choice(1-5): 4
3)选择 1,配置下载档案,指定交换机的 IP, 及 tftp 站群服务器也就是电脑的 IP
BOOTLINE SUBMENU
1. Set TFTP protocol parameters
2. Set FTP protocol parameters
3. Return to ethernet menu
Enter your choice(1-3): 1
‘.’ = clear field; ‘-‘ = go to previous field; ‘Ctrl+D’ = quit
Load File name : s5720li-v200r010c00spc600.cc
Switch IP address : 10.10.10.1
Server IP address : 10.10.10.2
Starting to write BOOTLINE into flash … done
4)选择 3 返回
BOOTLINE SUBMENU
1. Set TFTP protocol parameters
2. Set FTP protocol parameters
3. Return to ethernet menu
Enter your choice(1-3): 3
5)选择 2 下载档案到 flash 中
ETHERNET SUBMENU
1. Update BootROM system
2. Download file to Flash through ethernet interface
3. Upload Configuration file to Ftp through ethernet interface
4. Modify ethernet interface boot parameter
5. Return to main menu
Enter your choice(1-5): 2
Use tftp to download file : s5720li-v200r010c00spc600.cc , please wait for a moment.
……………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………….
Download file successfully.
6)选择 5 返回
ETHERNET SUBMENU
1. Update BootROM system
2. Download file to Flash through ethernet interface
3. Upload Configuration file to Ftp through ethernet interface
4. Modify ethernet interface boot parameter
5. Return to main menu
Enter your choice(1-5): 5
6)选择 1 设定预设启动模式
BootLoad Menu
1. Boot with default mode
2. Enter serial submenu
3. Enter startup submenu
4. Enter ethernet submenu
5. Enter filesystem submenu
6. Enter password submenu
7. Clear password for console user
8. Reboot
(Press Ctrl+E to enter diag menu)
Enter your choice(1-8): 1
Now, the current startup file is flash:/s5720li-v200r010c00spc600.cc
Info: Check signature, please wait…………
System total memory is 0x15200000
Start to initialize the LSW …
Initializing the LSW ……………………………………………… done
Initializing netlink ……………………………………………… done
Initializing fast netlink …………………………………………. done
Backup BootLoad ………………………………………………….. done
Backup Kernel ……………………………………………………. done
Backup RamDisk …………………………………………………… done
Stack status : enable
ECM Stack status : run
Initializing FSP task begin …
Initializing DEV module …………………………………………… done
Initializing hardware system ………………………………………. done
Begin to start the system …
Registering IPC and VP callback to platform …………………………. done
Initializing VFS ………………………………. Done
Checking startup system-software …………………………………… done
Reading PAF file …………………………………………………. done
Initializing VOS monitor ……………………….. Done
CFM initialization advance ……………………… done
Initializing PAT ………………………………. Done
Initializing HA ……………………………….. done
VFS registering to HA ………………………….. Done
VRP root begin …
VRP root end
CFG initialization begin ……………………….. done
CFM initialization begin ……………………….. done
CLI initialization begin ……………………….. done
Registering VRP all link command begin …………… Done
Creating task begin …
Creating task end
Task initialization begin …
Task initialization end
ECMM status : run
Cmd registering begin …
Cmd registering end
Task awake begin …
Task awake end
Recover configuration begin …
Recover configuration end
Press ENTER to get started.
Login authentication
Username:admin
Password:
7)启动到输入使用者名称和密码的介面,证明交换机系统恢复完成。输入预设使用者名称和密码登入交换机:
使用者名称:admin
密码:admin@huawei.com