天天看點

H3C S5720交換機系統檔案丢失一直重新開機的解決辦法

一、故障描述:

    公司買了兩台交換機H3C S5120,由于小兄弟沒經驗,把flash:給格式化了,交換機不停的在重新開機,無法進入系統。

二、解決思路:

    1.下載下傳tftp軟體。

    2.從另外一台交換機的flash中下載下傳一份系統檔案。

    3.裝系統檔案上傳緻故障交換機的flash中,重新開機交換機,故障解決。

三.詳細配置過程如下:

1.下載下傳tftp軟體。

 (1)把電腦本地網卡配置:

                  IP位址:10.10.10.2

                 子網路遮罩: 255.255.255.0    

 (2)打開tftp軟體:

    下載下傳的軟體目錄data中已存有交換機的系統檔案(s5720li-v200r010c00spc600.c)

    如果在遇到相同型号的裝置,可省略第2步。直接上傳到故障交換機即可。

2.從另外一台交換機的flash中下載下傳一份系統檔案(s5720li-v200r010c00spc600.cc)。

 (1)檢視另一台交換機flash:

    <HUAWEI>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)從交換機下載下傳系統檔案:

<HUAWEI>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). <HUAWEI>

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 傳回

     1. Set TFTP protocol parameters

     3. Return to ethernet menu

Enter your choice(1-3): 3 

 5)選擇2 下載下傳檔案到flash中

     2. Download file to Flash through ethernet interface

Enter your choice(1-5): 2  Use tftp to download file : s5720li-v200r010c00spc600.cc , please wait for a moment. ........................................................................................................................................................................................................................................................................................................................................................................................... Download file successfully.

 6)選擇5 傳回

    Enter your choice(1-5): 5 

 6)選擇1 設定預設啟動模式

        BootLoad Menu

     1. Boot with default mode

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 密碼:[email protected]

版權聲明:原創作品,如需轉載,請注明出處。否則将追究法律責任

本文轉自 楓葉雲  51CTO部落格,原文連結:http://blog.51cto.com/fengyunshan911/1958631

繼續閱讀