Configuring GVRP
Beginning in Privileged EXEC mode, use the following commands to enable
GVRP on the switch and on an interface, and to configure various GVRP
settings.
Command
configure
gvrp enable
interface
interface
gvrp enable
switchport general
forbidden vlan {add
vlan-list
vlan-
|remove
list
}
—and—
switchport trunk allowed
vlan-list
vlan {add
vlan-list
remove
}
gvrp registration-forbid
gvrp vlan-creation-
forbid
exit
Purpose
Enter global configuration mode.
Enable GVRP on the switch.
Enter interface configuration mode for the specified port
or LAG. The
and number, for example tengigabitethernet 1/0/3 or port-
channel 3.
You can also specify a range of interfaces with the interface
range command, for example, interface range
tengigabitethernet 1/0/8-12 configures interfaces 8, 9, 10,
11, and 12.
Enable GVRP on the interface.
(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.
vlan-list
add
forbidden list. Separate nonconsecutive VLAN IDs with a
comma and no spaces. Use a hyphen to designate a range
|
of IDs.
vlan-list
remove
forbidden list. Separate nonconsecutive VLAN IDs with a
comma and no spaces. Use a hyphen to designate a range
of IDs.
(Optional) Deregister all VLANs on a port and prevent any
dynamic registration on the port.
(Optional) Disable dynamic VLAN creation.
Exit to global configuration mode.
interface
variable includes the interface type
— List of valid VLAN IDs to remove from the
— List of valid VLAN IDs to add to the
Configuring VLANs
695