• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

01-基础配置指导

目录

10-BootWare管理配置

本章节下载 10-BootWare管理配置  (356.56 KB)

10-BootWare管理配置


1 BootWare管理配置

注意

进入BootWare后不允许热插拔CF卡。

 

说明

·     独立运行模式和IRF模式下的操作相同,本文以独立运行模式下的操作为例。

·     显示信息的具体参数值请以实际情况为准,文中的举例仅做参考。

 

1.1  简介

1.1.1  BootWare程序文件

BootWare程序文件是设备启动时用来引导应用程序的文件。完整的BootWare包含BootWare基本段和BootWare扩展段。

·     BootWare基本段是指完成系统基本初始化的BootWare,可以实现修改串口参数、升级BootWare等操作。

·     BootWare扩展段具有丰富的人机交互功能,用于接口的初始化,可以实现升级应用程序和引导系统。BootWare扩展段包括扩展段主菜单和扩展段辅助菜单两部分:主菜单用于升级系统启动文件、文件控制、修改系统工作模式等操作,辅助菜单用于查看、搜索设备内存和查看CF卡信息等操作。

BootWare基本段启动后,可以在基本段菜单下加载升级BootWare扩展段。为了阅读和便于理解,如果不做特殊说明,本文中BootWare扩展段主菜单将称为BootWare主菜单。

1.1.2  应用程序文件

系统缺省定义了三个用于启动的应用程序文件:主程序文件、备份程序文件、安全程序文件。当用户在CF卡中加载了这三个应用程序文件时,系统将以此顺序依次选择这三个文件来启动设备,直到设备正常启动为止。如果用户希望改变启动文件,可以参考1.3.4  进入文件控制子菜单

主程序文件、备份程序文件、安全程序文件的缺省文件名、文件类型及启动时的选择顺序如下:

·     主程序文件,缺省文件名为main.bin,文件类型为M,是系统启动缺省使用的文件;

·     备份程序文件,缺省文件名为backup.bin,文件类型为B。当主程序文件启动失败时,系统使用备份程序文件启动;

·     安全程序文件,缺省文件名为secure.bin,文件类型为S。当备份程序文件启动失败时,系统使用安全程序文件启动;如安全程序文件启动失败,系统将提示启动失败信息。目前产品不支持安全程序文件,BootWare主菜单中对安全程序文件的所有操作均不支持。

说明

·     当应用程序文件未指定文件类型时,则为N/A类型;当指定应用程序文件既为主程序文件,又为备用程序文件时,则为M+B类型;

·     仅有类型为M、B的应用程序可以用于系统启动,其他类型的应用程序不会被用于系统启动;

·     存储的应用程序文件名可以在应用程序启动后通过命令行修改;类型为M、B或N/A的应用程序的文件类型可以在BootWare菜单中修改,也可以在应用程序启动后通过命令修改;

·     M、B类型的文件在每个主控板上同时最多存在一个。如:Flash中有一个文件为M+B类型,那么就不可能存在其它的类型为M或者B的文件;若另一个文件的类型被改为B,那么以前的M+B类型的文件就变成M类型的文件了。

 

1.2  进入BootWare基本段菜单

设备上电后,通过串口连接设备,在终端显示信息中出现“Press Ctrl+D to access BASIC-BOOTWARE MENU”的3秒钟之内,键入<Ctrl+D>,系统将进入BootWare基本段;如果未在3秒钟之内键入<Ctrl+D>,系统将直接运行BootWare程序,若此后仍希望进入BootWare基本段,则需要重新启动设备,设备启动过程中再执行相关操作。

DDR2 SDRAM test successful.

Press Ctrl+T to start five-step full RAM test...

Press Ctrl+Y to start nine-step full RAM test...

System is starting...

Press Ctrl+D to access BASIC-BOOTWARE MENU

 

======================<BASIC-BOOTWARE MENU(Ver 1.20)>=======================

|<1> Modify Serial Interface Parameter                                     |

|<2> Update Extend BootWare                                                |

|<3> Update Full BootWare                                                  |

|<4> Boot Extend BootWare                                                  |

|<5> Boot Backup Extend BootWare                                           |

|<0> Reboot                                                                |   

============================================================================   

Enter your choice(0-5):

表1-1 BootWare基本段菜单项解释

菜单项

解释

<1> Modify Serial Interface Parameter

修改串口参数

<2> Update Extend BootWare

升级BootWare扩展段

<3> Update Full BootWare

升级完整的BootWare,包括BootWare基本段和BootWare扩展段

<4> Boot Extend BootWare

启动BootWare扩展段

<5> Boot Backup Extend BootWare

启动备份的BootWare扩展段

<0> Reboot

重启设备

 

1.2.1  修改串口参数

在BootWare基本段菜单项中键入<1>,回车后,可以设置串口(Console口)的波特率。

Enter your choice(0-5): 1

===============================<BAUDRATE SET>===============================   

|Note:'*'indicates the current baudrate                                    |   

|     Change The HyperTerminal's Baudrate Accordingly                      |   

|---------------------------<Baudrate Available>---------------------------|   

|<1> 9600(Default)*                                                        |   

|<2> 19200                                                                 |   

|<3> 38400                                                                 |   

|<4> 57600                                                                 |   

|<5> 115200                                                                |    

|<0> Exit                                                                  |   

============================================================================   

Enter your choice(0-5):

说明

·     通过BootWare菜单使用Console口加载主机程序时,应注意正确设置PC端串口的波特率、数据位、奇偶校验位、停止位和数据流控制等属性,否则超级终端将无响应。关于PC端串口属性设置的详细介绍,请参见“基础配置指导”中的“登录交换机”。

·     单板Console口的默认波特率是9600bps。用户修改了Console口波特率后,到下次重启时,又会重新恢复到默认波特率9600bps。

 

1.2.2  升级BootWare扩展段

在BootWare基本段菜单项中键入<2>,回车后,将仅升级BootWare扩展段。当BootWare扩展段损坏时,可以在基本段执行该操作来升级BootWare扩展段。

Enter your choice(0-5): 2

Please Start To Transfer File, Press <Ctrl+C> To Exit.

Waiting ...CCCCC

Download successfully!

329344 bytes downloaded!

Updating Extend BootWare? [Y/N]Y

Updating Extend BootWare...............Done!

1.2.3  升级完整的BootWare

在BootWare基本段菜单项中键入<3>,回车后,将升级完整的BootWare。

Enter your choice(0-5): 3

Please Start To Transfer File, Press <Ctrl+C> To Exit.

Waiting ...CCCCC

Download successfully!

329344 bytes downloaded!

Updating Basic BootWare? [Y/N]Y

Updating Basic BootWare...............Done!

Updating Extend BootWare? [Y/N]Y

Updating Extend BootWare...............Done!

1.2.4  启动BootWare扩展段

在BootWare基本段菜单项中键入<4>,回车后,设备将启动BootWare扩展段。

Enter your choice(0-5): 4

Booting Normal Extend BootWare

The Extend BootWare is self-decompressing................

Done!

 

****************************************************************************

*                                                                          *

*                   H3C S12500 BootWare, Version 1.22                      *

*                                                                          *

****************************************************************************

Copyright (c) 2004-2012 Hangzhou H3C Technologies Co., Ltd.

 

