一、故障描述:

    公司买了两台交换机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:

    <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):


 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):  

 

 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):


'.' = 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):

 

 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): 


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):


 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):

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