GVRP Commands

This chapter contains the following sections:

clear gvrp statistics

To clear Generic VLAN Registration Protocol (GVRP) statistics for all interfaces or for an interface, use the clear gvrp statistics Privileged EXEC command.

Syntax

clear gvrp {error-statistics | statistics} [interfaces interface-id]

Parameters

error-statistics—Clears error statistics only.

statistics—Clears normal statistics.

interfaces interface-id—(Optional) Specifies an interface ID or a list of interface IDs. The interface must be an Ethernet port.

Default Configuration

N/A

Command Mode

Privileged EXEC Mode

Example

switchxxxxxx# clear gvrp statistics interfaces gi11

gvrp enable (Global)

To enable GVRP globally on the switch, use the gvrp enable Global Configuration mode command.

To disable GVRP on the switch, use the no form of this command.

Syntax

gvrp enable

no gvrp enable

Parameters

N/A

Default Configuration

GVRP is globally disabled.

Command Mode

Global Configuration mode

Example

switchxxxxxx(config)# gvrp enable

gvrp enable (Interface)

To enable GVRP on an interface, use the gvrp enable Interface Configuration mode command.

To disable GVRP on an interface, use the no form of this command.

Syntax

gvrp enable

no gvrp enable

Default Configuration

GVRP is disabled on all interfaces.

Command Mode

Interface Configuration (Ethernet, port channel) mode

User Guidelines

An access port does not dynamically join a VLAN because it is always a member of a single VLAN. 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

switchxxxxxx(config)# interface gi6
switchxxxxxx(config-if)# gvrp enable

gvrp registration-mode

To deregister all dynamic VLANs on an interface and prevent VLAN creation or registration on the interface, use the gvrp registration-mode Interface Configuration mode command.

Syntax

gvrp registration-mode {fixed | forbidden | normal}

Parameters

fixed—Specifies the fixed mode.

forbidden—Specifies the forbidden mode.

normal—Specifies the normal mode.

Default Configuration

Normal mode

Command Mode

Interface Configuration (Ethernet, Port Channel) mode

Example

The following example forbids dynamic VLAN registration on fa2:

switchxxxxxx(config)# interface gi2
switchxxxxxx(config-if)# gvrp registration-mode forbidden

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

N/A

Default Configuration

Dynamic VLAN creation is enabled.

Command Mode

Interface Configuration (Ethernet, port channel) mode

Example

switchxxxxxx(config)# interface gi3
switchxxxxxx(config-if)# gvrp vlan-creation-forbid

show gvrp

To show the GVRP configuration, use the show gvrp Privileged EXEC mode command.

Syntax

show gvrp

Parameters

N/A

Default Configuration

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show gvrp
                GVRP    Status
                --------------------
    GVRP                             : Disabled
    Join time                       : 200 ms
    Leave time                      : 600 ms
    LeaveAll time                   : 10000 ms

show gvrp configuration

To show the GVRP configuration on specific interfaces, use the show gvrp configuration Privileged EXEC mode command.

Syntax

show gvrp configuration [interfaces interface-id ]

Parameters

interfaces interface-id—(Optional) Specifies an interface ID or a list of interface IDs. The interfaces can be one of these types: Ethernet port or port channel.

Default Configuration

N/A

Command Mode

Privileged EXEC mode

Example

The following example displays the GVRP configuration on all interfaces:

switchxxxxxx# show gvrp configuration
Port  |  GVRP-Status  | Registration  | Dynamic VLAN Creation
--------+---------------+---------------+----------------------
 gi1            Disabled          Normal              Enabled
 gi2            Disabled          Normal              Enabled
 gi3            Disabled          Normal              Enabled
 gi4            Disabled          Normal              Enabled
 gi5            Disabled          Normal              Enabled
 gi6            Disabled          Normal              Enabled
 gi7            Disabled          Normal              Enabled
 gi8            Disabled          Normal              Enabled
 gi9            Disabled          Normal              Enabled