Compiled Date       : Dec  3 2012

CPU Type            : MPC8548E

CPU L1 Cache        : 32KB

CPU L2 Cache        : 512KB

CPU Clock Speed     : 1000MHz

Memory Type         : DDR2 SDRAM

Memory Size         : 1024MB

Memory Speed        : 400MHz

BootWare Size       : 4MB

Flash Size          : 128MB

cfa0 Size           : 247MB

NVRAM Size          : 1024KB

BASIC CPLD Version  : 003

EXTEND CPLD Version : 003

PCB Version         : Ver.B

 

 

Board self testing...........................

Board steady testing...                           [ PASS ]

Board SlotNo...                                   [   1  ]

Subcard exist testing...                          [ PASS ]

DX246  testing...                                 [ PASS ]

PHY88E1111  testing...                            [ PASS ]

CPLD1 testing...                                  [ PASS ]

CPLD2 testing...                                  [ PASS ]

NS16550 register testing...                       [ PASS ]

The default switch's Mac address...               [00:e0:fc:00:95:12]

CF Card testing...                                [ PASS ]

BootWare Validating...

Press Ctrl+B to enter extended boot menu...

BootWare password: Not required. Please press Enter to continue.

1.2.5  启动备份的BootWare扩展段

在BootWare基本段菜单项中键入<5>,回车后,设备将启动备份的BootWare扩展段。BootWare的备份操作请参见1.3.6  进入BootWare操作子菜单

Enter your choice(0-5): 5

Booting Backup Extend BootWare

The Extend BootWare is self-decompressing................

Done!

 

****************************************************************************

*                                                                          *

*                   H3C S12500 BootWare, Version 1.22                      *

*                                                                          *

****************************************************************************

Copyright (c) 2004-2012 Hangzhou H3C Technologies Co., Ltd.

 

Compiled Date       : Dec  3 2012

CPU Type            : MPC8548E

CPU L1 Cache        : 32KB

CPU L2 Cache        : 512KB

CPU Clock Speed     : 1000MHz

Memory Type         : DDR2 SDRAM

Memory Size         : 1024MB

Memory Speed        : 400MHz

BootWare Size       : 4MB

Flash Size          : 128MB

cfa0 Size           : 247MB

NVRAM Size          : 1024KB

BASIC CPLD Version  : 003

EXTEND CPLD Version : 003

PCB Version         : Ver.B

 

 

Board self testing...........................

Board steady testing...                           [ PASS ]

Board SlotNo...                                   [   1  ]

Subcard exist testing...                          [ PASS ]

DX246  testing...                                 [ PASS ]

PHY88E1111  testing...                            [ PASS ]

CPLD1 testing...                                  [ PASS ]

CPLD2 testing...                                  [ PASS ]

NS16550 register testing...                       [ PASS ]

The default switch's Mac address...               [00:e0:fc:00:95:12]

CF Card testing...                                [ PASS ]

BootWare Validating...

Press Ctrl+B to enter extended boot menu...

BootWare password: Not required. Please press Enter to continue.

1.3  进入BootWare扩展段菜单

设备上电后,如果未选择进入基本段,则设备会提示是否选择进入BootWare扩展段主菜单,终端屏幕上显示如下信息:

DDR2 SDRAM test successful.

Press Ctrl+T to start five-step full RAM test...

Press Ctrl+Y to start nine-step full RAM test...

System is starting...

Press Ctrl+D to access BASIC-BOOTWARE MENU

Booting Normal Extend BootWare

The Extend BootWare is self-decompressing................

Done!

 

****************************************************************************

*                                                                          *

*                   H3C S12500 BootWare, Version 1.22                      *

*                                                                          *

****************************************************************************

Copyright (c) 2004-2012 Hangzhou H3C Technologies Co., Ltd.

 

Compiled Date       : Dec  3 2012

CPU Type            : MPC8548E

CPU L1 Cache        : 32KB

CPU L2 Cache        : 512KB

CPU Clock Speed     : 1000MHz

Memory Type         : DDR2 SDRAM

Memory Size         : 1024MB

Memory Speed        : 400MHz

BootWare Size       : 4MB

Flash Size          : 128MB

cfa0 Size           : 247MB

NVRAM Size          : 1024KB

BASIC CPLD Version  : 003

EXTEND CPLD Version : 003

PCB Version         : Ver.B

 

 

Board self testing...........................

Board steady testing...                           [ PASS ]

Board SlotNo...                                   [   1  ]

Subcard exist testing...                          [ PASS ]

DX246  testing...                                 [ PASS ]

PHY88E1111  testing...                            [ PASS ]

CPLD1 testing...                                  [ PASS ]

CPLD2 testing...                                  [ PASS ]

NS16550 register testing...                       [ PASS ]

The default switch's Mac address...               [00:e0:fc:00:95:12]

CF Card testing...                                [ PASS ]

BootWare Validating...

Press Ctrl+B to enter extended boot menu...

BootWare password: Not required. Please press Enter to continue.

在出现“Press Ctrl+B to enter extended boot menu...”的3秒钟之内,键入<Ctrl+B>,系统将进入BootWare扩展段主菜单,否则系统将进入程序解压过程;若程序进入解压过程后再希望进入BootWare扩展段,则需要重新启动设备,设备启动过程中再执行相关操作。

Password recovery capability is enabled.

Note: The current operating device is cfa0

Enter < Storage Device Operation > to select device.

 

===========================<EXTEND-BOOTWARE MENU>===========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> BootWare Operation Menu                                               |

|<7> Clear Super Password                                                  |

|<8> Storage Device Operation                                              |

|<9> Product Special Operation                                             |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9):

表1-2 BootWare扩展段菜单项解释

菜单项

解释

<1> Boot System

启动应用程序

<2> Enter Serial SubMenu

进入串口子菜单

<3> Enter Ethernet SubMenu

进入以太网口子菜单

<4> File Control

进入文件控制子菜单

<5> Restore to Factory Default Configuration

恢复出厂配置启动

使能密码恢复功能后不支持该操作

<6> BootWare Operation Menu

进入BootWare操作子菜单

<7> Clear Super Password

清除Console口认证密码

关闭密码恢复功能后不支持该操作

<8> Storage Device Operation

进入存储介质操作子菜单

<9> Product Special Operation

进入产品专用子菜单

<0> Reboot

重启设备

 

说明

关于密码恢复功能的详细介绍,请参见1.5  配置密码恢复功能

 

1.3.1  启动应用程序

在Bootware主菜单中,键入<1>,回车后,系统启动应用程序。

Enter your choice(0-9): 1

Starting to get the main application file--cfa0:/s12500-test.bin!.......

..........................................................

The main application file is self-decompressing.............................

............................................................................

............................................................................

............................................................................

............................................................................

............................................................................

............................................................................

............................................................................

............................................................................

............................................................................

............................................................................

..............................................................

Done!

System application is starting...

1.3.2  进入串口子菜单

通过该子菜单可以实现升级应用程序,修改串口速率等操作。

在BootWare主菜单中,键入<2>,回车后,系统进入串口子菜单:

===========================<Enter Serial SubMenu>==========================

|Note:the operating device is cfa0                                         |

|<1> Download Application Program To SDRAM And Run                         |

