Static Virtual LANs (VLANs)

Port-Based Virtual LANs (Static VLANs)

Changing the Number of VLANs Allowed on the Switch

By default, the switch allows a maximum of 8 VLANs. You can specify any value from 1 to the upper limit for the switch. (Refer to table 2-1on page 2-4.) If GVRP is enabled, this setting includes any dynamic VLANs on the switch. As part of implementing a new value, you must execute a write memory command (to save the new value to the startup-config file) and then reboot the switch.

Syntax: max-vlans < 1 .. 256 >

For example, to reconfigure the switch to allow 10 VLANs:

Note that you can execute these three steps at another time.

Figure 2-22. Example of Command Sequence for Changing the Number of VLANs

Changing the Primary VLAN

In the factory-default configuration, the default VLAN (DEFAULT_VLAN) is the primary VLAN. However, you can designate any static VLAN on the switch as the primary VLAN. (For more on the primary VLAN, see “The Primary VLAN” on page 2-7.) To view the available VLANs and their respective VIDs, use show vlan.

Syntax: primary-vlan <vlan-id>

For example, to make VLAN 22 the primary VLAN:

ProCurve(config)# primary-vlan 22

Creating a New Static VLAN Changing the VLAN Context

Level

With this command, entering a new VID creates a new static VLAN. Entering the VID or name of an existing static VLAN places you in the context level for that VLAN.

2-26