|
|
This chapter describes how to configure the GARP VLAN Registration Protocol (GVRP).
This chapter consists of these sections:
GARP VLAN Registration Protocol (GVRP) is a Generic Attribute Registration Protocol (GARP) application that provides 802.1Q-compliant VLAN pruning and dynamic VLAN creation on 802.1Q trunk ports.
With GVRP, the switch can exchange VLAN configuration information with other GVRP switches, prune unnecessary broadcast and unknown unicast traffic, and dynamically create and manage VLANs on switches connected through 802.1Q trunk ports.
GVRP requires these software and hardware versions:
Table 12-1 shows the default GVRP configuration.
| Feature | Default Value |
|---|---|
GVRP global enable state | Disabled |
GVRP per-trunk enable state | Disabled on all ports |
GVRP dynamic creation of VLANs | Disabled |
GVRP registration mode | normal, with VLAN 1 set to fixed, for all ports |
GVRP applicant state | normal (ports do not declare VLANs when in the STP1 blocking state) |
GARP timers |
|
| 1STP = Spanning-Tree Protocol |
Follow these guidelines when configuring GVRP:
These sections describe how to configure GVRP:
You must enable GVRP globally before any GVRP processing occurs on the switch. Enabling GVRP globally enables GVRP to perform VLAN pruning on IEEE 802.1Q trunk links. Pruning occurs only on GVRP-enabled trunks. For information on setting the per-trunk port GVRP enable state, see the "Enabling GVRP on Individual 802.1Q Trunk Ports" section.
To enable dynamic VLAN creation, you must explicitly enable dynamic VLAN creation globally on the switch as well. For information on enabling dynamic VLAN creation, see the "Enable GVRP Dynamic VLAN Creation" section.
To enable GVRP globally on the switch, perform this task in privileged mode:
| Task | Command |
|---|---|
Step 1 Enable GVRP on the switch. | set gvrp enable |
Step 2 Verify the configuration. | show gvrp configuration |
This example shows how to enable GVRP and verify the configuration:
Console> (enable) set gvrp enable GVRP enabled Console> (enable) show gvrp configuration Global GVRP Configuration: GVRP Feature is currently enabled on the switch. GVRP dynamic VLAN creation is disabled. GVRP Timers(milliseconds) Join = 200 Leave = 600 LeaveAll = 10000 Port based GVRP Configuration: Port GVRP Status Registration ------------------------------------------------------- ----------- ------------ 2/1-2,3/1-8,7/1-24,8/1-24 Enabled Normal GVRP Participants running on 3/7-8. Console>
There are two per-port GVRP states:
You can configure the static GVRP port-state on any 802.1Q-capable switch ports, regardless of the global GVRP enable state or whether the port is an 802.1Q trunk. However, in order for the port to become an active GVRP participant, you must enable GVRP globally and the port must be an 802.1Q trunk port, either through CLI configuration or Dynamic Trunking Protocol (DTP) negotiation.
To enable GVRP on individual 802.1Q-capable ports, perform this task in privileged mode:
| Task | Command |
|---|---|
Step 1 Enable GVRP on an individual 802.1Q-capable port. | set port gvrp enable mod_num/port_num |
Step 2 Verify the configuration. | show gvrp configuration |
This example shows how to enable GVRP on 802.1Q-capable port 1/1:
Console> (enable) set port gvrp enable 1/1 GVRP enabled on 1/1. Console> (enable)
You can enable GVRP dynamic VLAN creation only if these conditions are met:
If you enable dynamic VLAN creation, these configuration restrictions are imposed:
If any port on the switch becomes an ISL trunk (either by CLI configuration or negotiated using Dynamic Trunk Protocol [DTP]) while dynamic VLAN creation is enabled, dynamic VLAN creation is automatically disabled until the conditions for enabling dynamic VLAN creation are restored.
To enable GVRP dynamic VLAN creation on the switch, perform this task in privileged mode:
| Task | Command |
|---|---|
Step 1 Enable dynamic VLAN creation on the switch. | set gvrp dynamic-vlan-creation enable |
Step 2 Verify the configuration. | show gvrp configuration |
This example shows how to enable dynamic VLAN creation on the switch:
Console> (enable) set gvrp dynamic-vlan-creation enable Dynamic VLAN creation enabled. Console> (enable)
These sections describe how to configure GVRP registration modes on switch ports:
Configuring an IEEE 802.1Q trunk port in normal registration mode allows dynamic creation (if dynamic VLAN creation is enabled), registration, and deregistration of VLANs on the trunk port. Normal mode is the default.
To configure GVRP normal registration on an 802.1Q trunk port, perform this task in privileged mode:
| Task | Command |
|---|---|
Step 1 Configure normal registration on an 802.1Q trunk port. | set gvrp registration normal mod_num/port_num |
Step 2 Verify the configuration. | show gvrp configuration |
This example shows how to configure normal registration on an 802.1Q trunk port:
Console> (enable) set gvrp registration normal 1/1 Registrar Administrative Control set to normal on port 1/1. Console> (enable)
Configuring an IEEE 802.1Q trunk port in fixed registration mode allows manual creation and registration of VLANs, prevents VLAN deregistration, and registers all known VLANs on other ports on the trunk port.
To configure GVRP fixed registration on an 802.1Q trunk port, perform this task in privileged mode:
| Task | Command |
|---|---|
Step 1 Configure fixed registration on an 802.1Q trunk port. | set gvrp registration fixed mod_num/port_num |
Step 2 Verify the configuration. | show gvrp configuration |
This example shows how to configure fixed registration on an 802.1Q trunk port:
Console> (enable) set gvrp registration fixed 1/1 Registrar Administrative Control set to fixed on port 1/1. Console> (enable)
Configuring an IEEE 802.1Q trunk port in forbidden registration mode deregisters all VLANs (except VLAN 1) and prevents any further VLAN creation or registration on the trunk port.
To configure GVRP forbidden registration on an 802.1Q trunk port, perform this task in privileged mode:
| Task | Command |
|---|---|
Step 1 Configure forbidden registration on an 802.1Q trunk port. | set gvrp registration forbidden mod_num/port_num |
Step 2 Verify the configuration. | show gvrp configuration |
This example shows how to configure forbidden registration on an 802.1Q trunk port:
Console> (enable) set gvrp registration forbidden 1/1 Registrar Administrative Control set to forbidden on port 1/1. Console> (enable)
To prevent undesirable Spanning-Tree Protocol (STP) topology reconfiguration on a port connected to a device that does not support per-VLAN STP, configure the GVRP active applicant state on the port. Ports in the GVRP active applicant state send GVRP VLAN declarations when they are in the STP blocking state, which prevents the STP bridge protocol data units (BPDUs) from being pruned from the other port.
To configure an 802.1Q trunk port to send VLAN declarations when in the blocking state, perform this task in privileged mode:
| Task | Command |
|---|---|
Configure an 802.1Q trunk port to send VLAN declarations when in the blocking state. | set gvrp applicant state {normal | active} mod_num/port_num |
This example shows how to configure a group of 802.1Q trunk ports to send VLAN declarations when in the blocking state:
Console> (enable) set gvrp applicant active 4/2-3,4/9-10,4/12-24 Applicant was set to active on port(s) 4/2-3,4/9-10,4/12-24. Console> (enable)
Use the normal keyword to return to the default state (active mode disabled).
You can modify the default GARP timer values on the switch.
When setting the timer values, the value for leave must be greater than three times the join value (leave >= join * 3). The value for leaveall must be greater than the value for leave (leaveall > leave).
If you attempt to set a timer value that does not adhere to these rules, an error is returned. For example, if you set the leave timer to 600 ms and you attempt to configure the join timer to 350 ms, an error is returned. Set the leave timer to at least 1050 ms and then set the join timer to 350 ms.
![]() | Caution Set the same GARP timer values on all Layer 2-connected devices. If the GARP timers are set differently on Layer 2-connected devices, GARP applications (for example, GMRP and GVRP) do not operate successfully. |
To adjust the GARP timer values, perform this task in privileged mode:
| Task | Command |
|---|---|
Step 1 Set the GARP timer values. | set garp timer {join | leave | leaveall} timer_value |
Step 2 Verify the configuration. | show garp timer |
This example shows how to set GARP timers and verify the configuration:
Console> (enable) set garp timer leaveall 10000 GMRP/GARP leaveAll timer value is set to 10000 milliseconds. Console> (enable) set garp timer leave 600 GMRP/GARP leave timer value is set to 600 milliseconds. Console> (enable) set garp timer join 200 GMRP/GARP join timer value is set to 200 milliseconds. Console> (enable) show garp timer Timer Timer Value (milliseconds) -------- -------------------------- Join 200 Leave 600 LeaveAll 10000 Console> (enable)
To display GVRP statistics on the switch, perform this task:
| Task | Command |
Display GVRP statistics. | show gvrp statistics [mod_num/port_num] |
This example shows how to display GVRP statistics for port 1/1:
Console> (enable) show gvrp statistics 1/1 Join Empty Received: 0 Join In Received: 0 Empty Received: 0 LeaveIn Received: 0 Leave Empty Received: 0 Leave All Received: 40 Join Empty Transmitted: 156 Join In Transmitted: 0 Empty Transmitted: 0 Leave In Transmitted: 0 Leave Empty Transmitted: 0 Leave All Transmitted: 41 VTP Message Received: 0 Console> (enable)
To clear all GVRP statistics on the switch, perform this task in privileged mode:
| Task | Command |
Clear GVRP statistics. | clear gvrp statistics {mod_num/port_num | all} |
This example shows how to clear all GVRP statistics on the switch:
Console> (enable) clear gvrp statistics all GVRP Statistics cleared for all ports. Console> (enable)
To disable GVRP on individual 802.1Q trunk ports, perform this task in privileged mode:
| Task | Command |
|---|---|
Step 1 Disable GVRP on an individual 802.1Q trunk port. | set port gvrp disable mod_num/port_num |
Step 2 Verify the configuration. | show gvrp configuration |
This example shows how to disable GVRP on 802.1Q trunk port 1/1:
Console> (enable) set gvrp disable 1/1 GVRP disabled on 1/1. Console> (enable)
To disable GVRP globally on the switch, perform this task in privileged mode:
| Task | Command |
|---|---|
Disable GVRP on the switch. | set gvrp disable |
This example shows how to disable GVRP globally on the switch:
Console> (enable) set gvrp disable GVRP disabled Console> (enable)
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Mon Jul 19 12:44:27 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.