|<2> Update Main Application File                                          |

|<3> Update Backup Application File                                        |

|<4> Update Secure Application File                                        |

|<5> Update User Private File                                              |

|<6> Modify Serial Interface Parameter                                     |

|<0> Exit To Main Menu                                                     |

==========================================================================

Enter your choice(0-6):

表1-3 串口子菜单项解释

菜单项

解释

<1> Download Application Program To SDRAM And Run

加载应用程序到SDRAM并且运行

关闭密码恢复功能后不支持该操作

<2> Update Main Application File

加载主用程序文件到当前存储介质

新加载的程序文件将自动被设置为M类型,原带有M类型的程序文件中的该属性将被取消

<3> Update Backup Application File

加载备用程序文件到当前存储介质

新加载的程序文件将自动被设置为B类型,原带有B类型的程序文件中的该属性将被取消

<4> Update Secure Application File

加载安全程序文件到当前存储介质

<5> Update User Private File

加载用户文件到当前存储介质

关闭密码恢复功能后不支持该操作

<6> Modify Serial Interface Parameter

进入修改串口参数子菜单

<0> Exit To Main Menu

返回到上一级目录

 

在串口子菜单中,加载文件前需要先设置串口参数,操作步骤如下。

(1)     键入<6>,回车后,系统进入串口参数设置界面:

===============================<BAUDRATE SET>=============================

|Note:'*'indicates the current baudrate                                    |

|     Change The HyperTerminal's Baudrate Accordingly                      |

|---------------------------<Baudrate Available>---------------------------|

|<1> 9600(Default)*                                                        |

|<2> 19200                                                                 |

|<3> 38400                                                                 |

|<4> 57600                                                                 |

|<5> 115200                                                                |

|<0> Exit                                                                  |

==========================================================================

Enter your choice(0-5):1

(2)     用户根据实际情况,选择相应的程序文件加载方式。当需要加载主用程序文件时,可在以太网口子菜单中键入<2>,回车后,即将主用程序文件下载至设备中,终端显示如下信息:

Enter your choice(0-6):2

Loading...................................................................

..........................................................................

..........................................................................

..................................Done!

47979456 bytes downloaded!

Updating File cfa0:/test.bin..............................................

..........................................................................

..........................................................................

...............................................

..Done!

1.3.3  进入以太网口子菜单

在BootWare主菜单中,键入<3>,回车后,系统进入以太网口子菜单:

==========================<Enter Ethernet SubMenu>=========================

|Note:the operating device is cfa0                                         |

|<1> Download Application Program To SDRAM And Run                         |

|<2> Update Main Application File                                          |

|<3> Update Backup Application File                                        |

|<4> Update Secure Application File                                        |

|<5> Update User Private File                                              |

|<6> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

|<Ensure The Parameter Be Modified Before Downloading!>                    |

==========================================================================

Enter your choice(0-6):

表1-4 以太网口子菜单项解释

菜单项

解释

<1> Download Application Program To SDRAM And Run

加载应用程序到SDRAM并且运行

关闭密码恢复功能后不支持该操作

<2> Update Main Application File

加载主用程序文件到当前存储介质

新加载的程序文件将自动被设置为M类型,原带有M类型的程序文件中的该属性将被取消

<3> Update Backup Application File

加载备用程序文件到当前存储介质

新加载的程序文件将自动被设置为B类型,原带有B类型的程序文件中的该属性将被取消

<4> Update Secure Application File

加载安全程序文件到当前存储介质

<5> Update User Private File

加载用户文件到当前存储介质

关闭密码恢复功能后不支持该操作

<6> Modify Ethernet Parameter

进入修改以太网参数的子菜单

<0> Exit To Main Menu

返回到上一级目录

 

在以太网口子菜单中,加载文件前需要先设置以太网口参数,操作步骤如下。

(1)     键入<6>,回车后,进入以太网口参数设置界面,修改以太网口相关参数:

Enter your choice(0-6):6

==========================<ETHERNET PARAMETER SET>=========================

|Note:       '.' = Clear field.                                            |

|            '-' = Go to previous field.                                   |

|         Ctrl+D = Quit.                                                   |

==========================================================================

Protocol (FTP or TFTP) :TFTP

Load File Name         :

                       :test.bin

Target File Name       :

                       :test.bin

Server IP Address      :192.168.2.26

Local IP Address       :192.168.2.1

Gateway IP Address     :0.0.0.0

表1-5 以太网参数设置说明

显示

说明

'.' = Clear field

快捷键:“.”表示清除该项设置

'-' = Go to previous field

快捷键:“-”表示返回到上一个设置项

Ctrl+D = Quit

快捷键:表示退出参数设置界面

Protocol (FTP or TFTP)

使用的传输协议,可以为FTP或者TFTP

Load File Name

下载文件名,要与下载的实际文件名一致

Target File Name

存储的目标文件名。缺省情况下与服务器端文件名一致

Server IP Address

TFTP/FTP服务器的IP地址。需要设置掩码请使用冒号“:”格开,如:192.168.2.26:24

Local IP Address

本地IP地址,为TFTP/FTP客户端设置的IP地址

Gateway IP Address

网关IP地址。当与服务器不在同一网段时需要配置网关地址。

FTP User Name

FTP用户名,传输协议为TFTP时,无此选项

FTP User Password

FTP用户密码,传输协议为TFTP时,无此选项

 

(2)     用户根据实际情况,选择相应的程序文件加载方式。当需要加载主用程序文件时,可在以太网口子菜单中键入<2>,回车后,即将主用程序文件下载至设备中,终端显示如下信息:

Enter your choice(0-6):2

Loading...................................................................

..........................................................................

..........................................................................

..................................Done!

47979456 bytes downloaded!

Updating File cfa0:/test.bin..............................................

..........................................................................

..........................................................................

...............................................

..Done!

1.3.4  进入文件控制子菜单

在BootWare主菜单中,键入<4>,回车后,系统进入文件控制子菜单。通过这个菜单可以查看存储介质中保存的文件显示类型、修改文件名、删除文件等操作,提示信息如下:

Enter your choice(0-9): 4

===============================<File CONTROL>=============================

|Note:the operating device is cfa0                                         |

|<1> Display All File(s)                                                   |

|<2> Set Application File type                                             |

|<3> Delete File                                                           |

|<0> Exit To Main Menu                                                     |

==========================================================================

Enter your choice(0-3):

(1)     在文件控制子菜单中,键入<1>,回车后,查看设备当前存储介质路径下的文件信息:

Enter your choice(0-3): 1

 

Display all file(s) in cfa0:

 'M' = MAIN      'B' = BACKUP      'S' = SECURE      'N/A' = NOT ASSIGNED

============================================================================

|NO. Size(B)   Time                 Type   Name                            |

|1   5602      Jun/03/2012 22:06:02 N/A    cfa0:/test.cfg                  |

|2   4714356   Jun/03/2012 19:11:10 N/A    cfa0:/logfile/logfile1.log      |

|3   936158    Jun/03/2012 19:26:00 N/A    cfa0:/diaglog/diagfile1.log     |

|4   4196112   Jun/03/2012 14:59:16 N/A    cfa0:/info.txt                  |

