Multiple VLAN Registration Protocol (MVRP) (GVRP)
Multiple VLAN Registration Protocol (MVRP) formerly known as GARP VLAN Registration Protocol (GVRP) or Generic VLAN Registration Protocol is a standards-based Layer 2 network protocol, for automatic configuration of VLAN information on switches. It was defined in the 802.1ak amendment to 802.1Q-2005.
Within a layer 2 network, MVRP provides a method to dynamically share VLAN information and configure the needed VLANs. In Other Words MVRP 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.Configuration Example
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 gvrpl Configuration on SwitchC# gvrp#vlan 5#interface GigabitEthernet1/0/1 port link-type trunk port trunk permit vlan all gvrpl Configuration on SwitchD# gvrp#vlan 8#interface GigabitEthernet1/0/1 port link-type trunk port trunk permit vlan all gvrpl Configuration on SwitchE# gvrp#vlan 5#vlan 7#interface GigabitEthernet1/0/1 port link-type trunk port trunk permit vlan all gvrp registration forbidden gvrpConfiguration 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.
Configuration Example
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.
Comments