华为交换机命令Quidway S2008BQuidway S2016BQuidway S2026B 联系客服

发布时间 : 星期一 文章华为交换机命令Quidway S2008BQuidway S2016BQuidway S2026B更新完毕开始阅读b88d86154431b90d6c85c79e

duplex full

speed 10

undo priority #

interface Ethernet0/2

undo priority #

interface Ethernet0/3

undo priority #

---- More ----

例:显示以太网交换机当前生效的配置参数。

display current-configuration #

sysname Quidway #

hgmp enable # qos 10 #

user-interface aux

speed 9600

# vlan 1 #

vlan 2047 #

interface Ethernet0/1

duplex full

speed 10

undo priority #

interface Ethernet0/2

undo priority #

interface Ethernet0/3

undo priority #

---- More ----

6.2.3 修改和保存当前配置

为了使当前配置能够做为S2000B系列以太网交换机下次上电启动时的起始配置,需要使用以下命令保存当前配置到Flash Memory中。

请在用户视图下进行下列配置。

表6-6 保存当前配置 操作

命令

保存当前配置 save

当完成一组配置并且已经达到预定功能时,建议用户将当前配置文件保存到Flash Memory中。

例:保存当前配置文件到Flash Memory中。

save

This will save the configuration in the flash memory.

The switch configurations will be written to flash.

Are you sure?[Y/N]y

Now saving current configuration to flash memory.

Please wait for a while...

Save current configuration to flash memory successfully.

6.2.4 擦除Flash Memory中配置文件

使用以下命令可以擦除S2000B系列以太网交换机Flash Memory中的配置文件。

通常情况下S2000B系列以太网交换机的配置信息是由HGMP Server端进行设置。如果配置文件被擦除后没有取得HGMP Server端的配置信息,则S2000B系列下次上电启动时,将采用缺省的配置参数进行初始化。

请在用户视图下进行下列配置。

表6-7 擦除Flash Memory中配置文件 操作 命令

擦除Flash Memory中配置文件

reset saved-configuration

请慎重执行该命令,最好在技术支持人员指导下使用。

一般在以下几种情况使用:

l 以太网交换机软件升级之后,Flash Memory中配置文件可能与新版本软件不匹配,这时可以用reset saved-configuration命令擦除旧的配置文件。

l 将一台已经使用过的以太网交换机用于新的应用环境,原有的配置文件不能适应新环境的需求,需要对以太网交换机重新配置,这时可以擦除原配置文件后,恢复出厂配置重新配置。

l 当Flash Memory中的配置文件遭到破坏,如加载了错误的配置文件。

例:擦除Flash Memory中以太网交换机配置文件。

reset saved-configuration

This will erase the configuration in the flash memory.

The switch configurations will be erased to reconfigure.

Are you sure?[Y/N] y(进行确认)

Now erasing the configuration in flash memory.

Please wait for a while...

Erase the configuration in flash memory successfully

6.3 设备管理

S2000B系列以太网交换机提供设备管理功能,包括:显示系统信息、显示当前版本及重新启动以太网交换机。

6.3.1 显示系统信息

当以太网交换机出现故障时,可以使用以下命令一次性地、尽可能全地收集当前设备的运行信息,以便迅速定位问题、解决问题。所收集的信息包括:版本信息、以太网端口信息、VLAN相关信息、当前配置信息、起始配置信息和MAC地址表信息等。此外,系统内存的使用情况也会清晰的显示出来(包括已经分配的内存和空闲的内存空间大小)。

请在所有视图下进行下列操作。