DAY01(02):访问及配置交换机

2.1 问题

修改交换机主机名

查看交换机VRP版本

查看交换机配置

使用账户和密码登录终端

保存交换机的配置

恢复设备出厂默认值

2.2 方案

在eNSP程序主窗口中,添加一台s3700交换机,进入交换机,输入相关命令进行配置和查看交

换机

2.3 步骤

实现此案例需要按照如下步骤进行

步骤一:修改交换机主机名

进入系统视图后,使用sysname指令可以为交换机设置主机名。例如,以下操作可以将主机名设

置为SW1

步骤二:显示VRP版本

步骤三:查看交换机配置

查看ios名称及版本信息

01. system-view

02. [Huawei]sysname SW1

03. [SW1]

01. [Huawei]display version

02. Huawei Versatile Routing Platform Software

03. VRP (R) software, Version 5.110 (S3700 V200R001C00)

04. Copyright (c) 2000-2011 HUAWEI TECH CO., LTD

05.

06. Quidway S3700-26C-HI Routing Switch uptime is 0 week, 0 day, 0 hour, 17 minutes

01. [Huawei]display current-configuration

02. #

03. sysname Huawei

04. #

05. cluster enable

06. ntdp enable

07. ndp enable

08. #

09. drop illegal-mac alarm

10. #

11. diffserv domain default

12. #

13. drop-profile default

14. # Top

步骤四:使用账户和密码登录终端

步骤五:保存交换机的配置

步骤六:恢复设备出厂默认值

01. system-view

02. [Huawei]aaa //进入aaa认证

03. [Huawei-aaa]local-user admin01 password cipher 123 //创建账户叫admin01,密码123

04. [Huawei-aaa]quit

05. [Huawei]user-interface console 0

06. [Huawei-ui-console0]authentication-mode aaa //激活配置

01. save

02. The current configuration will be written to the device.

03. Are you sure to continue?[Y/N]y //这里按y确认

04. Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:

05. Mar 12 2019 19:12:18-08:00 Huawei %%01CFM/4/SAVE(l)[0]:The user chose Y when dec

06. iding whether to save the configuration to the device.

07. Now saving the current configuration to the slot 0.

08. Save the configuration successfully.

01. reset saved-configuration //重置配置文件

02. Warning: The action will delete the saved configuration in the device.

03. The configuration will be erased to reconfigure. Continue? [Y/N]:y //是否擦除,回答y

04. Warning: Now clearing the configuration in the device.

05. Mar 12 2019 19:13:50-08:00 Huawei %%01CFM/4/RST_CFG(l)[1]:The user chose Y when

06. deciding whether to reset the saved configuration.

07. Info: Succeeded in clearing the configuration in the device.

08.

09. reboot //重启设备

10. Info: The system is now comparing the configuration, please wait.

11. Warning: All the configuration will be saved to the configuration file for the n

12. ext startup:, Continue?[Y/N]:n //提示是否再次保存,选择n

13. Info: If want to reboot with saving diagnostic information, input 'N' and then e

14. xecute 'reboot save diagnostic-information'.

15. System will reboot! Continue?[Y/N]:y //是否重启,选择y

你可能感兴趣的:(DAY01(02):访问及配置交换机)