1-37
Static Virtual LANs (VLANs)
Configuring VLANs
Changing the Number of VLANs Allowed on the Switch
In the default VLAN configuration, the switch allows a maximum of 256
VLANs. You can specify any value from 1 to 2048.
For example, to reconfigure the switch to allow 10 VLANs:
Figure 1-27. Example of Command Sequence for Changing the Number of VLANs
Changing the Primary VLAN. In the default VLAN configuration, the port-
based default VLAN (
DEFAULT_VLAN) is the Primary VLAN. However, you can
reassign the Primary VLAN to any port-based, static VLAN on the switch. (For
more on the Primary VLAN, refer to “The Primary VLAN” on page 1-49.) To
identify the current Primary VLAN and list the available VLANs and their
respective VIDs, use show vlans.
For example, if you wanted to reassign the Primary VLAN to VLAN 22 and
rename the VLAN with “22-Primary” and display the result:
Syntax: max-vlans < 1-2048 >
Specifies the maximum number of VLANs to allow. (If GVRP
is enabled, this setting includes any dynamic VLANs on the
switch.) As part of implementing a new setting, you must
execute a write memory command (to save the new value to the
startup-config file) and then reboot the switch.
Default: 256
Note: If multiple VLANs exist on the switch, you cannot reset
the maximum number of VLANs to a value smaller than the
current number of VLANs.
Note that you
can execute
these three
steps at
another time.
HP Switch[config)# max-vlans 10
This command will take effect after saving the configuration and
rebooting the system.
HP Switch[config)# write memory
HP Switch[config)# boot
Device will he rebooted, do you want to continue [y/n]? y
Syntax: primary-vlan < vid | ascii-name-string >
Reassigns the Primary VLAN function. Re-assignment must be
to an existing, port-based, static VLAN. (The switch will not
reassign the Primary VLAN function to a protocol VLAN.) If you
re-assign the Primary VLAN to a non-default VLAN, you cannot
later delete that VLAN from the switch until you again re-assign
the Primary VLAN to another port-based, static VLAN.