0% found this document useful (0 votes)
16 views24 pages

01-12 GVRP Configuration

This document provides a configuration guide for the Generic VLAN Registration Protocol (GVRP) used in S1720, S2700, S5700, and S6720 Series Ethernet switches. It outlines the purpose, benefits, and operational mechanisms of GVRP, including VLAN registration and deregistration processes, GARP message types, and timer functionalities. Additionally, it details the packet format and registration modes for VLANs, emphasizing the reduction of manual configuration workload and potential errors in complex network environments.

Uploaded by

Bacof16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views24 pages

01-12 GVRP Configuration

This document provides a configuration guide for the Generic VLAN Registration Protocol (GVRP) used in S1720, S2700, S5700, and S6720 Series Ethernet switches. It outlines the purpose, benefits, and operational mechanisms of GVRP, including VLAN registration and deregistration processes, GARP message types, and timer functionalities. Additionally, it details the packet format and registration modes for VLANs, emphasizing the reduction of manual configuration workload and potential errors in complex network environments.

Uploaded by

Bacof16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

S1720, S2700, S5700, and S6720 Series Ethernet

Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

12 GVRP Configuration

About This Chapter

This chapter describes how to configure the Generic VLAN Registration Protocol
(GVRP).

12.1 Overview of GVRP


12.2 Understanding GVRP
12.3 Application Scenarios for GVRP
12.4 Licensing Requirements and Limitations for GVRP
12.5 Default Settings for GVRP
12.6 Configuring GVRP
12.7 Clearing GVRP Statistics
12.8 Example for Configuring GVRP
12.9 FAQ About GVRP

12.1 Overview of GVRP

Definition
The Generic Attribute Registration Protocol (GARP) provides a mechanism for
propagating attributes so that a protocol entity can register and deregister
attributes. By filling different attributes into GARP packets, GARP supports various
upper-layer applications.
The GARP VLAN Registration Protocol (GVRP) is used to register and deregister
VLAN attributes.
GARP identifies applications through destination MAC addresses. IEEE Std 802.1Q
assigns 01-80-C2-00-00-21 to the VLAN application (GVRP).

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 611


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Purpose
To deploy a VLAN on all devices on a network, a network administrator must
manually create it on each device. In Figure 12-1, three routers are connected
through trunk links. VLAN 2 is configured on SwitchA, and VLAN 1 is configured
on SwitchB and SwitchC. To forward packets of VLAN 2 from SwitchA to SwitchC,
the network administrator must manually create VLAN 2 on SwitchB and SwitchC.

Figure 12-1 GVRP application


SwitchA SwitchC

SwitchB

When a network is complex and the network administrator is unfamiliar with the
network topology, or when many VLANs are configured on the network, the
manual configuration workload is enormous. In addition, configuration errors may
occur due to human error. GVRP can be configured on the network to implement
automatic registration of VLANs, reducing configuration workload and the
likelihood of configuration errors.

Benefits
GVRP is based on GARP. It dynamically maintains VLAN attributes on devices.
Using GVRP, VLAN attributes of one device can be propagated throughout the
entire switching network. GVRP enables network devices to dynamically deliver,
register, and propagate VLAN attributes, reducing the workload of the network
administrator and helping to ensure correct configuration.

12.2 Understanding GVRP

12.2.1 Basic Concepts of GVRP

Participant
On a device, each interface running a protocol is a participant. On a device
running GVRP, each GVRP-enabled interface is treated as a GVRP participant, as
shown in Figure 12-2.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 612


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Figure 12-2 GVRP participant


GVRP应用实体

SwitchA SwitchC

SwitchB

VLAN Registration and Deregistration


GVRP implements automatic registration and deregistration of VLAN attributes.
The functions of VLAN registration and deregistration are:
● VLAN registration: adds interfaces to VLANs.
● VLAN deregistration: removes interfaces from VLANs.
GVRP registers and deregisters VLAN attributes through attribute declarations and
reclaim declarations as follows:
● When an interface receives a VLAN attribute declaration, it registers the VLAN
specified in the declaration. The interface is added to the VLAN.
● When an interface receives a VLAN attribute reclaim declaration, it deregisters
the VLAN specified in the declaration. The interface is removed from the
VLAN.
Interface register or deregister VLANs only when they receive GVRP messages.

Figure 12-3 VLAN registration and deregistration


Declaration Register

SwitchA Reclaim Deregister SwitchB


declaration

GARP Messages
GARP participants exchange VLAN information through GARP messages. Major
GARP messages are Join messages, Leave messages, and LeaveAll messages.
● Join message
When a GARP participant expects other devices to register its attributes, it
sends Join messages to other devices. When the GARP participant receives a

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 613


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Join message from another participant or when it is configured with attributes


