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).
Example for Configuring the Fast Provisioning Function

Example for Configuring the Fast Provisioning Function

Networking Requirements

As shown in Figure 7-2, RouterA and RouterB are connected through VLAN11. It is required that GE1/0/0.1 on RouterA should automatically learn VLAN and IP address settings.

Figure 7-2  Networking diagram for configuring the fast provisioning function

Configuration Roadmap

The configuration roadmap is as follows:

  1. Make a configuration file and load the file to RouterA using the USB-based deployment method so that the fast provisioning function is enabled on RouterA without manual configuration.
  2. Configure basic information about a sub-interface on RouterB and send ping packets to trigger the automatic learning function on GE1/0/0.1 of RouterA. GE1/0/0.1 then can automatically learn VLAN and IP address settings.

Procedure

  1. Make a configuration file that contains configuration information about the fast provisioning function. The process of making the file is not provided here. The fast provisioning configuration information is as follows:

    #                                                                               
     fast provisioning enable                                                       
    #                                                                               
    interface GigabitEthernet1/0/0                                                  
     fast-provisioning enable                                                       
    #                                                                               
    interface GigabitEthernet1/0/0.1                                                
    #                                                                               
    

  2. Perform USB-based deployment on RouterA. Load the configuration file to RouterA using the USB-based deployment method. For the detailed USB-based deployment process, see Example for Configuring USB-based Deployment.

    # After USB-based deployment is performed on RouterA successfully, view the automatic learning record of the interface enabled with the fast provisioning function on RouterA.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] display fast provisioning state
    ----------Fast Provisioning State-----------                                    
    GigabitEthernet1/0/0                                                            
        GigabitEthernet1/0/0.1                                                      
            State : enable                                                          
    ---------------------------------------------        

  3. Configure a sub-interface on RouterB.

    <Huawei> system-view
    [Huawei] sysname RouterB
    [RouterB] interface gigabitethernet 1/0/0.1 
    [RouterB-GigabitEthernet1/0/0.1] dot1q termination vid 11
    [RouterB-GigabitEthernet1/0/0.1] ip address 192.168.1.1 255.255.255.0 
    [RouterB-GigabitEthernet1/0/0.1] quit

  4. Send ping packets from RouterB to trigger the automatic learning function on RouterA. Set the destination IP address of ping packets to 192.168.1.2 and the ToS value to 224.

    [RouterB] ping -tos 224 192.168.1.2                                        
      PING 192.168.1.2 : 56  data bytes, press CTRL_C to break                        
        Request time out                                                            
        Reply from 192.168.1.2 : bytes=56 Sequence=2 ttl=255 time=4 ms                
        Reply from 192.168.1.2 : bytes=56 Sequence=3 ttl=255 time=530 ms              
        Reply from 192.168.1.2 : bytes=56 Sequence=4 ttl=255 time=4 ms                
        Reply from 192.168.1.2 : bytes=56 Sequence=5 ttl=255 time=1 ms                
                                                                                    
      --- 192.168.1.2  ping statistics ---                                            
        5 packet(s) transmitted                                                     
        4 packet(s) received                                                        
        20.00% packet loss                                                          
        round-trip min/avg/max = 1/134/530 ms          

  5. Verify the configuration.

    # View the automatic learning record of GE1/0/0.1 enabled with the fast provisioning function on RouterA.

    [RouterA] display fast provisioning record                      
    ----------Fast Provisioning Record-----------                                   
    GigabitEthernet1/0/0.1                                                                 
        State : successful                                                          
        Vlan : 11                                                                   
        IP : 192.168.1.2         Mask :24                                            
    Fast provisioning num : 1                                                          
    ---------------------------------------------    

    The preceding command output shows that GE1/0/0.1 on RouterA learns the VLAN tag value 11, IP address 192.168.1.2, and mask length 24.

    # View the saved configuration information of GE1/0/0.1 on RouterA.

    [RouterA] interface gigabitethernet 1/0/0.1
    [RouterA-GigabitEthernet1/0/0.1] display this
    [V200R005C10]                                                             
    #                                                                               
    interface GigabitEthernet1/0/0.1                                                
     dot1q termination vid 11                                                       
     ip address 192.168.1.2 255.255.255.0                                            
    #                                                                               
    return             

    The preceding command output shows that configuration information such as the IP address learned by GE1/0/0.1 on RouterA is saved.

Configuration File

Configuration file of RouterB

#                                                                               
 sysname RouterB                                                
#                                                                               
interface GigabitEthernet1/0/0.1                                                
 dot1q termination vid 11                                                       
 ip address 192.168.1.1 255.255.255.0                                            
#                                                                               
return  
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100034066

Views: 89059

Downloads: 486

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