|5   53538808  Jun/03/2012 14:36:12 M      cfa0:/s12500-test.bin       |

|6   57979456  Oct/04/2012 02:14:54 N/A    cfa0:/test.bin                  |

|7   3         Jun/03/2012 14:57:04 N/A    cfa0:/a.txt                     |

|8   6425      Jun/03/2012 16:15:22 N/A    cfa0:/startup.cfg               |

|9   717220    Jun/03/2012 19:10:14 N/A    cfa0:/12500_mr.btw              |

============================================================================

(2)     在文件控制子菜单中,键入<2>,回车后,系统进入设置文件属性菜单,可以根据需要来选择修改对应文件的属性,比如选择test.bin作为下次备用启动文件,设备举例如下。

Enter your choice(0-3): 2

 

 'M' = MAIN      'B' = BACKUP      'S' = SECURE      'N/A' = NOT ASSIGNED

==========================================================================

|NO. Size(B)   Time                 Type   Name                             |

|1   53538808  Jun/03/2012 14:36:12 M      cfa0:/s12500-test.bin        |

|2   57979456  Oct/04/2012 02:14:54 N/A    cfa0:/test.bin                   |

|0   Exit                                                                   |

==========================================================================

Enter file No:2

Modify the file attribute:

==========================================================================

|<1> +Main                                                                 |

|<2> -Main                                                                 |

|<3> +Backup                                                               |

|<4> -Backup                                                               |

|<0> Exit                                                                  |

==========================================================================

Enter your choice(0-4):

属性选择界面中,“+Main”表示为被选定文件添加主程序文件属性;“-Main”表示为被选定文件取消主程序文件属性;“+Backup”表示为被选定文件添加备用程序文件属性;“-Backup”表示为被选定文件取消备用程序文件属性。将test.bin设置为备用启动文件,选择<3>,回车后,系统提示如下,表示设置成功:

Enter your choice(0-4):3

Set the file attribute success!

(3)     在文件控制子菜单中,键入<3>,回车后,可以对设备存储介质中的文件进行删除操作。

Enter your choice(0-3): 3

 

Deleting the file in cfa0:

 'M' = MAIN      'B' = BACKUP      'S' = SECURE      'N/A' = NOT ASSIGNED

============================================================================

|NO. Size(B)   Time                 Type   Name                            |

|1   5602      Jun/03/2012 22:06:02 N/A    cfa0:/test.cfg                  |

|2   4714356   Jun/03/2012 19:11:10 N/A    cfa0:/logfile/logfile1.log      |

|3   936158    Jun/03/2012 19:26:00 N/A    cfa0:/diaglog/diagfile1.log     |

|4   4196112   Jun/03/2012 14:59:16 N/A    cfa0:/info.txt                  |

|5   53538808  Jun/03/2012 14:36:12 M      cfa0:/s12500-test.bin       |

|6   57979456  Oct/04/2012 02:14:54 N/A    cfa0:/test.bin                  |

|7   3         Jun/03/2012 14:57:04 N/A    cfa0:/a.txt                     |

|8   6425      Jun/03/2012 16:15:22 N/A    cfa0:/startup.cfg               |

|9   717220    Jun/03/2012 19:10:14 N/A    cfa0:/12500_mr.btw              |

============================================================================

Enter file No:

输入要删除文件的编号,回车后,系统提示如下,表示删除成功:

Enter file No:4

The file you selected is cfa0:/info.txt,Delete it? [Y/N]Y

Deleting...Done!

注意

设备上的private-data.txt文件是与配置文件相关的重要文件,由设备启动后修改并保存配置文件时自动生成,只能存放在Flash中。关闭密码恢复功能后,在BootWare中不支持对其进行删除和替换操作。

 

1.3.5  恢复出厂配置启动

注意

·     使能密码恢复功能后不支持该操作。

·     关闭密码恢复功能后执行该操作,会删除设备存储介质中指定的下次启动配置文件。

 

在BootWare主菜单中,键入<5>,回车后,系统会恢复出厂设置并以空配置启动。

·     使能密码恢复功能后设置该项时的显示如下:

Enter your choice(0-9): 5

Password recovery capability is enabled. To perform this operation, first

disable the password recovery capability using the undo password-recovery

enable command in CLI.

·     关闭密码恢复功能后设置该项时的显示如下:

Enter your choice(0-9): 5

Because the password recovery capability is disabled, this operation can

cause the configuration files to be deleted, and the system will start up

with factory defaults. Are you sure to continue?[Y/N]Y

Setting...Done.

1.3.6  进入BootWare操作子菜单

在BootWare主菜单中,键入<6>,回车后,系统进入BootWare操作子菜单目录,可以执行BootWare的升级操作。

Enter your choice(0-9): 6

 

=========================<BootWare Operation Menu>==========================

|Note:the operating device is cfa0                                         |

|<1> Backup Full BootWare                                                  |

|<2> Restore Full BootWare                                                 |

|<3> Update BootWare By Serial                                             |

|<4> Update BootWare By Ethernet                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-4):

表1-6 BootWare操作子菜单项解释

菜单项

解释

<1> Backup Full BootWare

备份完整BootWare

<2> Restore Full BootWare

恢复完整BootWare

<3> Update BootWare By Serial

通过串口升级BootWare

<4> Update BootWare By Ethernet

通过以太网口升级BootWare

<0> Exit To Main Menu

返回到上一级目录

 

(1)     在BootWare操作子菜单中,键入<1>,回车后,备份设备的BootWare,根据实际需要,您可以选择是否备份BootWare基本段或BootWare扩展段。如果设备的BootWare基本段或者BootWare扩展段损坏,可以通过备份的BootWare进行恢复操作。

Enter your choice(0-4): 1

Will you backup the Basic BootWare? [Y/N]Y

Begin to backup the Basic BootWare..Done!

Will you backup the Extend BootWare? [Y/N]Y

Begin to backup the Extend BootWare.Done!

(2)     在BootWare操作子菜单中,键入<2>,回车后,恢复设备的BootWare,根据实际需要,您可以选择是否通过备份的BootWare覆盖当前的BootWare来恢复BootWare基本段或BootWare扩展段。

Enter your choice(0-4): 2

Will you restore the Basic BootWare? [Y/N]Y

Begin to restore Normal Basic BootWare..Done!

Will you restore the Extend BootWare? [Y/N]Y

Begin to restore Normal Extend BootWare.Done!

(3)     在BootWare操作子菜单中,键入<3>,回车后,进入BootWare串口操作子菜单。

Enter your choice(0-4):3

====================<BOOTWARE OPERATION SERIAL SUB-MENU>====================

|<1> Update Full BootWare                                                  |

|<2> Update Extend BootWare                                                |

|<3> Update Basic BootWare                                                 |

|<4> Modify Serial Interface Parameter                                     |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-4):4

表1-7 BootWare串口操作子目录菜单项解释

菜单项

解释

<1> Update Full BootWare

通过串口升级完整BootWare

<2> Update Extend BootWare

通过串口升级BootWare扩展段

<3> Update Basic BootWare

通过串口升级BootWare基本段

<4> Modify Serial Interface Parameter

修改串口参数

<0> Exit To Main Menu

返回到上一级目录

 

(4)     在BootWare操作子菜单中,键入<4>,回车后,进入BootWare以太网口操作子菜单。