statically, it also sends Join messages to other devices for the devices to
register the new attributes.
Join messages are classified into two types:
– JoinEmpty message: declares an unregistered attribute.
– JoinIn message: declares a registered attribute.
● Leave message
When a GARP participant expects other devices to deregister its attributes, it
sends Leave messages to other devices. When the GARP participant receives a
Leave message from another participant or when some of its attributes are
deregistered statically, it also sends Leave messages to other devices.
Leave messages are classified into two types:
– LeaveEmpty message: deregisters an unregistered attribute.
– LeaveIn message: deregisters a registered attribute.
● LeaveAll message
When a participant starts, it starts the LeaveAll timer. When the LeaveAll
timer expires, the participant sends LeaveAll messages to other devices.
A participant sends LeaveAll messages to deregister all attributes so that
other participants can re-register attributes of the local participant. LeaveAll
messages are used to periodically delete useless attributes on the network.
For example, an attribute of a participant is deleted. Due to a sudden power
failure, the participant does not send Leave messages to request other
participants to deregister the attribute. In this case, the attribute becomes
useless, necessitating the use of a LeaveAll message.

GARP Timers
GARP defines four timers:
● Join timer
The Join timer controls the sending of Join messages including JoinIn
messages and JoinEmpty messages.
After sending the first Join message, a participant starts the Join timer. If the
participant receives a JoinIn message before the Join timer expires, it does not
send a second Join message. If the participant does not receive any JoinIn
message, it sends a second Join message when the Join timer expires. This
ensures that Join messages can be sent to other participants. Each interface
maintains an independent Join timer.
● Hold timer
The Hold timer controls the sending of Join messages (JoinIn messages and
JoinEmpty messages) and Leave messages (LeaveIn messages and
LeaveEmpty messages).
After a participant is configured with an attribute or receives a message, it
sends the message to other participants only after the Hold timer expires. The
participant encapsulates messages received within the hold time into a
minimum number of packets, reducing the number of packets sent to other
participants. If the participant does not use the Hold timer but forwards a
message immediately after receiving it, a large number of packets are

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 614


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

transmitted on the network. This makes the network unstable and wastes
data fields of packets.
Each interface maintains an independent Hold timer. The Hold timer value
must be equal to or smaller than half of the Join timer value.
● Leave timer
The Leave timer controls attribute deregistration.
A participant starts the Leave timer after receiving a Leave or LeaveAll
message. If the participant does not receive any Join message of the
corresponding attribute before the Leave timer expires, the participant
deregisters the attribute.
A participant sends a Leave message if one of its attributes is deleted, but the
attribute may still exist on other participants. Therefore, the participant
receiving the Leave message cannot deregister the attribute immediately; it
must wait for messages from other participants.
For example, an attribute has two sources on the network: participant A and
participant B. Other participants register the attribute through GARP. If the
attribute is deleted from participant A, participant A sends a Leave message
to other participants. After receiving the Leave message, participant B sends a
Join message to other participants because the attribute still exists on
participant B. After receiving the Join message from participant B, other
participants retain the attribute. Other participants deregister the attribute
only if they do not receive any Join message of the attribute within a period
longer than two times the Join timer value. Therefore, the Leave timer value
must be greater than two times the Join timer value.
Each interface maintains an independent Leave timer.
● LeaveAll timer
When a GARP participant starts, it starts the LeaveAll timer. When the
LeaveAll timer expires, the participant sends a LeaveAll message and restarts
the LeaveAll timer.
After receiving a LeaveAll message, a participant restarts all GARP timers.
When its LeaveAll timer expires, the participant sends another LeaveAll
message. This reduces the number of LeaveAll messages sent within a period
of time.
If the LeaveAll timers of multiple devices expire simultaneously, they send
LeaveAll messages simultaneously, leading to an unnecessary generation of
LeaveAll messages. To solve this problem, each device uses a random value
between the LeaveAll timer value and 1.5 times the LeaveAll timer value as
its LeaveAll timer value. When a LeaveAll event occurs, all attributes on the
entire network are deregistered. The LeaveAll event affects the entire
network; therefore, the LeaveAll timer must be set to a value which is greater
than the Leave timer value.
Each device maintains a global LeaveAll timer.

Registration Modes
A manually configured VLAN is a static VLAN, and a VLAN created through GVRP
is a dynamic VLAN. GVRP provides three registration modes. Static VLANs and
dynamic VLANs are processed differently in each registration mode:
● In normal mode, dynamic VLANs can be registered on interfaces, and
interfaces can send declarations of static VLANs and dynamic VLANs.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 615


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

● In fixed mode, dynamic VLANs cannot be registered on interfaces, and


