Changing the number of VLANs allowed on the switch
Syntax:
max-vlans 1-2048
In the default VLAN configuration, the switch allows a maximum of 256 VLANs. Use this command to specify the maximum VLANs to allow, and specify any value from 1 to 2048.
While IPv6 VLANs maximum is unchanged, the total number of allowed IPVLANs (IPv6 + IPv4) is 1024.
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.
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.
Attribute |
MAX Number of VLANs |
---|---|
Aruba Switch 5400R, Switch 3810M | |
VLAN |
4094 |
IP VLAN |
1024 total with up to:
|
Static routes |
1024 total with up to:
|
Changing the number of allowed VLANs
Shows the command sequence for changing the number of VLANs allowed to 10. You can execute the commands to
write memory
and
boot
at another time.
switch(config)# max-vlans 10
This command will take effect after saving the configuration
and rebooting the system.
switch(config)# write memory
switch(config)# boot
Device will he rebooted, do you want to continue [y/n]? Y
Error Messages
Error Message |
Cause |
---|---|
The maximum number of IPv6 VLANs (512) has been reached. |
When exceeding the maximum IPv6 VLANs allowed. |
The maximum number of IP VLANs (1024) has been reached. |
When exceeding the maximum IP VLANs allowed. |
Switch(config)# max-vlans 4094
This command will take effect after saving the configuration and rebooting the system. A configuration with max-vlans greater than 2048 might prevent successful downgrade to previous software versions.