GVRP, or GARP VLAN Registration Protocol, is an industry-standard protocol designed to circulate VLAN information from device to device. With GVRP, a single switch is manually configured with all desired VLANs for the network, and all other switches on the network learn these VLANs dynamically.
The gvrp enable global configuration command enables GVRP globally. To disable GVRP globally on the switch, use the no form of this command.
Syntax
gvrp enable
no gvrp enable
Default Configuration
GVRP is globally disabled.
Command Mode
Global Configuration Mode
User Guidelines
There are no user guidelines for this command.
Example
The following example globally enables GVRP on the device.
Console (config)# gvrp enable
gvrp enable (interface)
The gvrp enable interface configuration command enables GVRP on an interface. To disable GVRP on an interface, use the no form of this command.
The default port state is access, which is a port that belongs to a single, untagged VLAN. GVRP cannot join a port with state as access. To modify the port state, see the command switchport mode.
Example
The following example enables GVRP on port 1/e8.
Console (config)# interface ethernet 1/e8
Console (config-if)# gvrp enable
garp timer
Use the garp timer interface configuration command to adjust the GARP application join, leave, and leaveall GARP timer values. To reset the timer to default values, use the no form of this command.
Syntax
garp timer {join | leave | leaveall} timer_value
no garp timer
joinIndicates the time in milliseconds that PDUs are transmitted.
leaveIndicates the amount of time in milliseconds that the device waits before leaving its GARP state. The leave time is activated by a leave all time message sent/received, and cancelled by the Join message.
leaveallUsed to confirm the port within the VLAN. The time in milliseconds between messages sent.
The following relationship must be maintained for the various timer values:
Leave time must be greater than or equal to three times the join time.
Leaveall time must be greater than the leave time.
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 will not operate successfully.
Example
The following example sets the leave timer for port 1/e8.
Console (config)# interface ethernet 1/e8
Console (config-if)# garp timer leave 900
gvrp vlan-creation-forbid
Use the gvrp vlan-creation-forbid interface configuration command to disable dynamic VLAN creation. To enable dynamic VLAN creation, use the no form of this command.
The following example disables dynamic VLAN creation on port 1/e8.
Console (config)# interface ethernet 1/e8
Console (config-if)# gvrp vlan-creation-forbid
gvrp registration-forbid
Use the gvrp registration-forbidden interface configuration command to de-register all VLANs and prevent dynamic VLAN registration on the port. To allow dynamic registering for VLANs on a port, use the no form of this command.
Syntax
gvrpregistration-forbid
no gvrpregistration-forbid
Default Configuration
Dynamic registering and deregistering for each VLAN on the port is allowed.
The following example clears all the GVRP statistics information on port 1/e8.
Console # clear gvrp statistics ethernet 1/e8
show gvrp configuration
Use the show gvrp configuration privileged EXEC command to display GVRP configuration information, including timer values, whether GVRP and dynamic VLAN creation is enabled, and which ports are running GVRP.
Syntax
show gvrp configuration [ethernetinterface | port-channelport-channel-number]
interfaceAn ethernet interface
port-channel-numberA port-channel index
Default Configuration
This command has no default configuration.
Command Mode
Privileged EXEC Mode
User Guidelines
There are no user guidelines for this command.
Example
The following example displays GVRP configuration information.
Console# show gvrp configuration
GVRP Feature is currently enabled on the switch.
Maximum VLANs: 256, Maximum VLANs after reset: 256.
Port(s) Status Registration Dynamic VLAN Timers (milliseconds)