Enter your choice(0-4):4

===================<BOOTWARE OPERATION ETHERNET SUB-MENU>===================

|<1> Update Full BootWare                                                  |

|<2> Update Extend BootWare                                                |

|<3> Update Basic BootWare                                                 |

|<4> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-4):

表1-8 BootWare以太网口操作子目录菜单项解释

菜单项

解释

<1> Update Full BootWare

通过以太网口升级完整BootWare

<2> Update Extend BootWare

通过以太网口升级BootWare扩展段

<3> Update Basic BootWare

通过以太网口升级BootWare基本段

<4> Modify Ethernet Parameter

修改以太网口参数

<0> Exit To Main Menu

返回到上一级目录

 

1.3.7  清除Console口认证密码

在BootWare主菜单中,键入<7>,回车并重启设备后,系统将清除设备上Console口认证密码。关于Console口认证密码的详细介绍,请参见“基础配置指导”中的“登录设备”。

说明

·     关闭密码恢复功能后不支持该操作。

·     清除设备上Console口认证密码操作,每次设置后,仅第一次设备重启后生效,退出Console口登录界面并再执行登录操作时或者再次启动设备时,系统仍会执行Console口登录认证密码的配置。

 

===========================<EXTEND-BOOTWARE MENU>===========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> BootWare Operation Menu                                               |

|<7> Clear Super Password                                                  |

|<8> Storage Device Operation                                              |

|<9> Product Special Operation                                             |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9): 7

Clear Application Password Success!

1.3.8  进入存储介质操作子菜单

在BootWare主菜单中,键入<8>,回车后,系统进入存储介质操作子菜单。

===========================<EXTEND-BOOTWARE MENU>===========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> BootWare Operation Menu                                               |

|<7> Clear Super Password                                                  |

|<8> Storage Device Operation                                              |

|<9> Product Special Operation                                             |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9): 8

 

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

表1-9 存储介质操作目录菜单项解释

菜单项

解释

<1> Display All Available Nonvolatile Storage Device(s)

查看设备上所有的存储介质信息

<2> Set The Operating Device

设置当前操作的存储介质

<3> Set The Default Boot Device

设置缺省情况下设备启动时采用的存储介质

<0> Exit To Main Menu

返回到上一级目录

 

1.3.9  进入产品专用子菜单

在BootWare主菜单中,键入<9>,回车后,系统进入产品专用子菜单:

Enter your choice(0-9): 9

========================<PRODUCT SPECIAL OPERATION>=========================

|<1> Modify Chassis ID Operation                                           |

|<2> Modify Working Mode                                                   |

|<3> Modify PCL Key                                                        |

|<4> Skip Current System Configuration                                     |

|<0> Exit To Main Menu                                                     |

============================================================================

表1-10 产品专用子菜单项解释

菜单项

解释

<1> Modify Chassis ID Operation

修改设备成员编号

关闭密码恢复功能后不支持该操作

<2> Modify Working Mode

修改系统工作模式

<3> Modify PCL Key

修改PCL Key菜单,用户可以通过该菜单修改ACL规则长度

<4> Skip Current System Configuration

忽略系统当前配置文件,该选项将使设备下次加载主机软件时,忽略配置文件中的所有配置。

设置该选项后,仅第一次设备重启后生效,再次启动时设备仍会以下次启动配置文件启动

关闭密码恢复功能后不支持该操作

<0> Exit To Main Menu

返回上一级目录

 

1. 修改设备成员编号

(1)     在产品专用子菜单中,键入<1>,回车后,进入修改设备成员编号菜单:

Enter your choice(0-4): 1

==============================<CHASSIS ID SET>==============================

| Note:'*'indicates the current chassis ID                                 |

|      Change The Chassis ID Accordingly                                   |

|-------------------------<Chassis ID Available>---------------------------|

|<1> 0*                                                                    |

|<2> 1                                                                     |

|<3> 2                                                                     |

|<4> 3                                                                     |

|<5> 4                                                                     |

|<0> Exit                                                                  |

============================================================================

(2)     选择修改设备成员编号,其中选项值“0”代表将设备切换到独立运行模式,选项值“1”、“2”、“3”和“4”代表将设备切换到IRF模式下,并将设备的成员编号设置为该选项值,“*”代表当前设备的成员编号。关于设备运行模式的详细介绍,请参见“IRF配置指导”中的“IRF”。关于成员设备ID的详细介绍,请参见“IRF配置指导”中的“IRF”。

Enter your choice(0-5): 3

Chassis ID has been changed to 2.

The current chassis ID is 2.

2. 修改系统工作模式

(1)     在产品专用子菜单中,键入<2>,回车后,可以修改系统工作模式:

Enter your choice(0-4):2

=============================<WORKING MODE SET>=============================

|Note:'*'indicates the current working mode                                |

|     Change The Working Mode Accordingly                                  |

|-------------------------<Working Modes Available>------------------------|

|<1> Standard Mode*                                                        |

|<2> BridgeE Mode                                                          |

|<3> RouteE Mode                                                           |

|<4> Advance Mode                                                          |

|<5> Configurable Mode                                                     |

|<0> Exit                                                                  |

============================================================================

(2)     选择对应的系统工作模式,“*”代表当前系统工作模式。关于系统工作模式的详细介绍,请参见“基础配置指导”中的“设备管理”。

Enter your choice(0-5): 2

=============================<WORKING MODE SET>=============================

|Note:'*'indicates the current working mode                                |

|     Change The Working Mode Accordingly                                  |

|-------------------------<Working Modes Available>------------------------|

|<1> Standard Mode                                                         |

|<2> BridgeE Mode*                                                         |

|<3> RouteE Mode                                                           |

|<4> Advance Mode                                                          |

|<5> Configurable Mode                                                     |

|<0> Exit                                                                  |

============================================================================

Enter your choice(0-5):

3. 修改PCL Key菜单

(1)     在产品专用子菜单中,键入<3>,回车后,进入修改PCL Key菜单:

Enter your choice(0-4): 3

===============================<PCL KEY SET>================================

|Note:'*'indicates the current PCL Key                                     |

|     Change The PCL Key Accordingly                                       |

|---------------------------<PCL Key Available>----------------------------|

|<1> IPv6 disable and advanced mode*                                       |

|<2> IPv6 disable and standard mode                                        |

|<3> IPv6 enable and advanced mode                                         |

|<4> IPv6 enable and standard mode                                         |

|<0> Exit                                                                  |

============================================================================

Enter your choice(0-4):

(2)     选择修改对应的模式,“*”代表当前模式。

表1-11 不同模式对应的命令配置项

模式名称

对应的命令配置项

<1> IPv6 disable and advanced mode

同时配置acl ipv6 disableacl mode advanced

<2> IPv6 disable and standard mode

同时配置acl ipv6 disableacl mode standard

<3> IPv6 enable and advanced mode

同时配置acl ipv6 enableacl mode advanced

<4> IPv6 enable and standard mode

同时配置acl ipv6 enableacl mode standard

 

缺省情况下,设备选择的模式为“IPv6 disable and advanced mode”。用户可以通过选择不同的模式来修改ACL规则长度,详情请参见acl ipv6 { enable | disable }和acl mode { advanced | standard }命令的介绍(“ACL和QoS命令参考”中的“ACL”)。

