H3C Configuration management experiment

H3C  Configuration management experiment

The topology H3C  Configuration management experiment
chart 1-1

notes : If there is no special instruction , Description of the R1 or SW1 The number at the end of the device name in the corresponding topology is 1 The equipment , R2 or SW2 The number at the end of the device name in the corresponding topology is 2 The equipment , And so on

The experimental requirements

Connect to the real machine as shown , And configuration IP Address ( Real machine IP Address configuration to VirtualBox Host-Only Ethernet Adapter network card )
R1 Save the current configuration
stay R1 Upper opening FTP service
Use the real machine to access FTP service , hold R1 Copy the configuration file to local
stay R1 Clean air configuration , restart R1, Confirm that it is configured as empty configuration
Again in R1 Turn on FTP service , And restore the real copy of the configuration file to the router
change R1 Start configuration file name of
Restart again R1, Confirm that the configuration has been restored

Experimental solution

1、 To configure IP The address is omitted

2、R1 Save the current configuration , And confirm , The order is as follows


[R1]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、R1 Upper opening FTP service , Create user wangdaye, password 123 step 1 : Turn on FTP service

[R1]ftp server enable
step 2 : Create for FTP

Authenticated users , Configure a password , And set the user permission level and service type


[R1]local-user wangdaye class manage  New local user added. 
[R1-luser-manage-wangdaye]password simple 123456 
[R1-luser-manage-wangdaye]authorization-attribute user-role level-15 
[R1-luser-manage-wangdaye]service-type ftp 

4、 Use the real machine to access FTP service , Backup R1 Configuration file steps for 1 : Use explorer to access FTP service , Pictured 1-2 Shown
H3C  Configuration management experiment

chart 1-2 step 2 : Enter your username and password , Pictured 1-3 Shown
H3C  Configuration management experiment

chart 1-3 step 3 : Copy R1 Configuration file for , Pictured 1-4 Shown
H3C  Configuration management experiment

chart 1-4 5、 stay R1 Clean air configuration , The order is as follows

analysis : here R1 The configuration of has been backed up to PC On , Now the R1 The configuration is cleared , Then test whether the configuration of the restored backup is valid

<R1>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.

6、 restart R1, The order is as follows

Be careful : When you restart the device , The first confirmation prompt is that the device has detected that the configuration has been cleared , Ask if you want to save the current To configure . This inquiry requires input of n To deny ; The second confirmation prompt is to ask if you want to restart , You should enter y

<R1>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... 

7、 see R1 To configure , Find out R1 The configuration of has become empty

<H3C>display current-configuration  
#  
  version 7.1.075, Alpha 7571 
#  
  sysname H3C 
# 
system-working-mode standard 
xbar load-single 
password-recovery enable 
lpu-type f-series
# 
vlan 1

8、 Again put R1 Of g0/0 Mouth configuration IP Address , And open FTP, Command Brief

9、 Restore the configuration file of the real machine to the router , The process is brief

10、 change R1 Start configuration file name of , The order is as follows


<H3C>startup saved-configuration startup.cfg  
Please wait...... Done. 

restart R1, Confirm that the configuration has been restored to the state before emptying


<R1>display cu <R1>display current-configuration  
#  
version 7.1.075, Alpha 7571 
#  
sysname R1 
#  
system-working-mode standard  
xbar load-single  
password-recovery enable  
lpu-type f-series 
# 
vlan 1