Analysis on configuration backup of Huawei switches: copying switch files

Source: Internet
Author: User

Analysis of Huawei Switch configuration backup: Implements switch File Replication. This article uses a notebook installed with FTP server software to replicate configuration files. This article provides detailed steps and related diagrams. Thank you for your guidance.

1) Upload the configuration file on the old switch to an FTP server

Figure 1 Huawei Switch configuration backup

1. In this project, we use a notebook as the debugging terminal. port 7 on the old notebook belongs to the network management VLAN100, that is, the notebook can use this port to perform telnet, ftp, and other operations on the switch ), the VLAN100 address of the vswitch is 10.200.0.1.

Set the IP address of the notebook to 10.200.0.111, install the Serv-U software on this notebook as an FTP server), and connect the notebook to port 7 of the old switch with a network cable, after completing the preceding operations, perform the configuration backup operation on the old vswitch:
<ZXJF_3552> ftp 10.200.0.111
Trying...
Press CTRL + K to abort
Connected.
220 Serv-u ftp Server v5.2 for WinSock ready...
User (none): lrx
331 User name okay, need password.
Password:
230 User logged in, proceed.
[Ftp] bin
[Ftp] put vrpcfg.txt
200 PORT Command successful.
150 Opening BINARY mode data connection for vrpcfg.txt.
226 Transfer complete.
FTP: 6561 byte (s) sent in 0.220 second (s) 29.00 Kbyte (s)/sec.
[Ftp] bye
221 Goodbye!

Upload the configuration file to an FTP server and save it to an FTP server.) to upload the configuration file to the new switch, perform step 2.

2) Configure IP addresses for the new switch

To obtain the configuration file through FTP, you must first configure an IP address for the vswitch, connect the configuration line to the configuration port of the vswitch in the notebook, and back up the configuration of the Huawei switch.
<Quidway> sys
Enter system view, return to user view with Ctrl + Z.
[Quidway] The inter vlan 100
[Quidway-Vlan-interface100] ip addr 10.200.0.1 255.255.255.0
[Quidway-Vlan-interface100] inter fa0/7
[Quidway-Ethernet0/7] port access VLAN 100

Create a VLAN100 for the new vswitch, set the vlan ip address to 10.200.0.1, and group port 7 to VLAN100.

3) The new switch downloads the configuration file from the FTP server

Perform the following operations:
<Quidway> ftp 10.200.0.111
Trying...
Press CTRL + K to abort
Connected.
220 Serv-u ftp Server v5.2 for WinSock ready...
User (none): lrx
331 User name okay, need password.
Password:
230 User logged in, proceed.
[Ftp] bin
200 Type set to I.
[Ftp] get vrpcfg.txt
227 Entering Passive Mode (10,200, 0,111, 4, 3)
150 Opening BINARY mode data connection for vrpcfg.txt (6561 Bytes ).
226 Transfer complete.
FTP: 6561 byte (s) encoded ed in 0.528 second (s) 6.00 Kbyte (s)/sec.
[Ftp] bye
221 Goodbye!

4) restart the vswitch to make the configuration file take effect.
<Quidway> reboot
This will reboot Switch. Continue? [Y/N] y

After the restart, run the dis cu command to check the configuration information and find that the configuration is exactly the same as that of the old switch. Through the above operations, we can see that using the FTP function of the Huawei switch, we can quickly implement the configuration file between the two switches.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.