Table Of Contents
cGVRP
Contents
Restrictions for cGVRP
Information About cGVRP
GARP/GVRP Definition
cGVRP Overview
GVRP Interoperability with VTP and VTP Pruning
GVRP interoperability with Other Software Features and Protocols
STP
DTP
VTP
EtherChannel
High Availability
How to Configure cGVRP
Configuring Compact GVRP
Disabling mac-learning on VLANs
Enabling a Dynamic VLAN
Troubleshooting the cGVRP Configuration
Configuration Examples for cGVRP
Configuring cGVRP: Example
Disabling mac-learning on VLANs: Example
Enabling a Dynamic VLAN: Example
Verifying CE Ports Configured as Access Ports: Example
Verifying CE Ports Configured as ISL Ports: Example
Verifying CE Ports Configured in Fixed Registration Mode: Example
Verifying CE Ports Configured in Forbidden Registration Mode: Example
Verifying cGVRP: Example
Verifying Disabled mac-learning on VLANs: Example
Verifying Dynamic VLAN: Example
Verifying Local Association Due to .1q trunk: Example
Additional References
Related Documents
Standards
MIBs
RFCs
Technical Assistance
Feature Information for cGVRP
cGVRP
First Published: February 27, 2007
Last Updated: February 27, 2007
The Compact (c) Generic Attribute Registration Protocol (GARP) VLAN Registration Protocol (GVRP) feature reduces CPU time for transmittal of 4094 VLAN states on a port.
Finding Feature Information in This Module
Your Cisco IOS software release may not support all of the features documented in this module. To reach links to specific feature documentation in this module and to see a list of the releases in which each feature is supported, use the "clear gvrp statistics" section on page 19.
Finding Support Information for Platforms and Cisco IOS and Catalyst OS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS and Catalyst OS software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Contents
•
Restrictions for cGVRP
•
Information About cGVRP
•
How to Configure cGVRP
•
Configuration Examples for cGVRP
•
Additional References
Restrictions for cGVRP
•
A non-Cisco device can only interoperate with a Cisco device through .1Q trunks.
•
VLAN Mapping is not supported with GVRP.
•
cGVRP and Connectivity Fault Management(CFM) can coexist but if the line card (LC) or supervisor does not have enough mac-match registers to support both protocols, the cGVRP ports on those LCs are put in error disabled state. To use Layer 2 functionality, disable cGVRP on those ports and configure shut/no shut.
•
cGVRP functionality applies only to interfaces configured for Layer 2 (switchport) functionality.
•
Native VLAN Tagging causes frames sent to the native VLAN of the .1Q trunk ports to be encapsulated with .1Q tags. Problems may arise with other GVRP participants on the LAN because they may not be able to admit tagged GVRP PDUs. Caution must be exercised if both features are enabled at the same time.
•
802.1X authentication and authorization takes place after the port becomes link-up and before the Dynamic Trunking Protocol (DTP) negotiations start prior to GVRP running on the port.
•
Port Security works independently from GVRP and it may be limited to the number of other GVRP participants on a LAN that a GVRP enabled port on a device can communicate with.
•
GVRPs cannot be configured and run on a sub-interface.
•
GVRP and UniDirectional Link Routing (UDLR) should not be enabled on the same interface because UDLR limits frames in one direction on the port and GVRP is a two way communication protocol.
•
Additional memory is required to store GARP/GVRP configurations and states per GVRP enabled port, but it can be dynamically allocated on demand.
•
GARP Multicast Registration Protocol (GMRP) is not supported.
Information About cGVRP
To configure cGVRP, you should understand the following concepts:
•
GARP/GVRP Definition
•
cGVRP Overview
•
How to Configure cGVRP
GARP/GVRP Definition
GVRP enables automatic configuration of switches in a VLAN network allowing network devices to dynamically exchange VLAN configuration information with other devices. GVRP is based on GARP which defines procedures for registering and deregistering attributes with each other. It eliminates unnecessary network traffic by preventing attempts to transmit information to unregistered users.
GVRP is defined in IEEE 802.1Q.
cGVRP Overview
GVRP is a protocol that requires extensive CPU time in order to transmit all 4094 VLAN states on a port. In Compact mode only one PDU is sent and it includes the states of all the 4094 VLANs on a port.
VLAN pruning can be accomplished faster by running in a special mode, Fast Compact Mode, and on point-to-point links.
In Compact GVRP a GVRP PDU may be sent out the port if the port is in forwarding state in a spanning tree instance. GVRP PDUs must be transmitted in the native VLAN of .1Q trunks.
GVRP Interoperability with VTP and VTP Pruning
VTP Pruning is an extension of VTP. It has its own Join message that can be exchanged with VTP PDUs. VTP PDUs can be transmitted on both .1Q trunks and ISL trunks. A VTP capable device is in either one of the three VTP modes: Server, Client, or Transparent.
When VTP Pruning and GVRP are both enabled globally, VTP Pruning is run on ISL trunks, and GVRP is run on .1Q trunks.
Compact GVRP has two modes: Slow Compact Mode, and Fast Compact Mode. A port can be in Fast Compact Mode if it has one GVRP enabled peer on the same LAN segment, and the peer is capable of operating in Compact Mode. A port is in Slow Compact Mode if there are multiple GVRP participants on the same LAN segment operating in Compact Mode.
GVRP interoperability with Other Software Features and Protocols
STP
Spanning Tree Protocol (STP) may run in one of the three STP modes: Multiple Spanning Tree(MST), Per VLAN Spanning Tree (PVST), or Rapid PVST. An STP mode range causes the forwarding ports to leave the forwarding state as STP has to reconverge. This may cause GVRP to have its own topology change as Join messages my be received on some new ports and Leave timers may expire on some others.
DTP
DTP negotiates the port mode (trunk vs. non-trunk) and the trunk encapsulation type between two DTP enabled ports. After negotiation DTP may set the port to either ISL trunk, or .1Q trunk, or non trunk. DTP negotiation occurs after ports become link-up and before they become forwarding in spanning trees. If GVRP is administratively enabled on a port and the device, it should be initialized after the port is negotiated to be a .1Q trunk.
VTP
VTP version 3 expands the range of VLANs that can be created and removed via VTP. VTP Pruning is available for VLAN 1 - 1005 only.
EtherChannel
When multiple .1Q trunk ports are grouped by either Port Aggregation Protocol (PAgP) or Link Aggregation Control Protocol (LACP) to become an etherchannel, the etherchannel can be configured as a GVRP participant. The physical ports in the etherchannel cannot be GVRP participants by themselves. Since an etherchannel is treated like one virtual port by STP, the GVRP application can learn the STP state change of the etherchannel just like any physical port. The etherchannel, not the physical ports in the channel, constitutes the GARP Information Propagation (GIP) context.
High Availability
High Availability (HA) is a redundancy feature in IOS. On platforms that support HA and State SwitchOver (SSO), many features and protocols my resume working in a couple of seconds after the system encounters a failure such as a crash of the active supervisor in a Catalyst 7600 switch. GVRP needs to be configured to enable user configurations, and protocol states should be synched to a standby system. If there is a failure of the active system, the GVRP in the standby system which now becomes active, has all the up-to-date VLAN registration information.
How to Configure cGVRP
:This procedure contains the following tasks:
•
Configuring Compact GVRP
•
Disabling mac-learning on VLANs
•
Enabling a Dynamic VLAN: Example
Configuring Compact GVRP
To configure compact GVRP, perform the following task.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
gvrp global
4.
exit
DETAILED STEPS
| |
Command or Action
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
grvp global
Example:
Router(config)# gvrp global
|
Configures global GVRP and enables GVRP on all .1Q trunks.
|
Step 4
|
interface type number
Example:
Router(config)# interface GigabitEthernnet
12/15
|
Exits configuration mode.
|
Step 5
|
gvrp timer join timer-value
Example:
Router(config-if)# gvrp timer join 1000
|
Sets the period timers.
|
Step 6
|
gvrp registration normal
Example:
Router(config-if)# gvrp registration normal
|
Sets the registrar for normal response to incoming GVRP messages.
|
Disabling mac-learning on VLANs
To disable mac-learning on VLANs, perform the following task.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
gvrp mac-learning auto
4.
exit
DETAILED STEPS
| |
Command or Action
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
gvrp mac-learning auto
Example:
Router(config)# gvrp mac-learning auto
|
Disables learning of mac-entries.
|
Step 4
|
exit
Example:
Router(config)# exit
|
Exits configuration mode.
|
Enabling a Dynamic VLAN
To enable a dynamic VLAN, perform the following task.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
gvrp vlan create
4.
exit
DETAILED STEPS
| |
Command or Action
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
gvrp vlan create
Example:
Router(config)# gvrp vlan create
|
Enables a dynamic VLAN when cGRVP is configured.
|
Step 4
|
exit
Example:
Router(config)# exit
|
Exits configuration mode.
|
Troubleshooting the cGVRP Configuration
Perform this task to troubleshoot the cGVRP configuration.
Use the show gvrp summary and show gvrp interface commands to display configuration information and interface states, and the debug gvrp command to enable all or a limited output messages related to an interface.
SUMMARY STEPS
1.
enable
2.
show gvrp summary
3.
show gvrp interface
4.
debug gvrp
5.
clear gvrp statistics
DETAILED STEPS
| |
Command or Action
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
show gvrp summary
Example:
Router# show gvrp summary
|
Displays the GVRP configuration.
|
Step 3
|
show gvrp interface
Example:
Router# show gvrp interface
|
Displays the GVRP interface states.
|
Step 4
|
debug gvrp
Example:
Router# debug gvrp
|
Displays GVRP debugging information.
|
Step 5
|
clear gvrp statistics
Example:
Router# clear gvrp statistics interface 12/15
|
Clears GVRP statistics on all interfaces.
|
Configuration Examples for cGVRP
This section provides the following configuration examples:
•
Configuring cGVRP: Example
•
Verifying CE Ports Configured as Access Ports: Example
•
Enabling a Dynamic VLAN: Example
•
Verifying CE Ports Configured as Access Ports: Example
•
Verifying CE Ports Configured as ISL Ports: Example
•
Verifying CE Ports Configured in Fixed Registration Mode: Example
•
Verifying CE Ports Configured in Forbidden Registration Mode: Example
•
Verifying cGVRP: Example
•
Verifying Disabled mac-learning on VLANs: Example
•
Verifying Dynamic VLAN: Example
•
Verifying Local Association Due to .1q trunk: Example
Configuring cGVRP: Example
The following example shows how to configure compact GVRP.
Router(config)# gvrp global
Disabling mac-learning on VLANs: Example
The following example shows how to disable mac-learning on VLANs configured with cGVRP.
Router(config)# gvrp mac-learning auto
Enabling a Dynamic VLAN: Example
The following example shows how to configure a dynamic VLAN.
Router(config)# gvrp global
Verifying CE Ports Configured as Access Ports: Example
Topology:
CE1 - gi3/15 R1 gi3/1 - dot1q trunk - gi3/1 R2 gi12/15 - CE2
R1#show running-config interface gi3/15
Building configuration...
Current configuration : 129 bytes
interface GigabitEthernet3/15
spanning-tree portfast trunk
R1#show running-config interface gi3/1
Building configuration...
Current configuration : 109 bytes
interface GigabitEthernet3/1
switchport trunk encapsulation dot1q
R2#show running-config interface gi12/15
Building configuration...
Current configuration : 168 bytes
interface GigabitEthernet12/15
switchport trunk encapsulation dot1q
spanning-tree portfast trunk
R2#show running-config interface gi3/1
Building configuration...
Current configuration : 144 bytes
interface GigabitEthernet3/1
switchport trunk encapsulation dot1q
switchport backup interface Gi4/1
GVRP global state : enabled
GVRP VLAN creation : disabled
VLANs created via GVRP : none
MAC learning auto provision : disabled
Learning disabled on VLANs : none
Port Status Mode Registrar State
Gi3/1 on fastcompact normal
Port Transmit Timeout Leave Timeout Leaveall Timeout
Port Vlans Registered and in Spanning Tree Forwarding State
GVRP global state : enabled
GVRP VLAN creation : disabled
VLANs created via GVRP : none
MAC learning auto provision : disabled
Learning disabled on VLANs : none
Port Status Mode Registrar State
Gi3/1 on fastcompact normal
Port Transmit Timeout Leave Timeout Leaveall Timeout
Port Vlans Registered and in Spanning Tree Forwarding State
Verifying CE Ports Configured as ISL Ports: Example
CE1 - gi3/15 R1 gi3/1 - dot1q trunk - gi3/1 R2 gi12/15 - CE2
R1#show running-config interface gi3/15
Building configuration...
Current configuration : 138 bytes
interface GigabitEthernet3/15
switchport trunk encapsulation isl
spanning-tree portfast trunk
R1#show running-config interface gi3/1
Building configuration...
Current configuration : 109 bytes
interface GigabitEthernet3/1
switchport trunk encapsulation dot1q
R2#show running-config interface gi12/15
Building configuration...
Current configuration : 139 bytes
interface GigabitEthernet12/15
switchport trunk encapsulation isl
spanning-tree portfast trunk
R2#show running-config interface gi3/1
Building configuration...
Current configuration : 144 bytes
interface GigabitEthernet3/1
switchport trunk encapsulation dot1q
switchport backup interface Gi4/1
GVRP global state : enabled
GVRP VLAN creation : disabled
VLANs created via GVRP : none
MAC learning auto provision : disabled
Learning disabled on VLANs : none
Port Status Mode Registrar State
Gi3/1 on fastcompact normal
Port Transmit Timeout Leave Timeout Leaveall Timeout
Port Vlans Registered and in Spanning Tree Forwarding State
Number of existing VLANs : 14
Number of existing VTP VLANs : 14
Number of existing extended VLANs : 0
GVRP global state : enabled
GVRP VLAN creation : disabled
VLANs created via GVRP : none
MAC learning auto provision : disabled
Learning disabled on VLANs : none
Port Status Mode Registrar State
Gi3/1 on fastcompact normal
Port Transmit Timeout Leave Timeout Leaveall Timeout
Port Vlans Registered and in Spanning Tree Forwarding State
Number of existing VLANs : 6
Number of existing VTP VLANs : 6
Number of existing extended VLANs : 0
Verifying CE Ports Configured in Fixed Registration Mode: Example
Router1 #show running-config interface gi3/15
Building configuration...
Current configuration : 165 bytes
interface GigabitEthernet3/15
switchport trunk encapsulation dot1q
spanning-tree portfast trunk
Router1 #show gvrp interface gigabitEthernet 3/15
Port Status Mode Registrar State
Gi3/15 on fastcompact fixed
Port Transmit Timeout Leave Timeout Leaveall Timeout
Port Vlans Registered and in Spanning Tree Forwarding State
Verifying CE Ports Configured in Forbidden Registration Mode: Example
Router1 #show running-config interface gi3/15
Building configuration...
Current configuration : 169 bytes
interface GigabitEthernet3/15
gvrp registration forbidden
switchport trunk encapsulation dot1q
spanning-tree portfast trunk
Router1 #show gvrp interface gigabitEthernet 3/15
Port Status Mode Registrar State
Gi3/15 on fastcompact forbidden
Port Transmit Timeout Leave Timeout Leaveall Timeout
Port Vlans Registered and in Spanning Tree Forwarding State
Verifying cGVRP: Example
The following example shows how to verify the compact GVRP configuration.
Router# show gvrp summary
GVRP global state : enabled
GVRP VLAN creation : disabled
VLANs created via GVRP : none
MAC learning auto provision : disabled
Learning disabled on VLANS : none
Verifying Disabled mac-learning on VLANs: Example
The following examples show how to verify that mac-learning has been disabled.
Router# show gvrp summary
GVRP global state : enabled
GVRP VLAN creation : enabled
VLANs created via GVRP : 2-200
MAC learning auto provision : enabled
Learning disabled on VLANs : 1-200
Router# show gvrp interface
Port Status Mode Registrar State
Gi3/15 on fastcompact normal
Gi4/1 on fastcompact normal
Port Transmit Timeout Leave Timeout Leaveall Timeout
Port Vlans Registered and in Spanning Tree Forwarding State
Legend: * - primary entry
age - seconds since last seen
vlan mac address type learn age ports
------+----------------+--------+-----+----------+--------------------------
Verifying Dynamic VLAN: Example
The following examples show how to verify the GVRP summary and interface.
Router# show gvrp summary
GVRP global state : enabled
GVRP VLAN creation : enabled
VLANs created via GVRP : 2-200
MAC learning auto provision : disabled
Learning disabled on VLANs : none
Router# show gvrp interface
Port Status Mode Registrar State
Gi3/15 on fastcompact normal
Gi4/1 on fastcompact normal
Port Transmit Timeout Leave Timeout Leaveall Timeout
Port Vlans Registered and in Spanning Tree Forwarding State
Verifying Local Association Due to .1q trunk: Example
Topology
CE1 - gi3/15 R1 gi3/1 - dot1q trunk - gi3/1 R2 gi12/15 - CE2
Router1 #show running-config interface gi3/15
Building configuration...
Current configuration : 165 bytes
interface GigabitEthernet3/15
switchport trunk encapsulation dot1q
spanning-tree portfast trunk
Router2 #show running-config interface gi12/15
Building configuration...
Current configuration : 166 bytes
interface GigabitEthernet12/15
switchport trunk encapsulation dot1q
spanning-tree portfast trunk
Router1 #show gvrp summary
GVRP global state : enabled
GVRP VLAN creation : disabled
VLANs created via GVRP : none
MAC learning auto provision : disabled
Learning disabled on VLANs : none
Router1 #show gvrp interface
Port Status Mode Registrar State
Gi3/1 on fastcompact normal
Gi3/15 on fastcompact fixed
Port Transmit Timeout Leave Timeout Leaveall Timeout
Port Vlans Registered and in Spanning Tree Forwarding State
GVRP global state : enabled
GVRP VLAN creation : disabled
VLANs created via GVRP : none
MAC learning auto provision : disabled
Learning disabled on VLANs : none
Port Status Mode Registrar State
Gi3/1 on fastcompact normal
Gi12/15 on fastcompact fixed
Port Transmit Timeout Leave Timeout Leaveall Timeout
Port Vlans Registered and in Spanning Tree Forwarding State
Additional References
The following sections provide references related to the cGVRP feature.
Related Documents
Related Topic
|
Document Title
|
LAN Switching commands: complete command syntax, command mode, defaults, command history, usage guidelines, and examples
|
Cisco IOS LAN Switching Command Reference, Release 12.2SR
|
Standards
Standard
|
Title
|
No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
|
—
|
MIBs
MIB
|
MIBs Link
|
No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature.
|
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
http://www.cisco.com/go/mibs
|
RFCs
RFC
|
Title
|
No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
|
—
|
Technical Assistance
Description
|
Link
|
The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies. Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. If you have a valid service contract but do not have a user ID or password, you can register on Cisco.com.
|
http://www.cisco.com/techsupport
|
Feature Information for cGVRP
Table 1 lists the release history for this feature.
Not all commands may be available in your Cisco IOS software release. For release information about a specific command, see the command reference documentation.
Use Cisco Feature Navigator to find information about platform support and software image support. Cisco Feature Navigator enables you to determine which Cisco IOS and Catalyst OS software images support a specific software release, feature set, or platform. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Note
Table 1 lists only the Cisco IOS software release that introduced support for a given feature in a given Cisco IOS software release train. Unless noted otherwise, subsequent releases of that Cisco IOS software release train also support that feature.
Table 1 Feature Information for cGVRP
Feature Name
|
Releases
|
Feature Information
|
cGVRP
|
12.2(33)SRB
|
The Compact (c) Generic Attribute Registration Protocol (GARP) VLAN Registration Protocol (GVRP) feature reduces CPU time for transmittal of 4094 VLAN states on a port. GVRP enables automatic configuration of switches in a VLAN network allowing network devices to dynamically exchange VLAN configuration information with other devices. GVRP is based on GARP which defines procedures for registering and deregistering attributes with each other. It eliminates unnecessary network traffic by preventing attempts to transmit information to unregistered users.
GVRP is defined in IEEE 802.1Q.
The following commands were introduced or modified to support this feature: clear gvrp statistics, debug gvrp, gvrp global, gvrp mac-learning, gvrp registration, gvrp timer, gvrp vlan create, show gvrp interface, show gvrp summary
For information about these commands, see the Cisco IOS LAN Switching Command Reference at http://www.cisco.com/en/US/docs/ios/lanswitch/command/reference/lsw_book.html. For information about all Cisco IOS commands, go to the Command Lookup Tool at http://tools.cisco.com/Support/CLILookup or to the Cisco IOS Master Commands List.
|
CCDE, CCENT, CCSI, Cisco Eos, Cisco HealthPresence, Cisco IronPort, the Cisco logo, Cisco Nurse Connect, Cisco Pulse, Cisco SensorBase, Cisco StackPower, Cisco StadiumVision, Cisco TelePresence, Cisco Unified Computing System, Cisco WebEx, DCE, Flip Channels, Flip for Good, Flip Mino, Flipshare (Design), Flip Ultra, Flip Video, Flip Video (Design), Instant Broadband, and Welcome to the Human Network are trademarks; Changing the Way We Work, Live, Play, and Learn, Cisco Capital, Cisco Capital (Design), Cisco:Financed (Stylized), Cisco Store, Flip Gift Card, and One Million Acts of Green are service marks; and Access Registrar, Aironet, AllTouch, AsyncOS, Bringing the Meeting To You, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, CCVP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Lumin, Cisco Nexus, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Collaboration Without Limitation, Continuum, EtherFast, EtherSwitch, Event Center, Explorer, Follow Me Browsing, GainMaker, iLYNX, IOS, iPhone, IronPort, the IronPort logo, Laser Link, LightStream, Linksys, MeetingPlace, MeetingPlace Chime Sound, MGX, Networkers, Networking Academy, PCNow, PIX, PowerKEY, PowerPanels, PowerTV, PowerTV (Design), PowerVu, Prisma, ProConnect, ROSA, SenderBase, SMARTnet, Spectrum Expert, StackWise, WebEx, and the WebEx logo are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.
All other trademarks mentioned in this document or website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0910R)
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
© 2007 Cisco Systems, Inc. All rights reserved.