H3C配置管理实验

2020-06-16 76

NE实验

H3C配置管理实验

实验拓扑

实验需求

  1. 按照图示配置设备Z1的ip,并配置Host设备的ip在本地网卡内
  2. 修改Z1设备的名称为1801,并保存Z1设备的配置文件
  3. 在Z1设备中开启FTP服务
  4. 通过真机访问Z1设备中的FTP服务,并备份出Z1设备的配置文件
  5. 清空Z1设备中的配置文件,并重启
  6. 再次配置Z1设备的ip并与Host设备的ip在同一网段下
  7. 再次开启Z1设备中的FTP服务,并把本地备份的配置文件上传
  8. 修改配置启动名称
  9. 重启Z1设备
  10. 检查Z1设备配置文件是否还原

实验解法

  1. 按照图示配置设备Z1的ip,并配置Host设备的ip在本地网卡内
[H3C]interface GigabitEthernet 0/0 [H3C-GigabitEthernet0/0]ip address 192.168.100.10 24
2.修改Z1设备的名称为1801,并保存Z1设备的配置文件
[H3C]sysname 1801 <1801>save The current configuration will be written to the device. Are you sure? [Y/N]:y Please input the file name(*.cfg)[flash:/startup.cfg] (To leave the existing filename unchanged, press the enter key): Validating file. Please wait... Configuration is saved to device successfully.
3.在Z1设备中开启FTP服务
[1801]ftp server enable
4.通过真机访问Z1设备中的FTP服务,并备份出Z1设备的配置文件
第一步:添加用于登陆FTP的用户,并配置权限
[1801]local-user yjs class manage New local user added. [1801-luser-manage-yjs]password simple 123456 [1801-luser-manage-yjs]service-type ftp [1801-luser-manage-yjs]authorization-attribute user-role level-15
第二步:配置用户用于本地登陆验证
[1801]user-interface vty 0 4 [1801-line-vty0-4]authentication-mode scheme [1801-line-vty0-4]user-role level-15
第三步:通过本地连接Z1设备的FTP服务,并备份出配置文件
5.清空Z1设备中的配置文件,并重启
<1801>reset saved-configuration The saved configuration file will be erased. Are you sure? [Y/N]:y Configuration file in flash: is being cleared. Please wait ... Configuration file is cleared. <1801>reboot Start to check configuration with next startup configuration file, please wait.........DONE! Current configuration may be lost after the reboot, save current configuration? [Y/N]:n This command will reboot the device. Continue? [Y/N]:y Now rebooting, please wait... %Sep 6 15:08:25:633 2019 1801 DEV/5/SYSTEM_REBOOT: System is rebooting now.
6.再次配置Z1设备的ip并与Host设备的ip在同一网段下
[H3C]interface GigabitEthernet 0/0 [H3C-GigabitEthernet0/0]ip address 192.168.100.10 24
7.再次开启Z1设备中的FTP服务,并把本地备份的配置文件上传
第一步:开启Z1设备的FTP服务
[H3C]ftp server enable
第二步:添加用户用于登陆Z1设备的FTP,并配置用户的权限和本地登陆验证
[H3C]local-user zx class manage New local user added. [H3C-luser-manage-zx]password simple 123456 [H3C-luser-manage-zx]service-type ftp [H3C-luser-manage-zx]authorization-attribute user-role level-15 [H3C]user-interface vty 0 4 [H3C-line-vty0-4]authentication-mode scheme [H3C-line-vty0-4]user-role level-15
第三步:在本地连接Z1设备的FTP服务,并把本地备份的配置文件上传
8.修改启动配置文件名称
<H3C>startup saved-configuration startup.cfg
9.重启Z1设备
<H3C>reboot Start to check configuration with next startup configuration file, please wait.........DONE! Current configuration may be lost after the reboot, save current configuration? [Y/N]:n This command will reboot the device. Continue? [Y/N]:y Now rebooting, please wait... %Sep 6 15:19:31:687 2019 H3C DEV/5/SYSTEM_REBOOT: System is rebooting now.
10.检查Z1设备配置文件是否还原
<1801> <1801> <1801> <1801>display current-configuration # version 7.1.075, Alpha 7571 # sysname 1801 #