clear gvrp statistics
To clear GVRP statistical information for all interfaces or for a specific interface, use the clear gvrp statistics Privileged EXEC mode command.
Syntax
clear gvrp statistics [interface-id]
Parameters
Interface-id—(Optional) Specifies an interface ID. The interface ID can be one of the following types: Ethernet port or Port-channel.
Default Configuration
All GVRP statistics are cleared.
Command Mode
Privileged EXEC mode
Example
The following example clears all GVRP statistical information on te1/0/4.
switchxxxxxx# clear gvrp statistics te1/ 0 / 4 |
gvrp enable (Global)
To enable the Generic Attribute Registration Protocol (GARP) VLAN Registration Protocol (GVRP) globally, use the gvrp enable Global Configuration mode command. To disable GVRP on the device, use the no form of this command.
Syntax gvrp enable no gvrp enable
Parameters
This command has no arguments or keywords.
Default Configuration
GVRP is globally disabled.
Command Mode
Global Configuration mode
Example
The following example enables GVRP globally on the device.
switchxxxxxx(config)# gvrp enable |
gvrp enable (Interface)
To enable GVRP on an interface, use the gvrp enable Interface (Ethernet, Port Channel) Configuration mode command. To disable GVRP on an interface, use the no form of this command.
Syntax gvrp enable no gvrp enable Parameters
This command has no arguments or keywords.
Default Configuration
GVRP is disabled on all interfaces.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
An access port does not dynamically join a VLAN because it is always a member of a single VLAN only. Membership in an untagged VLAN is propagated in the same way as in a tagged VLAN. That is, the PVID must be manually defined as the untagged VLAN ID.
Example
The following example enables GVRP on te1/0/4.
switchxxxxxx(config)# interface te1/0/4 switchxxxxxx(config-if)# gvrp enable |
garp timer
To adjust the values of the join, leave and leaveall timers of GARP applications, such as GVRP, use the garp timer Interface Configuration mode command. To restore the default configuration, use the no form of this command.
Syntax
garp timer {join | leave | leaveall} timer-value no garp timer
Parameters
- The following specify the type of timer. The possible values are:
- join—Specifies the GARP join timer. The timer value for this type of timer specifies the time interval between the two join messages sent by the GARP application.
- leave—Specifies the GARP leave timer. The timer value for this type of timer specifies the time interval for a GARP application to wait for a join message after receiving a leave message for a GARP attribute, before it de-registers the GARP attribute.
- leaveall—Specifies the GARP leaveall timer. The timer value for this type of timer specifies the time interval between leaveall messages for a GARP entity, which prompt other GARP entities to re-reregister all attribute information on this entity.
- timer-value—Specifies the timer value in milliseconds in multiples of 10.
(Range: 10–2147483640)
Default Configuration
The following are the default timer values:
- Join timer—200 milliseconds
- Leave timer—600 milliseconds
- Leaveall timer—10000 milliseconds
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
The timer-value must be a multiple of 10.
The following relationship must be maintained between the timers:
- The leave timer value must be greater than or equal to three times the join timer.
- The leave-all timer value must be greater than the leave timer.
Set the same GARP timer values on all Layer 2-connected devices to ensure proper operation of the GARP application.
Example
The following example sets the leave timer for te1/0/4 to 900 milliseconds.
switchxxxxxx(config-if)# interface te1/0/4 switchxxxxxx(config-if)# garp timer leave 900 |
gvrp registration-forbid
To deregister all dynamic VLANs on a port and prevent VLAN creation or registration on the port, use the gvrp registration-forbid Interface Configuration mode command. To allow dynamic registration of VLANs on a port, use the no form of this command.
Syntax
gvrp registration-forbid no gvrp registration-forbid
Parameters
This command has no arguments or keywords.
Default Configuration
Dynamic registration of VLANs on the port is allowed.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
Example
The following example forbids dynamic registration of VLANs on te1/0/2.
switchxxxxxx(config-if)# interface te1/0/2 switchxxxxxx(config-if)# gvrp registration-forbid |
gvrp vlan-creation-forbid
To disable dynamic VLAN creation or modification, use the gvrp vlan-creation-forbid Interface Configuration mode command. To enable dynamic VLAN creation or modification, use the no form of this command.
Syntax
gvrp vlan-creation-forbid no gvrp vlan-creation-forbid
Parameters
This command has no arguments or keywords.
Default Configuration Enabled.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
Example
The following example disables dynamic VLAN creation on te1/0/3.
switchxxxxxx(config-if)# interface te1/0/3 switchxxxxxx(config-if)# gvrp vlan-creation-forbid |
show gvrp configuration
To display GVRP configuration information, including timer values, whether GVRP and dynamic VLAN creation are enabled, and which ports are running GVRP, use the show gvrp configuration EXEC mode command.
Syntax
show gvrp configuration [interface-id | detailed]
Parameters
- interface-id—(Optional) Specifies an interface ID. The interface ID can be one of the following types: Ethernet port or port-channel.
- detailed—(Optional) Displays information for non-present ports in addition to present ports.
Default Configuration
All GVRP statistics are displayed for all interfaces. If detailed is not used, only present ports are displayed.
Command Mode
User EXEC mode
Example
The following example displays GVRP configuration.
switchxxxxxx# show gvrp configuration GVRP Feature is currently Enabled on the device. Maximum VLANs: 4094 Port(s) GVRP-Status Regist- Dynamic Timers(ms) ration VLAN Creation Join Leave Leave All ---- ----------- -------- ------------- ---- ----- ---------te1/ 0 / 1 Enabled Forbidden Disabled 600 200 10000 te1/ 0 / 2 Enabled Normal Enabled 1200 400 20000 |
show gvrp error-statistics
Use the show gvrp error-statistics EXEC mode command to display GVRP error statistics for all interfaces or for a specific interface.
Syntax
show gvrp error-statistics [interface-id]
Parameters
interface-id—(Optional) Specifies an interface ID. The interface ID can be one of the following types: Ethernet port or Port-channel.
Default Configuration
All GVRP error statistics are displayed.
Command Mode
User EXEC mode
Example
The following example displays GVRP error statistics.
switchxxxxxx# show gvrp error-statistics GVRP Error Statistics: ---------------------- Legend: INVPROT : Invalid Protocol Id INVATYP : Invalid Attribute Type INVALEN : Invalid Attribute Length INVAVAL : Invalid Attribute Value INVEVENT: Invalid Event Port INVPROT INVATYP INVAVAL INVALEN INVEVENT -------- ------- ------- ------- ------- ------- te1/ 0 / 1 0 0 0 0 0 te1/ 0 / 2 0 0 0 0 0 te1/ 0 / 3 0 0 0 0 0 te1/ 0 / 4 0 0 0 0 0 |
show gvrp statistics
To display GVRP statistics for all interfaces or for a specific interface, use the show gvrp statistics EXEC mode command.
Syntax
show gvrp statistics [interface-id]
Parameters
interface-id—(Optional) Specifies an interface ID. The interface ID can be one of the following types: Ethernet port or Port-channel.
Default Configuration
All GVRP statistics are displayed.
Command Mode
User EXEC mode
Example
The following example displays GVRP statistical information.
switchxxxxxx# show gvrp statistics GVRP statistics: ---------------Legend: rJE : Join Empty Received rEmp: Empty Received rLE : Leave Empty Received sJE : Join Empty Sent sEmp: Empty Sent sLE : Leave Empty Sent Port rJE rJIn rEmp rLIn ----- ---- ---- ---- ---te1/ 0 / 1 0 0 0 0 te1/ 0 / 2 0 0 0 0 te1/ 0 / 3 0 0 0 0 te1/ 0 / 4 0 0 0 0 rJIn: Join In Received rLIn: Leave In Received rLA : Leave All Received sJIn: Join In Sent sLIn: Leave In Sent sLA : Leave All Sent rLE rLA sJE sJIn sEmp sLIn sLE sLA ---- ---- ---- ---- ---- ---- ---- --- 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
Leave A Comment?