Port-Based Virtual LANs (VLANs) and GVRP

Port-Based Virtual LANs (Static VLANs)

For example, suppose you have a VLAN named VLAN100 with a VID of 100, and all ports are set to No for this VLAN. To change the VLAN name to “Blue_Team” and set ports 1-5 to Tagged, you could do so with these com­ mands:

HPswitch(config)# vlan 100 name Blue_Teamk

HPswitch(config)# vlan 100 tagged 1-5k

To move to the vlan 100 context level and execute the same commands:

HPswitch(config)# vlan 100k

HPswitch(vlan-100)# name Blue_Teamk

HPswitch(vlan-100)# tagged 1-5k

Similarly, to change the tagged ports in the above examples to No (or Auto, if GVRP is enabled), you could use either of the following commands.

At the config level, use:

HPswitch(config)# no vlan 100 tagged 1-5k

- or -

At the VLAN 100 context level, use:

HPswitch(vlan-100)# no tagged 1-5k

N o t e

You cannot use these commands with dynamic VLANs. Attempting to do so

 

results in the message “VLAN already exists.” and no change occurs.

 

 

Web: Viewing and Configuring VLAN Parameters

In the web browser interface you can do the following:

Add VLANs

Rename VLANs

Remove VLANs

Configure GVRP mode

Select a new Primary VLAN

To configure static VLAN port parameters, you will need to use the menu interface (available by Telnet from the web browser interface) or the CLI.

1.Click on the Configuration tab.

Click on ����������������������.

2.Click on ������������������.

11-21