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.
Configuration Roadmap
The configuration roadmap is as follows:
- 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.
- 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
- 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 #
- 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 ---------------------------------------------
- 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
- 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
- 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.