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 IP address are placed in
the VLAN.
Syntax
vlan association mac
no vlan association mac
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.
Example
The following example associates MAC address with VLAN ID 1.
console(config)# vlan 1
console(config-vlan-1)#vlan association mac 0001.0001.0001
824
VLAN Commands
mac-address
mac-address