H3C Low-End and Mid-Range Ethernet Switches Configuration Examples(V1.01)

HomeSupportSwitchesH3C S5500 Switch SeriesConfigure & DeployConfiguration ExamplesH3C Low-End and Mid-Range Ethernet Switches Configuration Examples(V1.01)
Table of Contents
Related Documents

03-GVRP Configuration Guide


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

Hardware 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

# Enable GVRP globally.

<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.

 

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.
  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网