一、故障描述:
公司買了兩台交換機 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:
dir
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) 從交換機下載系統檔案:
 
tftp 10.10.10.2 put s5720li-v200r010c00spc600.cc
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