- Table of Contents
-
- H3C Low-End and Mid-Range Ethernet Switches Configuration Examples(V1.01)
- 00-1Cover
- 01-Login Configuration Guide
- 02-VLAN Configuration Guide
- 03-GVRP Configuration Guide
- 04-Voice VLAN Configuration Guide
- 05-IP Addressing and Performance Configuration Guide
- 06-QinQ Configuration Guide
- 07-BPDU Tunnel Configuration Guide
- 08-VLAN Mapping Configuration Guide
- 09-MAC Address Table Management Configuration Guide
- 10-Link Aggregation Configuration Guide
- 11-IP Source Guard Configuration Guide
- 12-DLDP Configuration Guide
- 13-MSTP Configuration Guide
- 14-IPv4 Routing Configuration Guide
- 15-IPv6 Configuration Guide
- 16-IPv6 Routing Configuration Guide
- 17-IPv4 Multicast Configuration Guide
- 18-IPv6 Multicast Configuration Examples
- 19-802.1x Configuration Guide
- 20-AAA Configuration Guide
- 21-MAC Authentication Configuration Guide
- 22-Portal Configuration Guide
- 23-ARP Configuration Guide
- 24-DHCP Configuration Guide
- 25-ACL Configuration Guide
- 26-QoS Configuration Guide
- 27-Port Mirroring Configuration Guide
- 28-Cluster Management Configuration Guide
- 29-SNMP-RMON Configuration Guide
- 30-NTP Configuration Guide
- 31-FTP-TFTP Configuration Guide
- 32-UDP Helper Configuration Guide
- 33-Information Center Configuration Guide
- 34-DNS Configuration Guide
- 35-File System Management Configuration Guide
- 36-Remote Upgrade Configuration Guide
- 37-NQA Configuration Guide
- 38-VRRP Configuration Guide
- 39-SSH Configuration Guide
- 40-Port Security Configuration Guide
- 41-Port Isolation Configuration Guide
- 42-LLDP Configuration Guide
- 43-MCE Configuration Guide
- 44-PoE Configuration Guide
- 45-OAM Configuration Guide
- 46-Connectivity Fault Detection Configuration Guide
- 47-RRPP Configuration Guide
- 48-sFlow Configuration Guide
- 49-SSL-HTTPS Configuration Guide
- 50-PKI Configuration Guide
- 51-Track Configuration Guide
- 52-EPON-OLT Configuration Guide
- 53-Smart Link Configuration Guide
- 54-MPLS Configuration Guide
- Related Documents
-
03-GVRP Configuration Guide
1 GVRP Configuration Guide
Configuring GVRP
GVRP enables a switch to propagate local VLAN registration information to other participant switches and dynamically update the VLAN registration information from other switches to its local database about active VLAN members and through which port they can be reached. GVRP ensures that all switches on a bridged LAN maintain the same VLAN registration information, while less manual configuration workload is involved.
Network Diagram
Figure 1-1 Network diagram for GVRP configuration
Networking and Configuration Requirements
On the network as shown in Figure 1-1:
l Configure all the involved Ethernet ports on the switches as trunk ports that carry the traffic of all VLANs.
l Enable GVRP both globally and on all the ports on each switch.
l Configure static VLAN 5 for Switch C, static VLAN 8 for Switch D, and static VLAN 5 and static VLAN 7 for Switch E. Switch A and Switch B are not configured with static VLANs.
l Set the registration mode of GigabitEthernet 1/0/1 on Switch E to fixed, and display dynamic VLAN registration information of Switch A, Switch B, and Switch E.
l Set the registration mode of GigabitEthernet 1/0/1 on Switch E to forbidden, and display dynamic VLAN registration information of Switch A, Switch B, and Switch E.
Applicable Product Matrix
Product series |
Software version |
|
S3610 Series Ethernet Switches |
Release 5301, Release 5303 |
All versions |
S5510 Series Ethernet Switches |
Release 5301, Release 5303 |
All versions |
S5500-SI Series Ethernet Switches |
Release 1207 |
All versions except S5500-20TP-SI |
Release 1301 |
S5500-20TP-SI |
|
S5500-EI Series Ethernet Switches |
Release 2102 |
All versions |
S7500E Series Ethernet Switches |
Release 6100, Release 6300 |
All versions |
Configuration Procedure
l Configuration on Switch A
<SwitchA> system-view
[SwitchA] gvrp
# Configure GigabitEthernet 1/0/1 as a trunk port and assign it to all VLANs.
[SwitchA] interface GigabitEthernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] port link-type trunk
[SwitchA-GigabitEthernet1/0/1] port trunk permit vlan all
# Enable GVRP on GigabitEthernet 1/0/1.
[SwitchA-GigabitEthernet1/0/1] gvrp
[SwitchA-GigabitEthernet1/0/1] quit
# Configure GigabitEthernet 1/0/2 to be a trunk port and assign it to all VLANs.
[SwitchA] interface GigabitEthernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] port link-type trunk
[SwitchA-GigabitEthernet1/0/2] port trunk permit vlan all
# Enable GVRP on GigabitEthernet 1/0/2.
[SwitchA-GigabitEthernet1/0/2] gvrp
[SwitchA-GigabitEthernet1/0/2] quit
# Configure GigabitEthernet 1/0/3 to be a trunk port and assign it to all VLANs.
[SwitchA] interface GigabitEthernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] port link-type trunk
[SwitchA-GigabitEthernet1/0/3] port trunk permit vlan all
# Enable GVRP on GigabitEthernet 1/0/3.
[SwitchA-GigabitEthernet1/0/3] gvrp
l Configuration on Switch B
# Configure GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 as trunk ports and assign them to all VLANs. Enable GVRP globally and enable GVRP on the two ports. The configuration on Switch B is similar to that on Switch A.
l Configuration on Switch C
# Create VLAN 5.
<SwitchC> system-view
[SwitchC] vlan5
[SwitchC-vlan5]
# Configure GigabitEthernet 1/0/1 as a trunk port and assign it to all the VLANs. Enable GVRP globally and enable GVRP on the port. The configuration on Switch C is similar to that on Switch A.
For simplicity, the following provides only configuration steps. For configuration commands, refer to the configuration above.
l Configuration on Switch D
# Configure GigabitEthernet 1/0/1 as a trunk port and assign it to all the VLANs. Enable GVRP globally and enable GVRP on the port.
# Create VLAN 8.
l Configuration on Switch E
# Configure GigabitEthernet 1/0/1 as a trunk port and assign it to all the VLANs. Enable GVRP globally and enable GVRP on the port.
# Create VLAN 5 and VLAN 7.
l Display the dynamic VLAN registration information on Switch A, Switch B, and Switch E.
# Display the dynamic VLAN information on Switch A.
[SwitchA] display vlan dynamic
Total 3 dynamic VLAN exist(s).
The following dynamic VLANs exist:
5, 7, 8,
# Display the dynamic VLAN information on Switch B.
[SwitchB] display vlan dynamic
Total 3 dynamic VLAN exist(s).
The following dynamic VLANs exist:
5, 7, 8,
# Display the dynamic VLAN information on Switch E.
[SwitchE] display vlan dynamic
Total 1 dynamic VLAN exist(s).
The following dynamic VLANs exist:
8
l Set the registration mode of GigabitEthernet 1/0/1 on Switch E to fixed, and display the dynamic VLAN registration information on Switch A, Switch B, and Switch E.
# Set the registration mode of GigabitEthernet 1/0/1 on Switch E to fixed.
[SwitchE] interface GigabitEthernet 1/0/1
[SwitchE-GigabitEthernet1/0/1] gvrp registration fixed
# Display the dynamic VLAN information on Switch A.
[SwitchA] display vlan dynamic
Total 3 dynamic VLAN exist(s).
The following dynamic VLANs exist:
5, 7, 8,
# Display the dynamic VLAN information on Switch B.
[SwitchB] display vlan dynamic
Total 3 dynamic VLAN exist(s).
The following dynamic VLANs exist:
5, 7, 8,
# Display the dynamic VLAN information on Switch E.
[SwitchE-GigabitEthernet1/0/1] display vlan dynamic
No dynamic vlans exist!
l Set the registration mode of GigabitEthernet 1/0/1 on Switch E to forbidden, and display the dynamic VLAN registration information on Switch A, Switch B, and Switch E.
# Set the registration mode of GigabitEthernet 1/0/1 on Switch E to forbidden.
[SwitchE-GigabitEthernet1/0/1] gvrp registration forbidden
# Display the dynamic VLAN information on Switch A.
[SwitchA] display vlan dynamic
Total 2 dynamic VLAN exist(s).
The following dynamic VLANs exist:
5, 8,
# Display the dynamic VLAN information on Switch B.
[SwitchB] display vlan dynamic
Total 2 dynamic VLAN exist(s).
The following dynamic VLANs exist:
5, 8,
# Display the dynamic VLAN information on Switch E.
[SwitchE] display vlan dynamic
No dynamic vlans exist!
Complete Configuration
l Configuration on SwitchA
#
gvrp
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan all
gvrp
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk permit vlan all
gvrp
#
interface GigabitEthernet1/0/3
port link-type trunk
port trunk permit vlan all
gvrp
l Configuration on SwitchB
gvrp
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan all
gvrp
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk permit vlan all
gvrp
l Configuration on SwitchC
#
gvrp
#
vlan 5
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan all
gvrp
l Configuration on SwitchD
#
gvrp
#
vlan 8
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan all
gvrp
l Configuration on SwitchE
#
gvrp
#
vlan 5
#
vlan 7
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan all
gvrp registration forbidden
gvrp
Configuration Guidelines
l On a GVRP-enabled trunk port, you must configure the port trunk permit vlan all command to ensure that the traffic of all dynamically registered VLANs can pass through. To prevent users of unauthorized VLANs from accessing restrictive resources from a GVRP-disabled port, you are discouraged to use the command on the port.
l Before enabling GVRP on a port, enable GVRP globally first.
l GVRP can only be configured on trunk ports. You cannot change the link type of a trunk port with GVRP enabled.
l GVRP is mutually exclusive with the service loopback feature.
l In an MSTP network, GVRP can run on only the common and internal spanning tree (CIST). In addition, blocked ports on the CIST cannot receive/send GVRP packets.