Administrator Guide

Layer 2 Switching Commands 838
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)
Default Configuration
No assigned MAC address.
Command Mode
VLAN Configuration mode
User Guidelines
This command has no user guidelines.