In my daily work also involves the configuration of some switches, whenever I configure a switch must be to make a backup of the relevant configuration, on the one hand is to do a retention, on the one hand is to keep a backup. At first I used a variety of methods, such as configuring the switch directly after the display of all the configuration and then paste copied to the TXT text document, the switch configuration FTP server, and then use the computer to do the client from the switch to extract the configuration and so on.
Here I will only introduce a switch as an FTP client, the local computer as the FTP server side to back up the configuration method. About the switch configuration, according to different brands, different series of switches, the article teaches you only the general configuration method, with these general configuration method, we can extrapolate, digest. Generally there are two methods: one is local configuration, the other is remote network configuration, but note that the latter configuration method is only available if the previous configuration is successful.
This time I used the tool for Huawei Ensp, Securecrtportable, 3CDaemon and other tools, with ENSP to simulate the switch, securecrtportable to simulate the computer and the connection between the switch software, 3CDaemon set up an FTP server on your computer.
The first step: on the ENSP to build a good network topology.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/87/21/wKiom1fVEHPANUA_AAAzq2GUt2g985.png "title=" 1.png " alt= "Wkiom1fvehpanua_aaazq2gut2g985.png"/>
The second step: the configuration on the core switch is as follows, very simple configuration, can telnet on the switch on the line.
Interface VLANIF1
IP address 192.168.1.254 255.255.255.0
User-interface vty 0 4
User Privilege Level 3
Set Authentication password Simple Lijie
The third step: The Cloud Network card bridge to the local network card, my is received on the wireless card.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/87/1F/wKioL1fVEimABAYJAACcbWAkiK0128.png "title=" 1.png " Width= "height=" 479 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:700PX;HEIGHT:479PX; "alt=" Wkiol1fveimabayjaaccbwakik0128.png "/>
Fourth step: Ping to see if the computer can communicate with the switch
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/87/21/wKiom1fVEpKBrXQ0AAC1dszGJ9g084.png "title=" 1.png " Width= "height=" 458 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:458px; "alt=" Wkiom1fvepkbrxq0aac1dszgj9g084.png "/>
Fifth step: Using the Securecrtportable tool telnet on the switch, configure the following, note to force each time a character mode check.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/87/21/wKiom1fVEx2BjLReAAChTMV4Qaw200.png "title=" 1.png " Width= "height=" 648 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:648px; "alt=" Wkiom1fvex2bjlreaachtmv4qaw200.png "/>
Sixth step: The use of 3CDaemon tools on the local computer to build the FTP server, set up a good password, permissions, etc., the use is very simple.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/87/21/wKiom1fVE-qR8Ec2AAEqvy5CDhY979.png "title=" 1.png " Width= "height=" 405 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:405px; "alt=" Wkiom1fve-qr8ec2aaeqvy5cdhy979.png "/>
Seventh step: Use the Securecrtportable tool in the command window of the switch to enter Dir, to see the Flas directory under the configuration file name is Vrpcfg.zip
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/87/1F/wKioL1fVFhXQXlCqAAJXnt4HeYs445.png "title=" 1.png " Width= "height=" 470 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:470px; "alt=" Wkiol1fvfhxqxlcqaajxnt4heys445.png "/>
Eighth step: Use the Securecrtportable tool to enter the FTP 192.168.1.6 in the command window of the switch, connect the FTP server
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/87/1F/wKioL1fVFSyyz6wmAADx6ELfhx4771.png "title=" 1.png " Width= "height=" 470 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:470px; "alt=" Wkiol1fvfsyyz6wmaadx6elfhx4771.png "/>
Nineth step: Under the FTP command, enter put Vrpcfg.zip to backup the configuration file to the FTP server's folder
[Ftp]put Vrpcfg.zip
The PORT command succeeds.
150 file status OK; Preparing to start a data connection
226 closing the data connection; File transfer completed successfully.
ftp:778 byte (s) sent in 0.180 second (s) 4.32Kbyte (s)/sec.
All of this is done, and you can see the configuration files for the spare parts under the specified FTP server folder.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/87/1F/wKioL1fVFxjRz7wnAAGItLceMwU715.png "title=" 1.png " Width= "height=" 483 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:483px; "alt=" Wkiol1fvfxjrz7wnaagitlcemwu715.png "/>
Everyone may have their own way of liking, different vendors of the switch may back up the same command, the previous establishment of the server is the same process.
Cisco devices:
Sw#copy Running-config tftp://192.168.1.6
Address or name of remote host [192.168.1.6]?
Destination filename [SW]? sw_2016//A name for the export configuration file
!!
4960 bytes copied in 1.502 secs (3302 bytes/sec)
Ruijie Equipment:
rg# copy running-config tftp:
Address of remote host []?192.168.1.6//Enter the IP address of your computer
Destination filename []? rg_2016//A name for the export configuration file
Building configuration ...
Accessing Running-config ...
Success:transmission success,file Length 3726
The rest of the here I will not explain in detail, I hope to help everyone.
How to import a switch configuration to a local computer for backup