Administrator Guide

Layer 2 Switching Commands 841
vlan–range
—A list of valid VLAN IDs. List separate, non-consecutive
VLAN IDs separated by commas (without spaces). Use a hyphen to
designate a range of IDs. (Range: 1–4093)
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration (Config)
User Guidelines
Deleting the VLAN assigned as the PVID on an access port will cause VLAN 1
to be assigned as the PVID for the access port. Deleting the VLAN assigned as
the native VLAN for a trunk port will cause the trunk port to discard
untagged frames received on the port.. Creating a VLAN adds it to the
allowed list for all trunk ports except those where it is specifically excluded.
Ports and port channels can be configured with VLANs that do not exist.
They will not forward traffic on nonexisting VLANs.
Example
The following example shows how to create (add) VLAN IDs 22, 23, and 56.
console(config)#vlan 22,23,56
console(config-vlan)#
vlan association mac
Use the vlan association mac command in VLAN Configuration mode to
associate a MAC address to a VLAN. The maximum number of MAC-based
VLANs is 256. Only packets with a matching source MAC address are placed
in the VLAN.
Syntax
vlan association mac
mac-address
no vlan association mac
mac-address
mac-address
— MAC address to associate to the VLAN. (Range: Any MAC
address in the format xxxx.xxxx.xxxx or xx:xx:xx:xx:xx:xx)
2CSNXXX_SWUM204.book Page 841 Monday, January 25, 2016 1:25 PM