Configuring Advanced Features

Port-Based Virtual LANs (Static VLANs)

Converting a Dynamic VLAN to a Static VLAN. If GVRP is running on the switch and a port dynamically joins a VLAN, you can use the next command to convert the dynamic VLAN to a static VLAN. (For GVRP and dynamic VLAN operation, see “GVRP” on page 9-77.) This is necessary if you want to make the VLAN permanent. Note that after you convert a dynamic VLAN to static, you must configure the switch’s per-port participation in the VLAN in the same way that you would for any static VLAN.

 

Syntax:

static-vlan <vlan-id>

 

 

If you need a VID reference, use show vlan to list the switch’s currently existing

 

VLANs.

 

 

 

For example, suppose a dynamic VLAN with a VID of 125 exists on the switch.

 

The following command converts the VLAN to a static VLAN.

 

HP2512(config)# static-vlan 125

 

Configuring Static VLAN Name and Per-Port Settings. The vlan <vlan-

 

id> command, used in conjunction with the options listed below, enables you

 

to change the name of an existing static VLAN and change the per-port VLAN

 

membership settings as show below.

 

 

 

N o t e

You can use these options from the configuration level by beginning the

 

command with vlan <vlan-id>, or from the context level of the specific VLAN.

 

Syntax:

name <vlan-name>

Changes the name of the existing

 

 

 

 

static VLAN. (No spaces allowed in the

 

 

[no] tagged <port-list>

<vlan-name>entry.

 

 

Configures the indicated port(s) as

 

 

 

Tagged for the specified VLAN. The

 

 

 

no” version sets the port(s) to

 

 

 

either No or (if GVRP is enabled) to Auto.

 

 

[no] untagged <port-list>Configures the indicated port(s) as

 

 

 

Untagged for the specified VLAN. The

 

 

 

no” version sets the port(s) to

 

 

[no] forbid <port-list>

either No or (if GVRP is enabled) to Auto.

 

 

Configures the indicated port(s) as

 

 

 

“forbidden” to participate in the

 

 

 

designated VLAN. The “no” version sets

 

 

 

the port(s) to either No or (if GVRP is

 

 

auto <port-list>

enabled) to Auto.

 

 

Available if GVRP is enabled on the

 

 

 

switch. Returns the per-port settings

 

 

 

for the specified VLAN to Auto

Features

Configuring Advanced

 

 

9-67

Page 261
Image 261
HP 2500 manual HP2512config# static-vlan