H3C Low-End Ethernet Switches Configuration Guide(V1.01)

HomeSupportSwitchesH3C S3100 Switch SeriesConfigure & DeployConfiguration ExamplesH3C Low-End Ethernet Switches Configuration Guide(V1.01)
Table of Contents
Related Documents
05-GVRP Configuration Guide
Title Size Download
05-GVRP Configuration Guide 65.32 KB

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

As shown in Figure 1-1, all the switches in the network are S3600 series Ethernet switches.

l          All the involved Ethernet ports on the switches are configured to be trunk ports and permit all the VLANs to pass through.

l          GVRP is enabled for all the switches globally and for all the ports on them.

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

S5600 series

Release 1510, Release1602

All versions

S5100-SI/EI series

Release 2200, Release2201

All versions

S3600-SI/EI series

Release 1510, Release1602

All versions

S3100-EI series

Release 2104, Release 2107

All versions

S3100-C-SI series

S3100-T-SI series

Release 0011, Release 2102, Release 2107

All versions

S3100-52P

Release 1500, Release 1602

S3100-52P

 

Configuration Procedure

l          Configure Switch A

# Enable GVRP globally.

<SwitchA> system-view

[SwitchA] gvrp

# Configure Ethernet 1/0/1 to be a trunk port and to permit the packets of all the VLANs to pass through.

[SwitchA] interface Ethernet 1/0/1

[SwitchA-Ethernet1/0/1] port link-type trunk

[SwitchA-Ethernet1/0/1] port trunk permit vlan all

# Enable GVRP on Ethernet 1/0/1.

[SwitchA-Ethernet1/0/1] gvrp

[SwitchA-Ethernet1/0/1] quit

# Configure Ethernet 1/0/2 to be a trunk port and to permit the packets of all the VLANs to pass through.

[SwitchA] interface Ethernet 1/0/2

[SwitchA-Ethernet1/0/2] port link-type trunk

[SwitchA-Ethernet1/0/2] port trunk permit vlan all

# Enable GVRP on Ethernet 1/0/2.

[SwitchA-Ethernet1/0/2] gvrp

[SwitchA-Ethernet1/0/2] quit

# Configure Ethernet 1/0/3 to be a trunk port and to permit the packets of all the VLANs to pass through.

[SwitchA] interface Ethernet 1/0/3

[SwitchA-Ethernet1/0/3] port link-type trunk

[SwitchA-Ethernet1/0/3] port trunk permit vlan all

# Enable GVRP on Ethernet 1/0/3.

[SwitchA-Ethernet1/0/3] gvrp

[SwitchA-Ethernet1/0/3] quit

l          Configure Switch B

# Configure Ethernet 1/0/1 and Ethernet 1/0/2 to be trunk ports and to permit the packets of all the VLANs to pass through. Enable GVRP globally and enable GVRP on the two ports. # The configuration on Switch B is similar to that on Switch A.

l          Configure Switch C

# Create VLAN 5.

<SwitchC> system-view

[SwitchC] vlan5

[SwitchC-vlan5]

# Configure Ethernet 1/0/1 to be a trunk port and to permit the packets of all the VLANs to pass through. 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          Configure Switch D

# Configure Ethernet 1/0/1 to be a trunk port and to permit the packets of all the VLANs to pass through. Enable GVRP globally and enable GVRP on the port.

# Create VLAN 8.

l          Configure Switch E

# Configure Ethernet 1/0/1 to be a trunk port and to permit the packets of all the VLANs to pass through. Enable GVRP globally and enable GVRP on the port.

# Create VLAN 5 and VLAN 7.

l          Display the static VLAN registration information on Switch A, Switch B, and Switch C.

# 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

The output shows that static VLAN 7 created on Switch E has been registered on Switch A and Switch B and Switch E can normally register VLAN 8 propagated by Switch B.

l          Set the registration mode of Ethernet 1/0/1 on Switch E to fixed, that is, disable Ethernet 1/0/1 from registering VLANs dynamically and allow it to propagate only its local VLANs. Display the dynamic VLAN registration information on Switch A, Switch B, and Switch E.

# Set the registration mode of Ethernet 1/0/1 on Switch E to fixed.

[SwitchE] interface Ethernet 1/0/1

[SwitchE-Ethernet1/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-Ethernet1/0/1] display vlan dynamic

No dynamic vlans exist!

The output shows that static VLAN 7 created on Switch E has been registered on Switch A and Switch B and Switch E cannot register VLAN 8 propagated by Switch B.

l          Set the registration mode of Ethernet 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 Ethernet 1/0/1 on Switch E to forbidden, that is, disable Ethernet 1/0/1 from dynamically registering VLANs and allow it to propagate only the default VLAN (VLAN 1).

[SwitchE-Ethernet1/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!

The output shows that VLAN 7 is not registered on Switch A and Switch B, and Switch E cannot register VLAN 8 propagated by Switch B.

Complete Configuration

l          Configuration on Switch A

#

 gvrp

#

interface Ethernet1/0/1

 port link-type trunk

 port trunk permit vlan all

 gvrp

#

interface Ethernet1/0/2

 port link-type trunk

 port trunk permit vlan all

 gvrp

#

interface Ethernet1/0/3

 port link-type trunk

 port trunk permit vlan all

 gvrp                          

l          Configuration on Switch B

#

 gvrp

#

interface Ethernet1/0/1

 port link-type trunk

 port trunk permit vlan all

 gvrp

#

interface Ethernet1/0/2

 port link-type trunk

 port trunk permit vlan all

 gvrp

l          Configuration on Switch C

#

 gvrp

#

vlan 5

#

interface Ethernet1/0/1

 port link-type trunk

 port trunk permit vlan all

 gvrp

l          Configuration on Switch D

#

 gvrp

#

vlan 8

#

interface Ethernet1/0/1

 port link-type trunk

 port trunk permit vlan all

 gvrp

l          Configuration on Switch E

#

 gvrp

#

vlan 5

#

vlan 7

#

interface Ethernet1/0/1

 port link-type trunk

 port trunk permit vlan all

 gvrp registration forbidden

 gvrp

Precautions

l          The port trunk permit vlan all command is designed for GVRP only. To prevent users of unauthorized VLANs from accessing restrictive resources from a port, do not use the command when GVRP is disabled on the port.

l          Before enabling GVRP on a port, enable GVRP globally first.

l          Use GVRP only on trunk ports.

 

  • 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
新华三官网