gi10            Disabled          Normal              Enabled
gi11            Disabled          Normal              Enabled
gi12            Disabled          Normal              Enabled
gi13            Disabled          Normal              Enabled
gi14            Disabled          Normal              Enabled
gi15            Disabled          Normal              Enabled
gi16            Disabled          Normal              Enabled
gi17            Disabled          Normal              Enabled
gi18            Disabled          Normal              Enabled
gi19            Disabled          Normal              Enabled
gi20            Disabled          Normal              Enabled
gi21            Disabled          Normal              Enabled
gi22            Disabled          Normal              Enabled
gi23            Disabled          Normal              Enabled
gi24            Disabled          Normal              Enabled
gi25            Disabled          Normal              Enabled
gi26            Disabled          Normal              Enabled
gi27            Disabled          Normal              Enabled
gi28            Disabled          Normal              Enabled
 po1            Disabled          Normal              Enabled
 po2            Disabled          Normal              Enabled
 po3            Disabled          Normal              Enabled
 po4            Disabled          Normal              Enabled
 po5            Disabled          Normal              Enabled
 po6            Disabled          Normal              Enabled
 po7            Disabled          Normal              Enabled
 po8            Disabled          Normal              Enabled

show gvrp error-statistics

To show the GVRP error statistics for all interfaces or for a specific interface, use the show gvrp error-statistics Privileged EXEC mode command.

Syntax

show gvrp error-statistics [interfaces interface-id]

Parameters

interfaces interface-id—(Optional) Specifies an interface ID or a list of interfaces. The interfaces can be one of these types: Ethernet port or port channel. If no interface ID is specified, GVRP error statistics for all interfaces are displayed.

Default Configuration

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show 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 | INVALEN | INVAVAL | INVEVENT
   gi1           0         0         0         0         0
   gi2           0         0         0         0         0
   gi3           0         0         0         0         0
   gi4           0         0         0         0         0
   gi5           0         0         0         0         0
   gi6           0         0         0         0         0
   gi7           0         0         0         0         0
   gi8           0         0         0         0         0
   gi9           0         0         0         0         0
  gi10           0         0         0         0         0
  gi11           0         0         0         0         0
  gi12           0         0         0         0         0
  gi13           0         0         0         0         0
  gi14           0         0         0         0         0
  gi15           0         0         0         0         0
  gi16           0         0         0         0         0
  gi17           0         0         0         0         0
  gi18           0         0         0         0         0
  gi19           0         0         0         0         0
  gi20           0         0         0         0         0
  gi21           0         0         0         0         0
  gi22           0         0         0         0         0
  gi23           0         0         0         0         0
  gi24           0         0         0         0         0
  gi25           0         0         0         0         0
  gi26           0         0         0         0         0
  gi27           0         0         0         0         0
  gi28           0         0         0         0         0
   po1           0         0         0         0         0
   po2           0         0         0         0         0
   po3           0         0         0         0         0
   po4           0         0         0         0         0
   po5           0         0         0         0         0
   po6           0         0         0         0         0
   po7           0         0         0         0         0
   po8           0         0         0         0         0

show gvrp statistics

To show the GVRP statistics for all interfaces or for a specific interface, use the show gvrp statistics Privileged EXEC mode command.

Syntax

show gvrp statistics [interfaces interface-id]

Parameters

interfaces interface-id—(Optional) Specifies an interface ID or a list of interfaces. The interfaces can be one of these types: Ethernet port or port channel. If no interface ID is specified, GVRP statistics for all interfaces are displayed.

Default Configuration

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show gvrp statistics
Port id         : fa1
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa2
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  fa3
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  fa4
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  fa5
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  fa6
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  fa7
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  fa8
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  fa9
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa10
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa11
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa12
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa13
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa14
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa15
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa16
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa17
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa18
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa19
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa20
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa21
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa22
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa23
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         : fa24
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  gi1
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  gi2
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  po1
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  po2
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  po3
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  po4
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  po5
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  po6
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  po7
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0
Port id         :  po8
Total RX        :    0
JoinEmpty RX    :    0
JoinIn RX       :    0
Empty RX        :    0
LeaveIn RX      :    0
LeaveEmpty RX   :    0
LeaveAll RX     :    0
Total TX        :    0
JoinEmpty TX    :    0
JoinIn TX       :    0
Empty TX        :    0
LeaveIn TX      :    0
LeaveEmpty TX   :    0
LeaveAll TX     :    0