Example for Configuring GVRP


Networking Requirements

Figure 1.  GVRP Configuration Example

As shown in Figure 1, Department A and Department B (belonging to VLAN 200, 300) of a company are connected by multiple switches, which requires mutual communication between the two departments.

We can enable GVRP function for dynamic VLAN creation to reduce the workload of VLAN configuration. To achieve GVRP dynamic VLAN registration, first statically configure the access interface of Switch A and Switch C to join VLAN 200 and 300, then enable global GVRP function and the interface GVRP function on Switch A, Switch B and Switch C.

NOTEs:

  • To achieve GVRP bidirectional VLAN registration process, VLAN 200 and 300 need to be statically configured on the host-side interfaces of Switch A and Switch C, say ge-1/1/1 on Switch A and ge-1/1/2 on Switch C.
  • GVRP is not allowed to be enabled on the host-side interfaces of the access devices, say ge-1/1/1 on Switch A and ge-1/1/2 on Switch C. However, GVRP needs to be enabled on ge-1/1/2 of Switch A, ge-1/1/1 of Switch C and all interfaces of Switch B .
  • The port mode of GVRP interfaces should be Trunk type.

Procedure

Switch A

Step1         Configure VLAN and port mode.

admin@SwitchA# set vlans vlan-id 200
admin@SwitchA# set vlans vlan-id 300
admin@SwitchA# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching port-mode trunk
admin@SwitchA# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching vlan members 200
admin@SwitchA# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching vlan members 300
admin@SwitchA# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching port-mode trunk

Step2         Enable GVRP function globally.

admin@SwitchA# set protocols gvrp enable true

Step3         Enable GVRP function on the interface.         

admin@SwitchA# set protocols gvrp interface ge-1/1/2 enable true

Step4         Commit the configurations.

admin@SwitchA# commit

Switch B

Step1         Configure port-mode to trunk.

admin@SwitchB# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching port-mode trunk
admin@SwitchB# set interface gigabit-ethernet ge-1/1/4 family ethernet-switching port-mode trunk

Step2         Enable GVRP function globally.

admin@SwitchB# set protocols gvrp enable true

Step3         Enable GVRP function on the interfaces.

admin@SwitchB# set protocols gvrp interface ge-1/1/3 enable true
admin@SwitchB# set protocols gvrp interface ge-1/1/4 enable true

Step4         Commit the configurations.

admin@SwitchB# commit

Switch C

Step1         Configure VLAN and port mode.

admin@SwitchC# set vlans vlan-id 200
admin@SwitchC# set vlans vlan-id 300
admin@SwitchC# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching port-mode trunk
admin@SwitchC# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching port-mode trunk
admin@SwitchC# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching vlan members 200
admin@SwitchC# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching vlan members 300

Step2         Enable GVRP function globally.         

admin@SwitchC# set protocols gvrp enable true

Step3         Enable GVRP function on the interfaces.

admin@SwitchC# set protocols gvrp interface ge-1/1/1 enable true

Step4         Commit the configurations.

admin@SwitchC# commit

Verification

  • After the configuration, users belonging to VLAN 200 (or 300) of department A and department B can communicate with each other.
  • On Switch A, use command run show gvrp interface <interface-name> to view GVRP information on a specific interface, including GVRP Status, Registrar State, Timers and VLANs learned by the interface through GVRP.
admin@SwitchA# run show gvrp interface ge-1/1/2 
Port            Leave Timer(ms)  LeaveAll Timer(s)  Join Timer(ms)
ge-1/1/2        1000             10                 200 

Port            Vlans Added
ge-1/1/2        200, 300
  • On Switch A, use command run show gvrp interface <interface-name> statistics to view the statistics of GVRP PDUs on the interface.
admin@SwitchA# run show gvrp interface ge-1/1/2 statistics
packet_received: 245
packet_sent:    248

GVRP information on Switch B and Switch C can be viewed in the similar way and will not be repeated here.




Copyright © 2024 Pica8 Inc. All Rights Reserved.