interfaces can send only declarations of static VLANs.
● In forbidden mode, dynamic VLANs cannot be registered on interfaces. All
VLANs except VLAN 1 are deleted from interfaces, and interfaces can send
only the declaration of VLAN 1.

12.2.2 Packet Format

GARP packets are encapsulated in the IEEE 802.3 Ethernet format, as shown in
Figure 12-4.

Figure 12-4 GARP packet format

DA SA length DSAP SSAP Ctrl PDU Ethernet Frame

1 3 N

Protocol ID Message 1 … Message N End Mark GARP PDU structure

1 2 N

Attribute Type Attribute List Message structure

1 N

Attribute 1 … Attribute N End Mark Attribute List structure

1 2 3 N

Attribute Length Attribute Event Attribute Value Attribute structure

The following table describes the fields in a GARP packet.

Field Description Value

Protocol ID Indicates the protocol ID. 1

Message Indicates the messages -


in the packet. Each
message consists of the
Attribute Type and
Attribute List fields.

Attribute Type Indicates an attribute 0x01 for GVRP, indicating


type, which is defined by that the attribute value
the GARP application. is a VLAN ID

Attribute List Indicates the attribute -


list of a message, which
consists of multiple
attributes.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 616


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Field Description Value

Attribute Indicates an attribute, -


which consists of the
Attribute Length,
Attribute Event, and
Attribute Value fields.

Attribute Length Indicates the length of 2 to 255, in bytes


an attribute.

Attribute Event Indicates the event that ● 0: LeaveAll Event


an attribute describes. ● 1: JoinEmpty Event
● 2: JoinIn Event
● 3: LeaveEmpty Event
● 4: LeaveIn Event
● 5: Empty Event

Attribute Value Indicates the value of an VLAN ID for GVRP


attribute. This field is invalid in a
LeaveAll attribute.

End Mark Indicates the end of a 0x00


GARP PDU.

12.2.3 Working Mechanism


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 12-5 One-way registration of a VLAN attribute


SwitchA SwitchC
Static vlan 2
Port 4
Port 1 JoinEmpty
JoinEmpty

Port 2 Port 3

SwitchB

Static VLAN 2 is created on SwitchA. Ports on SwitchB and SwitchC can join VLAN
2 automatically through one-way registration. The process is as follows:

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 617


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

1. After VLAN 2 is created on SwitchA, Port 1 of SwitchA starts the Join timer
and Hold timer. When the Hold timer expires, Port 1 sends the first JoinEmpty
message to SwitchB. 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 SwitchB receives the first JoinEmpty message, SwitchB creates
dynamic VLAN 2 and adds Port 2 to VLAN 2. In addition, SwitchB requests
Port 3 to start the Join timer and Hold timer. When the Hold timer expires,
Port 3 sends the first JoinEmpty message to SwitchC. 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, SwitchB does not take any action because Port 2 has
been added to VLAN 2.
3. After Port 4 of SwitchC receives the first JoinEmpty message, SwitchC creates
dynamic VLAN 2 and adds Port 4 to VLAN 2. After Port 4 receives the second
JoinEmpty message, SwitchC 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
switch restarts the LeaveAll, Join, Hold, and Leave timers. Port 1 then repeats
step 1 and sends JoinEmpty messages. In the same way, Port 3 of SwitchB
sends JoinEmpty messages to SwitchC.

Two-Way Registration

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


SwitchA SwitchC

Static vlan 2 Static vlan 2


Port 4
JoinEmpty
Port 1 JoinIn
JoinIn
JoinEmpty
JoinIn
JoinIn
Port 2 Port 3

SwitchB

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 interfaces receiving a
JoinEmpty or JoinIn message can be added to dynamic VLANs. To transmit traffic
of VLAN 2 in both directions, VLAN registration from SwitchC to SwitchA is
required. The process is as follows:
1. After one-way registration is complete, static VLAN 2 is created on SwitchC
(the dynamic VLAN is replaced by the static VLAN). Port 4 of SwitchC 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 SwitchB. 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 SwitchB receives the first JoinIn message, SwitchB adds Port 3
to VLAN 2 and requests Port 2 to start the Join timer and Hold timer. When

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 618


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

the Hold timer expires, Port 2 sends the first JoinIn message to SwitchA. 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, SwitchB does not take any action because Port 3
has been added to VLAN 2.
3. When SwitchA receives the JoinIn message, it stops sending JoinEmpty
messages to SwitchB. Every time the LeaveAll timer expires or a LeaveAll
message is received, each switch restarts the LeaveAll timer, Join timer, Hold
timer, and Leave timer. Port 1 of SwitchA sends a JoinIn message to SwitchB
when the Hold timer expires.
4. SwitchB sends a JoinIn message to SwitchC.
5. After receiving the JoinIn message, SwitchC does not create dynamic VLAN 2
because static VLAN 2 has been created.

