Detailed analysis of FTP replication of Huawei Switch configuration files

Source: Internet
Author: User

A detailed analysis of the FTP replication of the Huawei Switch configuration file. The following is a representative solution to the problem of the Huawei Switch configuration file. Let's take a closer look at it today. This allows you to bypass the problem of the Huawei Switch configuration file.

Recently, some ports in the configuration file of a Huawei switch failed. The manufacturer immediately issued a new switch for us to replace. It is no difficulty to replace the switch, but is there any way to make the new switch quickly and accurately have the same configuration as the previous switch?

It is too slow to issue commands on the new switch. In fact, you can use the FTP feature provided by the Huawei Switch configuration file to quickly copy the switch configuration file. Next I will introduce the specific methods of the Huawei Switch configuration file in combination with this project instance.

◆ Upload the Huawei Switch configuration file on the old switch to an FTP server

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, and install the Serv-U software on this notebook to use this notebook as an FTP server ), connect the notebook to port 7 of the old switch with a network cable. After the above operations are completed, perform the following operations on the old switch:
<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!

The token is uploaded to an FTP server and saved on an FTP server.) to upload the configuration file of the Huawei switch to the new switch, perform the second step.

◆ Configure IP addresses for the new switch

To obtain the configuration file of a Huawei switch through FTP, you must first configure an IP address for the switch and connect the configuration file to the configuration port of the Huawei switch through the configuration line in the notebook. perform the following operations:
<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.

◆ The new switch downloads the Huawei Switch configuration file from the FTP server

Perform the following operations on the configuration file of the Huawei switch:
<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!

◆ Restart the vswitch to make the configuration file of the Huawei switch 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 configuration file, we can quickly replicate the configuration files of two Huawei 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.