Users Guide

VLANs 829
Configuring GVRP
Use the following commands to enable GVRP on the switch and on an
interface, and to configure various GVRP settings.
Command Purpose
configure Enter global configuration mode.
gvrp enable Enable GVRP on the switch.
interface interface-id Enter interface configuration mode for the specified port
or LAG. The interface-id parameter includes the interface
type and number, for example tengigabitethernet 1/0/3 or
port-channel 3.
A range of interfaces can be specified using the interface
range command. For example, interface range
tengigabitethernet 1/0/8-12 configures interfaces 8, 9, 10,
11, and 12.
gvrp enable Enable GVRP on the interface.
switchport general
forbidden vlan {add
vlan-list|remove vlan-
list}
β€”orβ€”
switchport trunk allowed
vlan {add vlan-list |
remove vlan-list}
(Optional) Forbids dynamically adding the VLANs
specified by the remove parameter to a port. To revert to
allowing the addition of specific VLANs to the port, use
the add parameter of this command.
add vlan-list β€” List of valid VLAN IDs to remove from the
forbidden list. Separate nonconsecutive VLAN IDs with a
comma and no spaces. Use a hyphen to designate a range
of IDs.
remove vlan-list β€” List of valid VLAN IDs to add to the
forbidden list. Separate nonconsecutive VLAN IDs with a
comma and no spaces. Use a hyphen to designate a range
of IDs.
gvrp registration-forbid (Optional) Deregister all VLANs on a port and prevent any
dynamic registration on the port.
gvrp vlan-creation-
forbid
(Optional) Disable dynamic VLAN creation.
exit Exit to global configuration mode.