VLAN Commands 515
Command Mode
VLAN Database mode
User Guidelines
This command has no user guidelines.
Example
The following example shows how to create (add) VLAN of IDs 22, 23, and 56.
console(config-vlan)#vlan 22,23,56
console(config-vlan)#
vlan association mac
Use the vlan association mac command in VLAN Database mode to associate a MAC address to
a VLAN.
Syntax
vlan association mac
mac-address vlanid
no vlan association mac
mac-address
mac-address
— MAC address to associate. (Range: Any MAC address in the format
xxxx.xxxx.xxxx)
vlanid
— VLAN to associate with subnet. (Range: 1-4093)
Default Configuration
No assigned MAC address.
Command Mode
VLAN Database mode
User Guidelines
The maximum number of MAC-based VLAN associations is 256.
Example
The following example associates MAC address with VLAN ID 1.
console(config-vlan)#vlan association mac 0001.0001.0001 1