One-Way Deregistration

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


SwitchA SwitchC
Static vlan 2
LeaveEmpty Port 4
Port 1

LeaveIn
Port 2 Port 3

SwitchB

When VLAN 2 is not required on the switches, the switches can deregister VLAN 2.
The process is as follows:
1. After static VLAN 2 is manually deleted from SwitchA, Port 1 of SwitchA starts
the Hold timer. When the Hold timer expires, Port 1 sends a LeaveEmpty
message to SwitchB. Port 1 needs to send only one LeaveEmpty message.
2. After Port 2 of SwitchB 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 SwitchB because Port 3
is still in VLAN 2. At this time, SwitchB requests Port 3 to start the Hold timer
and Leave timer. When the Hold timer expires, Port 3 sends a LeaveIn
message to SwitchC. Static VLAN 2 is not deleted from SwitchC; therefore,
Port 3 can receive the JoinIn message sent from Port 4 after the Leave timer
expires. In this case, SwitchA and SwitchB can still learn dynamic VLAN 2.
3. After SwitchC receives the LeaveIn message, Port 4 is not deleted from VLAN
2 because VLAN 2 is a static VLAN on SwitchC.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 619


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Two-Way Deregistration

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


SwitchA SwitchC

LeaveEmpty Port 4
LeaveEmpty
Port 1

LeaveEmpty LeaveIn

Port 2 Port 3

SwitchB

To delete VLAN 2 from all the switches, two-way deregistration is required. The
process is as follows:
1. After static VLAN 2 is manually deleted from SwitchC, Port 4 of SwitchC starts
the Hold timer. When the Hold timer expires, Port 4 sends a LeaveEmpty
message to SwitchB.
2. After Port 3 of SwitchB 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 SwitchB.
At this time, SwitchB requests Port 2 to start the Hold timer. When the Hold
timer expires, Port 2 sends a LeaveEmpty message to SwitchA.
3. After Port 1 of SwitchA 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 SwitchA.

12.3 Application Scenarios for GVRP


GVRP enables routers on a network to dynamically maintain and update VLAN
information. With GVRP, you can adjust the VLAN deployment on the entire
network by configuring only a few devices. Analyzing the topology and managing
configurations are not necessary. In Figure 12-9, GVRP is enabled on all devices.
Devices are interconnected through trunk interfaces and each trunk interface
allows packets of all VLANs to pass. Using GVRP, you simply need to configure
static VLANs 100 to 1000 on SwitchA and SwitchC. Other devices can then learn
VLANs 100 to 1000 using GVRP.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 620


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Figure 12-9 Typical application of GVRP


SwitchB

SwitchA SwitchC
VLAN 100~1000 VLAN 100~1000

12.4 Licensing Requirements and Limitations for GVRP

Involved Network Elements


Other network elements are not required.

Licensing Requirements
GVRP configuration commands are available only after the S1720GW, S1720GWR,
and S1720X have the license (WEB management to full management Electronic
RTU License) loaded and activated and the switches are restarted. GVRP
configuration commands on other models are not under license control.

For details about how to apply for a license, see S Series Switch License Use
Guide.

Version Requirements

Table 12-1 Products and versions supporting GVRP

Product Product Software Version


Model

S1700 S1720GFR V200R006C10, V200R009C00, V200R010C00,


V200R011C00, V200R011C10

S1720GW, V200R010C00, V200R011C00, V200R011C10


S1720GWR

S1720GW- V200R010C00, V200R011C00, V200R011C10


E,
S1720GWR
-E

S1720X, V200R011C00, V200R011C10


S1720X-E

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 621


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Product Product Software Version


Model

Other Models that cannot be configured using commands.


S1700 For details about features and versions, see S1700
models Documentation Bookshelf.

S2700 S2700SI Not supported

S2700EI V100R005C01, V100R006(C00&C01&C03&C05)

S2710SI Not supported

S2720EI V200R006C10, V200R009C00, V200R010C00,


V200R011C10

S2750EI V200R003C00, V200R005C00SPC300, V200R006C00,


V200R007C00, V200R008C00, V200R009C00,
V200R010C00, V200R011C00, V200R011C10

S3700 S3700SI V100R005C01, V100R006(C00&C01&C03&C05)

S3700EI V100R005C01, V100R006(C00&C01&C03&C05)

S3700HI V100R006C01, V200R001C00

S5700 S5700LI V200R001C00, V200R002C00,


V200R003(C00&C02&C10), V200R005C00SPC300,
V200R006C00, V200R007C00, V200R008C00,
V200R009C00, V200R010C00, V200R011C00,
V200R011C10

S5700S-LI V200R001C00, V200R002C00, V200R003C00,


