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

2.1 问题
修改交换机主机名
查看交换机VRP版本
查看交换机配置
使用账户和密码登录终端
保存交换机的配置
恢复设备出厂默认值
2.2 方案
在eNSP程序主窗口中,添加一台s3700交换机,进入交换机,输入相关命令进行配置和查看交
换机
2.3 步骤
实现此案例需要按照如下步骤进行
步骤一:修改交换机主机名
进入系统视图后,使用sysname指令可以为交换机设置主机名。例如,以下操作可以将主机名设
置为SW1
步骤二:显示VRP版本
步骤三:查看交换机配置
查看ios名称及版本信息

  1. system-view
  2. [Huawei]sysname SW1
  3. [SW1]
  4. [Huawei]display version
  5. Huawei Versatile Routing Platform Software
  6. VRP ® software, Version 5.110 (S3700 V200R001C00)
  7. Copyright © 2000-2011 HUAWEI TECH CO., LTD
  8. Quidway S3700-26C-HI Routing Switch uptime is 0 week, 0 day, 0 hour, 17 minutes
  9. [Huawei]display current-configuration
  10. sysname Huawei
  11. cluster enable
  12. ntdp enable
  13. ndp enable
  14. drop illegal-mac alarm
  15. diffserv domain default
  16. drop-profile default
  17. Top

步骤四:使用账户和密码登录终端
步骤五:保存交换机的配置
步骤六:恢复设备出厂默认值

  1. system-view
  2. [Huawei]aaa //进入aaa认证
  3. [Huawei-aaa]local-user admin01 password cipher 123 //创建账户叫admin01,密码123
  4. [Huawei-aaa]quit
  5. [Huawei]user-interface console 0
  6. [Huawei-ui-console0]authentication-mode aaa //激活配置
  7. save
  8. The current configuration will be written to the device.
  9. Are you sure to continue?[Y/N]y //这里按y确认
  10. Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
  11. Mar 12 2019 19:12:18-08:00 Huawei %%01CFM/4/SAVE(l)[0]:The user chose Y when dec
  12. iding whether to save the configuration to the device.
  13. Now saving the current configuration to the slot 0.
  14. Save the configuration successfully.
  15. reset saved-configuration //重置配置文件
  16. Warning: The action will delete the saved configuration in the device.
  17. The configuration will be erased to reconfigure. Continue? [Y/N]:y //是否擦除,回答y
  18. Warning: Now clearing the configuration in the device.
  19. Mar 12 2019 19:13:50-08:00 Huawei %%01CFM/4/RST_CFG(l)[1]:The user chose Y when
  20. deciding whether to reset the saved configuration.
  21. Info: Succeeded in clearing the configuration in the device.
  22. reboot //重启设备
  23. Info: The system is now comparing the configuration, please wait.
  24. Warning: All the configuration will be saved to the configuration file for the n
  25. ext startup:, Continue?[Y/N]:n //提示是否再次保存,选择n
  26. Info: If want to reboot with saving diagnostic information, input ‘N’ and then e
  27. xecute ‘reboot save diagnostic-information’.
  28. System will reboot! Continue?[Y/N]:y //是否重启,选择y
发布了63 篇原创文章 · 获赞 7 · 访问量 1101

猜你喜欢

转载自blog.csdn.net/weixin_45843450/article/details/104506842