Enter your choice(0-4): 2

===============================<PCL KEY SET>================================

|Note:'*'indicates the current PCL Key                                     |

|     Change The PCL Key Accordingly                                       |

|---------------------------<PCL Key Available>----------------------------|

|<1> IPv6 disable and advanced mode                                        |

|<2> IPv6 disable and standard mode*                                       |

|<3> IPv6 enable and advanced mode                                         |

|<4> IPv6 enable and standard mode                                         |

|<0> Exit                                                                  |

============================================================================

Enter your choice(0-4):

1.3.10  进入BootWare扩展段辅助菜单

在BootWare主菜单中,键入<Ctrl+Z>,回车后,系统将直接进入BootWare扩展段辅助菜单:

==========================<EXTEND-ASSISTANT MENU>===========================

|<1> Display Memory                                                        |

|<2> Search Memory                                                         |

|<3> Display CF card info                                                  |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

(1)     在辅助菜单中,键入<1>,回车后,可以查看设备指定的内存信息。

Enter your choice(0-3): 1

Info: Press Ctrl+C to abort or return to EXTEND-ASSISTANT MENU.

Info: only support hexadecimal input.

Enter memory address:80

Enter memory length:2

00000080: 55555555 55555555    UUUUUUUU

(2)     在辅助菜单中,键入<2>,回车后,可以搜索设备指定的内存信息。

Enter your choice(0-3): 2

Info: Press Ctrl+C to abort or return to EXTEND-ASSISTANT MENU.

Info: only support hexadecimal input.

Enter start address:80

Enter end address:90

Enter the value to search for:55555555

00000080: 55555555 55555555 55555555 55555555    UUUUUUUUUUUUUUUU

(3)     在辅助菜单中,键入<3>,回车后,可以查看设备上的CF卡信息。

Enter your choice(0-3): 3

CF card 0:

Model: CactusFlashCard

Firm: 23-11-06

Ser#: KC203       00144608

Capacity: 247.5 MB

Current CF Card 0:

说明

·     当输入的内存起始地址不在内存空间范围内时,设备会提示“Invalid address.”。

·     当输入的内存结束地址小于内存起始地址或者超出内存空间时,设备会提示“Invalid address.”。

·     当输入的内存起始地址加上长度超出内存空间时,设备会提示“Invalid length”。

·     如果没有输入待搜索的内存值直接回车,则设备会提示“Invalid value.”。

·     如果没有找到待搜索的值,则设备会提示“The value not fount.”。

·     设备仅支持4字节模式的查找和显示,当输入的内存起始地址和内存结束地址之间不满足4字节对齐时,将强制调整为4字节对齐格式。搜索内存信息时也仅支持以4字节为单位进行查找。

 

1.4  BootWare快捷键

为便于用户对常用功能进行操作,系统提供了如下快捷键。

表1-12 BootWare快捷键

快捷键

BootWare中所在提示信息

功能

<Ctrl+B>

Press Ctrl+B to enter extended boot menu…

设备启动时进入BootWare扩展段

<Ctrl+C>

Please Start To Transfer File, Press <Ctrl+C> To Exit

停止文件加载操作并退出当前操作界面

Info: Press Ctrl+C to abort or return to EXTEND-ASSISTANT MENU

返回扩展段辅助菜单或在显示结果过程中中止显示并返回扩展段辅助菜单

<Ctrl+D>

Press Ctrl+D to access BASIC-BOOTWARE MENU

设备启动时进入BootWare基本段

Ctrl+D = Quit

表示退出参数设置页面

<Ctrl+F>

Ctrl+F: Format File System

格式化当前操作的储存介质

<Ctrl+T>

Press Ctrl+T to start five-step full RAM test…

五步法内存测试

<Ctrl+Y>

Press Ctrl+Y to start nine-step full RAM test…

九步法内存测试

<Ctrl+Z>

Ctrl+Z: Access EXTEND-ASSISTANT MENU

在扩展段主菜单键入时可以进入扩展段辅助菜单

 

说明

·     关闭密码恢复功能后,如果当前操作的存储介质为Flash,则不允许执行格式化操作。

·     内存测试主要用于技术人员定位内存故障或检测内存状况时使用,建议您不要自行操作。

 

1.5  配置密码恢复功能

配置密码恢复功能后,当用户忘记Console口认证密码或者登录认证失败,导致无法使用命令行操作设备时,可通过BootWare菜单清除该认证密码,再继续使用设备;关闭密码恢复功能后,设备将处于一个安全性更高的状态,即当出现上述情况时,若想继续使用Console口对设备进行命令行操作,只能通过BootWare菜单选择将设备恢复为出厂配置之后方可继续操作,这样可以有效地防止非法用户获取启动配置文件。

Console口登录认证密码丢失后,可以通过以下三种方式重新设置Console口的登录认证密码。

图1-1 Console口登录认证密码丢失后的三种解决方法

 

 

BootWare菜单中支持配置的选项与密码恢复功能的配置有关,详见表1-13

表1-13 使能/关闭密码恢复功能情况下BootWare选项差异描述表

BootWare菜单中支持配置的选项

使能密码恢复功能后

关闭密码恢复功能后

选项说明

Download Application Program To SDRAM And Run

支持

不支持

选择该选项后,设备将加载应用程序到SDRAM并且运行

Update User Private File

支持

不支持

选择该选项后,设备将加载用户文件到当前存储介质

Clear Super Password

支持

不支持

选择该选项并重启设备后,设备以下次启动配置文件启动,登录Console口时会清除认证密码

Modify Chassis ID Operation

支持

不支持

进入该选项,选择修改设备成员编号并重启设备后,将修改设备的运行模式以及设备的成员编号。关于设备的运行模式,请参见“IRF配置指导”中的“IRF”

Skip Current System Configuration

支持

不支持

选择该选项并重启设备后,设备将以出厂配置启动,但系统不会删除下次启动配置文件

Restore to Factory Default Configuration

不支持

支持

选择该选项并重启设备后,设备会先自动删除下次启动配置文件,再以出厂配置启动。

为了设备的安全,建议关闭密码恢复功能

 

表1-14 配置密码恢复功能

操作

命令

说明

进入系统视图

system-view

-

使能密码恢复功能

password-recovery enable

可选

缺省情况下,密码恢复功能处于使能状态

 

说明

关闭密码恢复功能后,在BootWare中不能将版本降级至不支持配置密码恢复功能的版本。如果在命令行中降级至不支持配置密码恢复功能的版本,则设备重启后,原有的BootWare密码还依然存在并生效。

 

1.6  升级设备BootWare配置举例

升级设备的BootWare主要有以下六种方式:

·     在串口子菜单中,通过加载升级系统启动文件来升级BootWare;

·     在以太网口子菜单中,通过加载升级系统启动文件来升级BootWare;

·     在BootWare操作子菜单中,通过串口加载BootWare文件直接升级BootWare;

·     在BootWare操作子菜单中,通过以太网口加载BootWare文件直接升级BootWare;

·     在命令行视图中,通过boot-loader file命令升级系统启动文件来升级BootWare;

·     在命令行视图中,通过bootrom update file命令直接升级BootWare。