V200R005C00SPC300, V200R006C00, V200R007C00,
V200R008C00, V200R009C00, V200R010C00,
V200R011C00, V200R011C10

S5710-C-LI V200R001C00

S5710-X-LI V200R008C00, V200R009C00, V200R010C00,


V200R011C00, V200R011C10

S5700EI V100R005C01, V100R006(C00&C01),


V200R001(C00&C01), V200R002C00, V200R003C00,
V200R005(C00&C01&C02&C03)

S5700SI V100R005C01, V100R006C00, V200R001C00,


V200R002C00, V200R003C00, V200R005C00

S5710EI V200R001C00, V200R002C00, V200R003C00,


V200R005(C00&C02)

S5720EI V200R007C00, V200R008C00, V200R009C00,


V200R010C00, V200R011C00, V200R011C10

S5720LI, V200R010C00, V200R011C00, V200R011C10


S5720S-LI

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 622


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Product Product Software Version


Model

S5720SI, V200R008C00, V200R009C00, V200R010C00,


S5720S-SI V200R011C00, V200R011C10

S5700HI V100R006C01, V200R001(C00&C01), V200R002C00,


V200R003C00, V200R005(C00SPC500&C01&C02)

S5710HI V200R003C00, V200R005(C00&C02&C03)

S5720HI V200R006C00, V200R007(C00&C10), V200R008C00,


V200R009C00, V200R010C00, V200R011C00,
V200R011C10

S5730SI V200R011C10

S5730S-EI V200R011C10

S6700 S6700EI V100R006C00, V200R001(C00&C01), V200R002C00,


V200R003C00, V200R005(C00&C01&C02)

S6720EI V200R008C00, V200R009C00, V200R010C00,


V200R011C00, V200R011C10

S6720S-EI V200R009C00, V200R010C00, V200R011C00,


V200R011C10

S6720LI, V200R011C00, V200R011C10


S6720S-LI

S6720SI, V200R011C00, V200R011C10


S6720S-SI

NOTE
To know details about software mappings, see Hardware Query Tool.

Feature Limitations
● When many dynamic VLANs need to be registered or the network radius is
large, using default values of timers may cause VLAN flapping and high CPU
usage. In this case, increase values of the timers. The following values are
recommended depending on the number of VLANs.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 623


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Table 12-2 Relationship between GARP timer values and number of dynamic
VLANs that need to be registered

Number of Dynamic VLANs to Be Registered (N)


Timer N ≤ 500 500 < N ≤ 1000 < N ≤ N > 1500
1000 1500

GARP Hold 100 200 800 1000


timer centiseconds centiseconds centiseconds centiseconds
(1 second) (2 seconds) (8 seconds) (10 seconds)

GARP Join 600 1200 4000 6000


timer centiseconds centiseconds centiseconds centiseconds
(6 seconds) (12 seconds) (40 seconds) (1 minute)

GARP Leave 3000 6000 20000 30000


timer centiseconds centiseconds centiseconds centiseconds
(30 seconds) (1 minute) (3 minutes (5 minutes)
and 20
seconds)

GARP 12000 24000 30000 32765


LeaveAll centiseconds centiseconds centiseconds centiseconds
timer (2 minutes) (4 minutes) (5 minutes) (5 minutes
and 27.65
seconds)

● The blocked port in instance 0 of STP/RSTP/MSTP can block GVRP packets;


the blocked ports of other MSTIs and other ring network protocols such as
ERPS, SEP, RRPP, Smart Link, and VBST cannot block GVRP packets. To ensure
that GVRP runs normally and prevent GVRP loops, do not enable GVRP on the
blocked port of a ring network protocol.
● The blocked ports of LBDT cannot block GVRP packets. To ensure that GVRP
runs normally and prevent GVRP loops, do not enable GVRP on the blocked
port of LBDT.

12.5 Default Settings for GVRP

Parameter Default Setting

GVRP function Disabled globally and on interfaces

Registration mode of the Normal


GVRP interface

LeaveAll timer 1000 centiseconds

Hold timer 10 centiseconds

Join timer 20 centiseconds

Leave timer 60 centiseconds

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 624


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

12.6 Configuring GVRP

12.6.1 Enabling GVRP

Context
Before enabling GVRP on an interface, you must enable GVRP globally. GVRP can
be enabled only on trunk interfaces. You must perform related configurations to
ensure that all dynamically registered VLANs can pass the trunk interfaces.

NOTE

If the VCMP role is the client or server, GVRP cannot be enabled. In this case, run the vcmp role
command to configure the VCMP role as silent or transparent. If GVRP has been enabled, do
not switch the VCMP role to client or server.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run gvrp
GVRP is enabled globally.
Step 3 Run interface interface-type interface-number
The interface view is displayed.
Step 4 Run port link-type trunk
The link type of the interface is set to trunk.
Step 5 Run port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all }
The interface is added to the specified VLANs.
Step 6 Run gvrp
GVRP is enabled on the interface.
By default, GVRP is disabled globally and on each interface.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 625


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

