No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - Basic Configuration

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the Basic configuration supported by the device.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Overview of Fast Provisioning

Overview of Fast Provisioning

The fast provisioning function enables sub-interfaces on a device to automatically learn configuration information such as the VLAN, IP address, and data link connection identifier (DLCI) from a peer device.

When a large number of devices need to be configured in a USB-based deployment scenario, the configuration takes much manpower and time if you need to prepare different configuration files for each device. You can add configuration information about the fast provisioning function in the configuration file used for USB-based deployment. Sub-interfaces on a device to be configured then can automatically learn and save configuration information such as the VLAN, IP address, and DLCI from a peer device.

Fast Provisioning Implementation

Currently, the fast provisioning function is supported by three kinds of sub-interfaces. The implementation processes are different on these sub-interfaces, as described in Table 6-1.

Table 6-1  Sub-interfaces supporting the fast provisioning function and the function implementation

Sub-interface

Implementation

ADSL sub-interface: supports the fast provisioning function only when the sub-interface is used in an IPoA scenario and the sub-interface type is P2P.

After the fast provisioning function is enabled on an ADSL sub-interface, the automatic learning function is triggered on the sub-interface when the peer device sends ping packets and the difference between the last byte of the source IP address and that of the destination IP address is one in the ping packets (for example, the source IP address is 192.168.1.1 and the destination IP address is 192.168.1.2). The local device obtains the destination IP address in the ping packets as the IP address of the ADSL sub-interface.

Serial sub-interface: supports the fast provisioning function only when the sub-interface is used in a synchronous or asynchronous sub-interface and the sub-interface type is P2P.

After the fast provisioning function is enabled on a serial sub-interface, the device learns the FR Local Management Interface (LMI) protocol type of the peer device. The sub-interface starts automatic learning when the local and peer devices use the same LMI protocol type. The automatic learning function is triggered on the sub-interface when the peer device sends a ping packet and the difference between the source and destination IP addresses in the ping packet is 1. The local device obtains the DLCI from the ping packet and sends the DLCI to a sub-interface capable of automatic learning. The sub-interface then learns the IP address based on the DLCI.

NOTE:

If a sub-interface obtains the DLCI but fails to learn the matching IP address, it attempts to learn the IP address again when the peer device sends another ping packet.

Ethernet sub-interface: supports the fast provisioning function only in a scenario where packets carry one VLAN tag.

After the fast provisioning function is enabled on an Ethernet sub-interface, the peer device broadcasts ARP packets in the VLAN before sending ping packets. The automatic learning function of the sub-interface is triggered when the device to be configured finds that the difference between the last byte of the source IP address and that of the destination IP address is one in the ping packets. The sub-interface learns the VLAN information in ARP Request packets and obtains the destination IP address in the packets as the IP address of the sub-interface.

NOTE:

If the peer device does not broadcast ARP packets, automatic learning is not triggered on Ethernet sub-interfaces on the local device.

The fast provisioning function cannot be enabled simultaneously on two or more sub-interfaces in the same LAN.

NOTE:
  • If a sub-interface has been configured with an IP address, the IP address learned automatically by the sub-interface overwrites the original IP address after the fast provisioning function is enabled.

  • The fast provisioning function enabled globally and on interfaces will be disabled 1 hour later after the automatic learning function is triggered on a sub-interface. If the device restarts within 1 hour, the fast provisioning function will not be automatically disabled 1 hour later. In this case, the fast provisioning function can only be disabled using the undo fast provisioning enable command.

  • If the fast provisioning function is enabled on multiple sub-interfaces on a device to be configured, the automatic learning function is triggered on the sub-interfaces in ascending order of sub-interface numbers. For example, the fast provisioning function is enabled on the sub-interfaces GE1/0/0.1 and GE1/0/0.2 of a device. When the ping 1.1.1.1 and ping 2.2.2.2 commands are run in sequence on the peer device, GE1/0/0.1 and GE1/0/0.2 automatically learn the IP addresses 1.1.1.1 and 2.2.2.2 respectively.

The preceding sub-interfaces learn the mask length according to the ToS value in ping packets. The Table 6-2 describes the mapping between ToS values and mask lengths.

Table 6-2  Mapping between ToS values and mask lengths

ToS Value

Mask Length

32

31

64

29

96

28

128

27

160

26

192

25

224

24

Other values

30

As shown in Figure 6-1, RouterA needs to be configured and is connected to RouterB through VLAN11.

Figure 6-1  Fast provisioning implementation
  1. Load the fast provisioning configuration to RouterA using USB-based deployment. Enable the fast provisioning function on GE1/0/0.1 of RouterA.

  2. Send ping packets from RouterB. Set the destination IP address of ping packets to 192.168.1.2 and the ToS value to 224. Because the ARP table on RouterB does not contain a MAC address corresponding to 192.168.1.2, RouterB broadcasts ARP Request packets in VLAN11.

  3. After receiving ARP Request packets sent by RouterB, RouterA finds that the source IP address is 192.168.1.1 and the destination IP address is 192.168.1.2 in the packets. The automatic learning function is triggered on RouterA. RouterA learns the VLAN information in the ARP Request packets and uses the destination IP address in the packets as the sub-interface IP address. RouterA then sends ARP Reply packets to RouterB. RouterB sends ping packets after it receives the ARP Reply packets. RouterA uses the ToS value in the ping packets to learn the sub-interface mask length. The ToS value in this example is 224 and the mask length is 24 according to Table 6-2. GE1/0/0.1 on RouterA automatically learns and saves the following configuration information:
    #                                                                               
    interface GigabitEthernet1/0/0.1                                                
     dot1q termination vid 11                                                       
     ip address 192.168.1.2 255.255.255.0                                            
    #
Translation
Download
Updated: 2019-08-08

Document ID: EDOC1100034066

Views: 84936

Downloads: 474

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next