以上升级方式中,只有在BootWare操作子菜单中,通过串口或以太网口加载BootWare文件直接升级BootWare,可以升级设备完整的BootWare,其他升级方式仅升级设备的BootWare扩展段。本例仅介绍在BootWare操作子菜单中,通过以太网口加载BootWare文件直接升级BootWare的方式。

(1)     键入<6>,回车后,进入BootWare操作子菜单。

===========================<EXTEND-BOOTWARE MENU>===========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> BootWare Operation Menu                                               |

|<7> Clear Super Password                                                  |

|<8> Storage Device Operation                                              |

|<9> Product Special Operation                                             |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Enter EXTEND-ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9): 6

(2)     键入<4>,回车后,选择通过以太网口加载升级BootWare,并修改以太网口的参数信息。

=========================<BootWare Operation Menu>==========================

|Note:the operating device is cfa0                                         |

|<1> Backup Full BootWare                                                  |

|<2> Restore Full BootWare                                                 |

|<3> Update BootWare By Serial                                             |

|<4> Update BootWare By Ethernet                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-4): 4

===================<BOOTWARE OPERATION ETHERNET SUB-MENU>===================

|<1> Update Full BootWare                                                  |

|<2> Update Extend BootWare                                                |

|<3> Update Basic BootWare                                                 |

|<4> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-4): 4

 

==========================<ETHERNET PARAMETER SET>==========================

|Note:       '.' = Clear field.                                            |

|            '-' = Go to previous field.                                   |

|          Ctrl+D = Quit.                                                  |

============================================================================

Protocol (FTP or TFTP) :tftp

Load File Name         :host

                       :12500_mr.btw

Target File Name       :target

                       :12500_mr.btw

Server IP Address      :192.168.1.1 192.168.2.26

Local IP Address       :192.168.1.253 192.168.2.1

Gateway IP Address     :0.0.0.0

(3)     升级设备的BootWare。

===================<BOOTWARE OPERATION ETHERNET SUB-MENU>===================

|<1> Update Full BootWare                                                  |

|<2> Update Extend BootWare                                                |

|<3> Update Basic BootWare                                                 |

|<4> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-4): 1

Loading.................Done!

717196 bytes downloaded!

Updating Basic BootWare? [Y/N]Y

Updating Basic BootWare....Done!

Updating Extend BootWare? [Y/N]Y

Updating Extend BootWare...Done!

(4)     返回BootWare主菜单。

===================<BOOTWARE OPERATION ETHERNET SUB-MENU>===================

|<1> Update Full BootWare                                                  |

|<2> Update Extend BootWare                                                |

|<3> Update Basic BootWare                                                 |

|<4> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-4): 0

 

=========================<BootWare Operation Menu>==========================

|Note:the operating device is cfa0                                         |

|<1> Backup Full BootWare                                                  |

|<2> Restore Full BootWare                                                 |

|<3> Update BootWare By Serial                                             |

|<4> Update BootWare By Ethernet                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-4): 0

 

===========================<EXTEND-BOOTWARE MENU>===========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> BootWare Operation Menu                                               |

|<7> Clear Super Password                                                  |

|<8> Storage Device Operation                                              |

|<9> Product Special Operation                                             |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Enter EXTEND-ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9):

(5)     键入<0>,回车后,重启设备,设备将以新的BootWare版本启动。

Enter your choice(0-9): 0

DDR2 SDRAM test successful.

Press Ctrl+T to start five-step full RAM test...

Press Ctrl+Y to start nine-step full RAM test...

System is starting...

Press Ctrl+D to access BASIC-BOOTWARE MENU

Booting Normal Extend BootWare

The Extend BootWare is self-decompressing................

Done!

 

****************************************************************************

*                                                                          *

*                   H3C S12500 BootWare, Version 1.22                      *

*                                                                          *

****************************************************************************

Copyright (c) 2004-2012 Hangzhou H3C Technologies Co., Ltd.

 

Compiled Date       : Dec  3 2012

CPU Type            : MPC8548E

CPU L1 Cache        : 32KB

CPU L2 Cache        : 512KB

CPU Clock Speed     : 1000MHz

Memory Type         : DDR2 SDRAM

Memory Size         : 1024MB

Memory Speed        : 400MHz

BootWare Size       : 4MB

Flash Size          : 128MB

cfa0 Size           : 247MB

NVRAM Size          : 1024KB

BASIC CPLD Version  : 003

EXTEND CPLD Version : 003

PCB Version         : Ver.B

 

 

Board self testing...........................

Board steady testing...                           [ PASS ]

Board SlotNo...                                   [   1  ]

Subcard exist testing...                          [ PASS ]

DX246  testing...                                 [ PASS ]

PHY88E1111  testing...                            [ PASS ]

CPLD1 testing...                                  [ PASS ]

CPLD2 testing...                                  [ PASS ]

NS16550 register testing...                       [ PASS ]

The default switch's Mac address...               [00:e0:fc:00:95:12]

CF Card testing...                                [ PASS ]

BootWare Validating...

Backup Extend BootWare is newer than Normal Extend BootWare,Update? [Y/N]N

Press Ctrl+B to enter extended boot menu...

BootWare password: Not required. Please press Enter to continue.

 

Password recovery capability is enabled.

Note: The current operating device is cfa0

Enter < Storage Device Operation > to select device.

 

===========================<EXTEND-BOOTWARE MENU>===========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> BootWare Operation Menu                                               |

|<7> Clear Super Password                                                  |

|<8> Storage Device Operation                                              |

|<9> Product Special Operation                                             |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTEND-ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9):

至此,设备的BootWare升级完成。

1.7  通过BootWare主菜单升级系统启动文件配置举例

说明

通过BootWare主菜单升级系统启动文件,仅能升级操作一台设备。在多台成员设备形成IRF的情况下,推荐使用ISSU升级。关于ISSU的详细介绍,请参见“基础配置指导”中的“ISSU”。

 

通过BootWare主菜单升级系统启动文件,主要有以下三种方式:

·     通过串采用Xmodem协议完成BootWare以及应用程序的升级

·     通过以太网口从TFTP服务器完成应用程序升级

·     通过以太网口从FTP服务器完成应用程序升级

1.7.1  通过串口采用Xmodem协议完成BootWare以及应用程序的升级

·     Xmodem协议简介

XModem协议是一种文件传输协议,因其简单性和较好的性能而被广泛应用。XModem协议通过串口传输文件,支持128字节和1K字节两种类型的数据包,并且支持一般校验和、CRC两种校验方式,在出现数据包错误的情况下支持多次重传(一般为10次)。

XModem协议传输由接收程序和发送程序共同完成。先由接收程序发送协商字符,协商校验方式,协商通过之后发送程序就开始发送数据包,接收程序接收到完整的一个数据包之后按照协商的方式对数据包进行校验。校验通过之后发送确认字符,然后发送程序继续发送下一包;如果校验失败,则发送否认字符,发送程序重传此数据包。

·     Xmodem应用

(1)     在Bootware主菜单中,键入<2>,回车后,系统进入串口子菜单:

===========================<Enter Serial SubMenu>==========================

|Note:the operating device is cfa0                                         |

|<1> Download Application Program To SDRAM And Run                         |

|<2> Update Main Application File                                          |