NOTE

● VLAN configuration will trigger GVRP messages. If too many VLANs are configured, you
are advised to configure VLANs on devices one by one and configure the timer.
Otherwise, dynamic VLANs may flap.
● When many dynamically registered VLANs such as 4094 VLANs are configured, run the
car packet-type gvrp cir cir-value command to increase the CPCAR value. To prevent a
high load on the CPU, the CPCAR cannot be increased infinitely. If the CPCAR values are
adjusted improperly, network services are affected. To adjust the CPCAR values, contact
technical support personnel.
● If an interface is changed to another link type, such as access, hybrid, negotiation-
desirable, or negotiation-auto, the GVRP configuration on the interface is automatically
deleted.
● The blocked interface in instance 0 of STP/RSTP/MSTP can block GVRP packets. The
blocked interfaces of other MSTIs and other ring network protocols such as ERPS, SEP,
RRPP, Smart Link, and VBST cannot block GVRP packets. To ensure that GVRP runs
normally and to prevent GVRP loops, do not enable GVRP on the blocked interface of a
ring network protocol.
● The blocked ports of LBDT cannot block GVRP packets. To ensure that GVRP runs
normally and prevent GVRP loops, do not enable GVRP on the blocked port of LBDT.

----End

12.6.2 (Optional) Setting the Registration Mode for a GVRP


Interface

Context
A GVRP interface supports three registration modes:
● Normal: In this mode, the GVRP interface can dynamically register and
deregister VLANs, as well as transmit dynamic VLAN registration information
and static VLAN registration information.
● Fixed: In this mode, the GVRP interface is disabled from dynamically
registering and deregistering VLANs and can only transmit the static VLAN
registration information. If the registration mode is set to fixed for a trunk
interface, the interface allows only the manually configured VLANs to pass,
even if the interface is configured to allow all the VLANs to pass.
● Forbidden: In this mode, the GVRP interface is disabled from dynamically
registering and deregistering VLANs and can transmit only information about
VLAN 1. If the registration mode is set to forbidden for a trunk interface, the
interface allows only VLAN 1 to pass even if the interface is configured to
allow all the VLANs to pass.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 626


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Step 3 Run gvrp registration { fixed | forbidden | normal }


The registration mode is set for the interface.
By default, the registration mode of a GVRP interface is normal.

NOTE

Before setting the registration mode for an interface, enable GVRP on the interface.

----End

12.6.3 (Optional) Setting GARP Timers

Context
When a GARP participant is enabled, the LeaveAll timer starts. When the LeaveAll
timer expires, the GARP participant sends LeaveAll messages to request that other
GARP participants re-register all of their attributes. The LeaveAll timer then
restarts.
Devices on a network may have different LeaveAll timer settings. In this case, all
the devices use the smallest LeaveAll timer value on the network. When the
LeaveAll timer of a device expires, the device sends LeaveAll messages to other
devices. After other devices receive the LeaveAll messages, they reset their
LeaveAll timers. Therefore, only the LeaveAll timer with the smallest value takes
effect, even if devices have different LeaveAll timer settings.
When using the garp timer command to set GARP timers, pay attention to the
following points:
● The undo garp timer command restores the default values of GARP timers. If
the default value of a timer is out of the valid range, the undo garp timer
command does not take effect.
● The value range of each timer changes along with the values of the other
timers. If a value you set for a timer is not in the allowed range, you can
change the value of the timer that determines the value range of this timer.
● To restore the default values of all the GARP timers, restore the Hold timer to
the default value, and then sequentially restore the Join timer, Leave timer,
and LeaveAll timer to the default values.
When many dynamic VLANs need to be registered or the network radius is large,
using default values of timers may cause VLAN flapping and high CPU usage. In
this case, increase values of the timers. The following values are recommended
depending on the number of VLANs.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 627


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Table 12-3 Relationship between GARP timer values and number of dynamic
VLANs that need to be registered

Number of Dynamic VLANs to Be Registered (N)


Timer N ≤ 500 500 < N ≤ 1000 < N ≤ N > 1500
1000 1500

GARP Hold 100 200 800 1000


timer centiseconds centiseconds centiseconds centiseconds
(1 second) (2 seconds) (8 seconds) (10 seconds)

GARP Join 600 1200 4000 6000


timer centiseconds centiseconds centiseconds centiseconds
(6 seconds) (12 seconds) (40 seconds) (1 minute)

GARP Leave 3000 6000 20000 30000


timer centiseconds centiseconds centiseconds centiseconds
(30 seconds) (1 minute) (3 minutes (5 minutes)
and 20
seconds)

