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

AR500, AR510, and AR530 V200R007 CLI-based Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring transparent bridge, MAC table, link aggregation, VLANs, STP/RSTP/MSTP, and so on.The document provides the configuration procedures and configuration examples to illustrate the service configuration methods and application scenario.
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).
Working Procedure

Working Procedure

This section describes the working procedure of GVRP by using an example. This example illustrates how a VLAN attribute is registered and deregistered on a network in four phases.

One-Way Registration

Figure 10-5  One-way registration of a VLAN attribute

Static VLAN 2 is created on RouterA. Ports on RouterB and RouterC can join VLAN 2 automatically through one-way registration. The process is as follows:
  1. After VLAN 2 is created on RouterA, Port 1 of RouterA starts the Join timer and Hold timer. When the Hold timer expires, Port 1 sends the first JoinEmpty message to RouterB. When the Join timer expires, Port 1 restarts the Hold timer. When the Hold timer expires again, Port 1 sends the second JoinEmpty message.

  2. After Port 2 of RouterB receives the first JoinEmpty message, RouterB creates dynamic VLAN 2 and adds Port 2 to VLAN 2. In addition, RouterB requests Port 3 to start the Join timer and Hold timer. When the Hold timer expires, Port 3 sends the first JoinEmpty message to RouterC. When the Join timer expires, Port 3 restarts the Hold timer. When the Hold timer expires again, Port 3 sends the second JoinEmpty message. After Port 2 receives the second JoinEmpty message, RouterB does not take any action because Port 2 has been added to VLAN 2.

  3. After Port 4 of RouterC receives the first JoinEmpty message, RouterC creates dynamic VLAN 2 and adds Port 4 to VLAN 2. After Port 4 receives the second JoinEmpty message, RouterC does not take any action because Port 4 has been added to VLAN 2.

  4. Every time the LeaveAll timer expires or a LeaveAll message is received, each router restarts the LeaveAll timer, Join timer, Hold timer, and Leave timer. Then Port 1 repeats step 1 to send JoinEmpty messages. Port 3 of RouterB sends JoinEmpty messages to RouterC in the same way.

Two-Way Registration

Figure 10-6  Two-way registration of a VLAN attribute

After one-way registration is complete, Port 1, Port 2, and Port 4 are added to VLAN 2 but Port 3 is not added to VLAN 2 because only ports receiving a JoinEmpty or JoinIn message can be added to dynamic VLANs. To transmit traffic of VLAN 2 in both directions, VLAN registration from RouterC to RouterA is required. The process is as follows:
  1. After one-way registration is complete, static VLAN 2 is created on RouterC (the dynamic VLAN is replaced by the static VLAN). Port 4 of RouterC starts the Join timer and Hold timer. When the Hold timer expires, Port 4 sends the first JoinIn message (because it has registered VLAN 2) to RouterB. When the Join timer expires, Port 4 restarts the Hold timer. When the Hold timer expires, Port 4 sends the second JoinIn message.

  2. After Port 3 of RouterB receives the first JoinIn message, RouterB adds Port 3 to VLAN 2 and requests Port 2 to start the Join timer and Hold timer. When the Hold timer expires, Port 2 sends the first JoinIn message to RouterA. When the Join timer expires, Port 2 restarts the Hold timer. When the Hold timer expires again, Port 2 sends the second JoinIn message. After Port 3 receives the second JoinIn message, RouterB does not take any action because Port 3 has been added to VLAN 2.

  3. When RouterA receives the JoinIn message, it stops sending JoinEmpty messages to RouterB. Every time the LeaveAll timer expires or a LeaveAll message is received, each router restarts the LeaveAll timer, Join timer, Hold timer, and Leave timer. Port 1 of RouterA sends a JoinIn message to RouterB when the Hold timer expires.

  4. RouterB sends a JoinIn message to RouterC.

  5. After receiving the JoinIn message, RouterC does not create dynamic VLAN 2 because static VLAN 2 has been created.

One-Way Deregistration

Figure 10-7  One-way deregistration of a VLAN attribute

When VLAN 2 is not required on the routers, the routers can deregister VLAN 2. The process is as follows:
  1. After static VLAN 2 is manually deleted from RouterA, Port 1 of RouterA starts the Hold timer. When the Hold timer expires, Port 1 sends a LeaveEmpty message to RouterB. Port 1 needs to send only one LeaveEmpty message.

  2. After Port 2 of RouterB receives the LeaveEmpty message, it starts the Leave timer. When the Leave timer expires, Port 2 deregisters VLAN 2. Then Port 2 is deleted from VLAN 2, but VLAN 2 is not deleted from RouterB because Port 3 is still in VLAN 2. At this time, RouterB requests Port 3 to start the Hold timer and Leave timer. When the Hold timer expires, Port 3 sends a LeaveIn message to RouterC. Static VLAN 2 is not deleted from RouterC; therefore, Port 3 can receive the JoinIn message sent from Port 4 after the Leave timer expires. In this case, RouterA and RouterB can still learn dynamic VLAN 2.

  3. After RouterC receives the LeaveIn message, Port 4 is not deleted from VLAN 2 because VLAN 2 is a static VLAN on RouterC.

Two-Way Deregistration

Figure 10-8  Two-way deregistration of a VLAN attribute

To delete VLAN 2 from all the routers, two-way deregistration is required. The process is as follows:
  1. After static VLAN 2 is manually deleted from RouterC, Port 4 of RouterC starts the Hold timer. When the Hold timer expires, Port 4 sends a LeaveEmpty message to RouterB.

  2. After Port 3 of RouterB receives the LeaveEmpty message, it starts the Leave timer. When the Leave timer expires, Port 3 deregisters VLAN 2. Then Port 3 is deleted from dynamic VLAN 2, and dynamic VLAN 2 is deleted from RouterB. At this time, RouterB requests Port 2 to start the Hold timer. When the Hold timer expires, Port 2 sends a LeaveEmpty message to RouterA.

  3. After Port 1 of RouterA receives the LeaveEmpty message, it starts the Leave timer. When the Leave timer expires, Port 1 deregisters VLAN 2. Then Port 1 is deleted from dynamic VLAN 2, and dynamic VLAN 2 is deleted from RouterA.

Translation
Download
Updated: 2019-05-25

Document ID: EDOC1000097279

Views: 20050

Downloads: 64

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