Description

The GARP (Generic Attribute Registration Protocol) VLAN Registration Protocol (GVRP) defines a GARP application that provides the 802.1Q-compliant VLAN pruning and dynamic VLAN creation on 802.1Q trunk ports. GVRP is an application defined in the IEEE 802.1P standard that allows for the control of 802.1Q VLANs.
 

Solution


Implementation of DYNAMIC GVRP

The sample below shows a dynamic VLAN configuration for the EX-series switches.  The link provided also provides additional information concerning the GVRP configuration.
 

  • STEP 1: Create Vlans named vlan100 and vlan200 in EX-Series Switch 1 and EX-Series Switch 2.


user@switch# set vlans vlan100 vlan-id 100

user@switch# set vlans vlan200 vlan-id 200

}
vlans {
vlan100 {
vlan-id 100;
}
}
vlan200 {
vlan-id 200;
}
}

  • STEP 2: Create a port as trunk on EX-Series Switch 1 and Switch 2
user@switch# set interfaces ge-0/0/18 unit 0 family ethernet-switching port-mode trunk

user@switch# set interfaces ge-0/0/20 unit 0 family ethernet-switching port-mode trunk

interfaces {
ge-0/0/18 {
unit 0 {
family ethernet-switching {
port-mode trunk;
}
}
}
ge-0/0/20 {
unit 0 {
family ethernet-switching {
port-mode trunk;
}
}
}
 
  • STEP 3: Create a port as an access on EX-Series Switch 1 and Switch 2 . Each port as a member of one of the Vlans
user@switch# set interfaces ge-0/0/0 unit 0 family ethernet-switching port-mode access
user@switch# set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members vlan100

[edit]
user@switch# show interfaces ge-0/0/0
unit 0 {
family ethernet-switching {
port-mode access;
vlan {
members vlan100;
 
user@switch# set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode access
user@switch# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members vlan200


[edit]
user@switch# show interfaces ge-0/0/1
unit 0 {
family ethernet-switching {
port-mode access;
vlan {
members vlan200;
  • STEP 4: Enable GVRP on both TRUNK ports (i.e on EX-Switch 1 and EX-Switch 2) and connect them together
protocols {
gvrp {
interface ge-0/0/18.0;
interface ge-0/0/20.0;
}

Verification:

 

  • Output on EX Switch 1:
user@switch# run show vlans
Name Tag Interfaces
default
ge-0/0/2.0, ge-0/0/4.0, ge-0/0/5.0, ge-0/0/7.0,
ge-0/0/9.0, ge-0/0/10.0, ge-0/0/11.0, ge-0/0/12.0,
ge-0/0/13.0, ge-0/0/14.0, ge-0/0/15.0, ge-0/0/16.0,
ge-0/0/17.0, ge-0/0/19.0, ge-0/0/21.0, ge-0/0/22.0,
ge-0/0/23.0
vlan100 100
ge-0/0/0.0*, ge-0/0/18.0*, ge-0/0/20.0*
vlan200 200
ge-0/0/1.0*, ge-0/0/18.0*, ge-0/0/20.0*
  • Output on EX Switch 2 :
user@switch# run show vlans
Name Tag Interfaces
default
ge-0/0/3.0, ge-0/0/4.0, ge-0/0/5.0, ge-0/0/6.0,
ge-0/0/7.0, ge-0/0/9.0, ge-0/0/10.0, ge-0/0/11.0,
ge-0/0/12.0, ge-0/0/13.0, ge-0/0/14.0, ge-0/0/15.0,
ge-0/0/16.0, ge-0/0/17.0, ge-0/0/19.0, ge-0/0/21.0,
ge-0/0/22.0, ge-0/0/23.0, ge-0/0/24.0, ge-0/0/25.0,
ge-0/0/26.0, ge-0/0/27.0, ge-0/0/28.0, ge-0/0/29.0,
ge-0/0/30.0, ge-0/0/31.0, ge-0/0/32.0, ge-0/0/33.0,
ge-0/0/34.0, ge-0/0/35.0, ge-0/0/36.0, ge-0/0/37.0,
ge-0/0/38.0, ge-0/0/39.0, ge-0/0/40.0, ge-0/0/41.0,
ge-0/0/42.0, ge-0/0/43.0, ge-0/0/44.0, ge-0/0/45.0,
ge-0/0/46.0, ge-0/0/47.0, xe-0/1/1.0
vlan100 100
ge-0/0/0.0*, ge-0/0/18.0*, ge-0/0/20.0*
vlan200 200
ge-0/0/1.0*, ge-0/0/18.0*, ge-0/0/20.0*

Modification History

2024-09-02: Updated Data category

 

Related Information