GARP 12000 24000 30000 32765


LeaveAll centiseconds centiseconds centiseconds centiseconds
timer (2 minutes) (4 minutes) (5 minutes) (5 minutes
and 27.65
seconds)

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run garp timer leaveall timer-value

The value of the LeaveAll timer is set.

The default value of the LeaveAll timer is 1000 centiseconds (10 seconds).

The Leave timer length on an interface is restricted by the global LeaveAll timer
length. When configuring the global LeaveAll timer, ensure that all the interfaces
configured with a GARP Leave timer are working properly.

Step 3 Run interface interface-type interface-number

The interface view is displayed.

Step 4 Run garp timer { hold | join | leave } timer-value

The value of the Hold timer, Join timer, or Leave timer is set.

By default, the value of the Hold timer is 10 centiseconds, the value of the Join
timer is 20 centiseconds, and the value of the Leave timer is 60 centiseconds.

----End

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 628


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

12.6.4 Verifying the GVRP Configuration

Procedure
● Run the display gvrp status command to view the status of global GVRP.
● Run the display gvrp statistics [ interface { interface-type interface-number
[ to interface-type interface-number ] }&<1-10> ] command to view the
GVRP statistics on an interface.
● Run the display garp timer [ interface { interface-type interface-number [ to
interface-type interface-number ] }&<1-10> ] command to view the values of
the GARP timers.
----End

12.7 Clearing GVRP Statistics

Context

NOTICE

Cleared GVRP statistics cannot be restored. Exercise caution when you run this
command.

Procedure
Step 1 Run the reset garp statistics [ interface { interface-type interface-number [ to
interface-type interface-number ] }&<1-10> ] command in the user view to clear
GARP statistics on the specified interfaces.

----End

12.8 Example for Configuring GVRP

Networking Requirements
In Figure 12-10, company A's headquarters, a branch of company A, and company
B are connected using switches. GVRP is enabled to implement dynamic VLAN
registration.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 629


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

Figure 12-10 Configuring GVRP


SwitchB
GE0/0/1 GE0/0/2
GE0/0/1 GE0/0/1 SwitchC
SwitchA
Company A
GE0/0/2 GE0/0/2

Branch of
Company B
company A

The branch of Company A can communicate with Company A's headquarters


using SwitchA and SwitchB. Company B can communicate with company A's
headquarters using SwitchB and SwitchC. Interfaces connected to company A
allow only the VLAN to which Company B belongs to pass.

Configuration Roadmap
The configuration roadmap is as follows:

1. Enable GVRP to implement dynamic VLAN registration.


2. Configure GVRP on all switches of company A and set the registration mode
of the interfaces to normal to simplify configurations.
3. Configure GVRP on all switches of company A and set the registration mode
to fixed for the interfaces connecting to company A to allow only the VLAN to
which company B belongs to pass.

NOTE

Before enabling GVRP, you must configure the VCMP role as transparent or silent.

Procedure
Step 1 Configure SwitchA.

# Enable GVRP globally.


<HUAWEI> system-view
[HUAWEI] sysname SwitchA
[SwitchA] vcmp role silent
[SwitchA] gvrp

# Set the link type of GE 0/0/1 and GE 0/0/2 to trunk and configure the interfaces
to allow all VLANs to pass through.
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] port link-type trunk
[SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan all
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] port link-type trunk

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 630


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

[SwitchA-GigabitEthernet0/0/2] port trunk allow-pass vlan all


[SwitchA-GigabitEthernet0/0/2] quit

# Enable GVRP and set the registration mode on the interfaces.


[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] gvrp
[SwitchA-GigabitEthernet0/0/1] gvrp registration normal
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] gvrp
[SwitchA-GigabitEthernet0/0/2] gvrp registration normal
[SwitchA-GigabitEthernet0/0/2] quit

The configuration of SwitchB is similar to the configuration of SwitchA, and is not


mentioned here.
Step 2 Configure SwitchB.
# Enable GVRP globally.
<HUAWEI> system-view
[HUAWEI] sysname SwitchB
[SwitchB] vcmp role silent
[SwitchB] gvrp

# Set the link type of GE 0/0/1 and GE 0/0/2 to trunk and configure the interfaces
to allow all VLANs to pass through.
[SwitchB] interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1] port link-type trunk
[SwitchB-GigabitEthernet0/0/1] port trunk allow-pass vlan all
[SwitchB-GigabitEthernet0/0/1] quit
[SwitchB] interface gigabitethernet 0/0/2
[SwitchB-GigabitEthernet0/0/2] port link-type trunk
[SwitchB-GigabitEthernet0/0/2] port trunk allow-pass vlan all
[SwitchB-GigabitEthernet0/0/2] quit