|<3> Update Backup Application File                                        |

|<4> Update Secure Application File                                        |

|<5> Update User Private File                                              |

|<6> Modify Serial Interface Parameter                                     |

|<0> Exit To Main Menu                                                     |

==========================================================================

Enter your choice(0-6):

(2)     在串口子菜单中,键入<6>,回车后,系统进入串口参数设置菜单:

===============================<BAUDRATE SET>=============================

|Note:'*'indicates the current baudrate                                    |

|     Change The HyperTerminal's Baudrate Accordingly                      |

|---------------------------<Baudrate Available>---------------------------|

|<1> 9600(Default)*                                                        |

|<2> 19200                                                                 |

|<3> 38400                                                                 |

|<4> 57600                                                                 |

|<5> 115200                                                                |

|<0> Exit                                                                  |

==========================================================================

Enter your choice(0-5):1

(3)     在这个子菜单中可以根据实际情况,选择合适的下载速率,如上所示键入<1>,即选择9600bps的下载速率。

(4)     根据上面提示,改变配置终端设置的波特率,使其与所选的软件下载波特率一致,配置终端的波特率设置完成后,做一次终端的断开和连接操作,然后键入回车,终端再次进入串口子菜单:

===========================<Enter Serial SubMenu>==========================

|Note:the operating device is cfa0                                         |

|<1> Download Application Program To SDRAM And Run                         |

|<2> Update Main Application File                                          |

|<3> Update Backup Application File                                        |

|<4> Update Secure Application File                                        |

|<5> Update User Private File                                              |

|<6> Modify Serial Interface Parameter                                     |

|<0> Exit To Main Menu                                                     |

==========================================================================

Enter your choice(0-6):2

说明

·     终端的波特率更改后,要做一次终端仿真程序的断开和连接操作,新的设置才能起作用;

·     如果是Win98操作系统,可以先设置完波特率后断开,再连接;如果是Win2000系统,则必须先断开才能设置参数,设置完以后再连接。

 

(5)     根据实际情况,用户选择升级选项,如上所示键入<2>,即将主用应用程序下载至设备,回车后,终端显示如下信息:

Please Select File .

XMODEM downloading ...CCC

(6)     此时,从终端窗口选择[传送/发送文件],在弹出的对话框(如下图)中点击[浏览]按扭,选择需要下载的软件,并将下载使用的协议改为XModem。

图1-2 [发送文件]对话框

 

(7)     选择完成后,点击[发送]按钮,系统弹出如下图所示的界面。

图1-3 正在发送文件界面

 

(8)     程序成功下载后,此时,系统将再次进入串口子菜单,用户根据自己的实际需要进行其他选择,此处不再赘述。在BootWare主菜单,执行重启操作,设备将以新加载的主用应用程序启动,完成应用程序的升级。

1.7.2  通过以太网口从TFTP服务器完成应用程序的升级

·     TFTP介绍

TFTP(Trivial File Transfer Protocol,简单文件传输协议)协议适用于客户机和服务器之间不需要复杂交互的环境。

TFTP协议传输由客户端发起,当需要下载文件时,客户端向TFTP服务器发送读请求包,然后从服务器接收数据包,并向服务器发送确认信息;当需要上传文件时,由客户端向TFTP服务器发送写请求包,然后向服务器发送数据包,并接收服务器的确认信息。TFTP传输文件有两种模式:一种是二进制模式,用于传输程序文件;另一种是ASCII码模式,用于传输文本文件。

下面升级描述以设备作为TFTP客户端(Client)为例。

·     TFTP升级步骤

(1)     将设备通过网络管理口与下载文件所在PC相连(需要知道该PC的IP地址),同时设备通过配置口外接一台PC(此PC与下载文件所在PC可以是同一台)。

(2)     在与网络管理口相连的PC上运行TFTP Server程序,并指定升级程序的文件路径。

(3)     在与配置口相连的PC上运行终端仿真程序,启动设备,进入BootWare主菜单。

(4)     在BootWare主菜单中,键入<3>,回车后,系统进入以太网口子菜单:

==========================<Enter Ethernet SubMenu>=========================

|Note:the operating device is cfa0                                         |

|<1> Download Application Program To SDRAM And Run                         |

|<2> Update Main Application File                                          |

|<3> Update Backup Application File                                        |

|<4> Update Secure Application File                                        |

|<5> Update User Private File                                              |

|<6> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

|<Ensure The Parameter Be Modified Before Downloading!>                    |

==========================================================================

Enter your choice(0-6):6

(5)     若操作文件下载,请键入<6>,修改以太网口相关参数的设置,系统界面如下:

==========================<ETHERNET PARAMETER SET>=========================

|Note:       '.' = Clear field.                                            |

|            '-' = Go to previous field.                                   |

|         Ctrl+D = Quit.                                                   |

==========================================================================

说明

上面的信息提示用户,在菜单项中键入“.”将清除该项设置,键入“-”将返回上一个设置项,键入<Ctrl+D>表示退出设置。

 

Protocol (FTP or TFTP) :TFTP

Load File Name         :bootware

                       :test.bin

Target File Name       :bootware

                       :test.bin

Server IP Address      :192.168.1.1

Local IP Address       :192.168.1.253

Gateway IP Address     :0.0.0.0

(6)     用户根据实际情况,完成上面相关信息的输入后,系统再次进入以太网口子菜单:

==========================<Enter Ethernet SubMenu>=========================

|Note:the operating device is cfa0                                         |

|<1> Download Application Program To SDRAM And Run                         |

|<2> Update Main Application File                                          |

|<3> Update Backup Application File                                        |

|<4> Update Secure Application File                                        |

|<5> Update User Private File                                              |

|<6> Modify Ethernet Parameter                                             |

|<0> Exit To Main Menu                                                     |

|<Ensure The Parameter Be Modified Before Downloading!>                    |

==========================================================================

Enter your choice(0-6):2

(7)     在如上所示的以太网口子菜单中键入<2>,即将主用应用程序下载至设备中,回车后,终端显示如下信息:

Loading...................................................................

..........................................................................

..........................................................................

..........................................................................

..................................Done!

47979456 bytes downloaded!

Updating File cfa0:/test.bin..............................................

..........................................................................

..........................................................................

..........................................................................
...............................................

..Done!

(8)     上面的信息,表明文件下载成功!此时,系统将再次进入以太网口子菜单,用户根据自己的实际需要进行选择,此处不再赘述。

1.7.3  通过以太网口从FTP服务器完成应用程序的升级

·     FTP介绍

通过以太网口,设备还可通过FTP(File Transfer Protocol,文件传输协议)来完成软件升级。

下面升级描述以设备作为FTP客户端(Client)为例。

·     FTP升级步骤

(1)     将设备通过管理/升级用以太网接口与下载文件所在PC相连(需要知道该PC的IP地址),同时设备通过配置口外接一台PC(此PC与下载文件所在PC可以是同一台)。

(2)     在与网络管理口相连的PC上运行FTP Server程序,并指定升级程序的文件路径,完成登录用户名、用户口令的设置。

(3)     在与配置口相连的PC上运行终端仿真程序,启动设备,进入BootWare主菜单。

(4)     请参考TFTP升级步骤中对应的描述,此处不再赘述。

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们