2-16
GVRP
Configuring GVRP On a Switch
The show vlans command lists the dynamic (and static) VLANs in switch “B”
after it has learned and joined VLAN-222 and VLAN-333.
Figure 2-9. Example of Listing Showing Dynamic VLANs
Converting a Dynamic VLAN to a Static VLAN. If a port on the switch
has joined a dynamic VLAN, you can use the following command to convert
that dynamic VLAN to a static VLAN:
For example, to convert dynamic VLAN 333 (from the previous example) to a
static VLAN:
HP Switch(config)# static-vlan 333
When you convert a dynamic VLAN to a static VLAN, all ports on the switch
are assigned to the VLAN in Auto mode.
Switch “A”
GVRP enabled.
3 Static VLANs:
– DEFAULT_VLAN
– VLAN-222
– VLAN-333
Switch “B”
GVRP enabled.
1 Static VLANs:
– DEFAULT_VLAN
Port 1: Set to
“Learn” Mode
Dynamic VLANs
Learned from
Switch “A”
through Port 1
HP Switch(config)# show vlans
Status and Counters - VLAN Information
Maximum VLANs to support : 256
Primary VLAN : DEFAULT_VLAN
Management VLAN :
VLAN ID Name | Status Voice Jumbo
------- -------------------------- + ---------- ----- -----
1 DEFAULT_VLAN | Static No No
222 GVRP_222 | Dynamic No No
333 GVRP_333 | Dynamic No No
Syntax:
static-vlan < dynamic-vlan-id >
Converts the a dynamic VLAN to a static VLAN.