# Enable GVRP and set the registration mode on the interfaces.


[SwitchB] interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1] gvrp
[SwitchB-GigabitEthernet0/0/1] gvrp registration normal
[SwitchB-GigabitEthernet0/0/1] quit
[SwitchB] interface gigabitethernet 0/0/2
[SwitchB-GigabitEthernet0/0/2] gvrp
[SwitchB-GigabitEthernet0/0/2] gvrp registration normal
[SwitchB-GigabitEthernet0/0/2] quit

Step 3 Configure SwitchC.


# Create VLAN 101 to VLAN 200.
<HUAWEI> system-view
[HUAWEI] sysname SwitchC
[SwitchC] vlan batch 101 to 200

# Enable GVRP globally.


[SwitchC] vcmp role silent
[SwitchC] gvrp

# Set the link type of GE 0/0/1 and GE 0/0/2 to trunk and configure the interfaces
to allow all VLANs to pass through.
[SwitchC] interface gigabitethernet 0/0/1
[SwitchC-GigabitEthernet0/0/1] port link-type trunk
[SwitchC-GigabitEthernet0/0/1] port trunk allow-pass vlan all
[SwitchC-GigabitEthernet0/0/1] quit

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 631


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

[SwitchC] interface gigabitethernet 0/0/2


[SwitchC-GigabitEthernet0/0/2] port link-type trunk
[SwitchC-GigabitEthernet0/0/2] port trunk allow-pass vlan all
[SwitchC-GigabitEthernet0/0/2] quit

# Enable GVRP and set the registration mode on the interfaces.


[SwitchC] interface gigabitethernet 0/0/1
[SwitchC-GigabitEthernet0/0/1] gvrp
[SwitchC-GigabitEthernet0/0/1] gvrp registration fixed
[SwitchC-GigabitEthernet0/0/1] quit
[SwitchC] interface gigabitethernet 0/0/2
[SwitchC-GigabitEthernet0/0/2] gvrp
[SwitchC-GigabitEthernet0/0/2] gvrp registration normal
[SwitchC-GigabitEthernet0/0/2] quit

Step 4 Verify the configuration.


After the configuration is complete, the branch of Company A can communicate
with the headquarters, and users of Company A in VLAN 101 to VLAN 200 can
communicate with users in Company B.
Run the display gvrp statistics command on SwitchA to view GVRP statistics on
GVRP interfaces, including the GVRP state of each interface, number of GVRP
registration failures, source MAC address of the last GVRP PDU, and registration
mode of each interface.
[SwitchA] display gvrp statistics

GVRP statistics on port GigabitEthernet0/0/1


GVRP status : Enabled
GVRP registrations failed :0
GVRP last PDU origin : 0000-0000-0000
GVRP registration type : Normal

GVRP statistics on port GigabitEthernet0/0/2


GVRP status : Enabled
GVRP registrations failed :0
GVRP last PDU origin : 0000-0000-0000
GVRP registration type : Normal
Info: GVRP is disabled on one or multiple ports.

Verify the configurations of SwitchB and SwitchC in the same way.

----End

Configuration Files
● SwitchA configuration file
#
sysname SwitchA
#
vcmp role silent
#
gvrp
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
#
return

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 632


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

● SwitchB configuration file


#
sysname SwitchB
#
vcmp role silent
#
gvrp
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
#
return

● SwitchC configuration file


#
sysname SwitchC
#
vcmp role silent
#
vlan batch 101 to 200
#
gvrp
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
gvrp registration fixed
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
#
return

12.9 FAQ About GVRP

12.9.1 Why Is the CPU Usage High When VLANs Are Created
or Deleted Through GVRP in Default Configuration?

The switch supports VLAN configuration on devices at both ends. When GVRP is
enabled on the network, it advertises information about dynamic VLANs in two
directions. Then the intermediate devices dynamically create and delete VLANs
based on the information. Dynamic maintenance of VLANs can greatly reduce
manual configurations.

The maximum 4 K dynamic VLANs are frequently created and deleted, which
triggers larger amount of packet communication. Receiving packets and delivering
dynamic VLANs occupy large amount of CPU resources.

In actual networking, you need to adjust GARP timers to the recommended values.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 633


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 12 GVRP Configuration

NOTE
The recommended values of the GARP timers are as follows:
GARP Hold timer: 100 centiseconds (1 second)
GARP Join timer: 600 centiseconds (6 seconds)
GARP Leave timer: 3000 centiseconds (30 seconds)
GARP LeaveAll timer: 12,000 centiseconds (2 minutes)
When more than 100 dynamic VLANs are created, use the preceding recommended values.
When the number of dynamic VLANs increases, lengths of the GARP timers need to be
increased.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 634

You might also like