Command Line Interface Guide

826 VLAN Commands
vlan association mac
Use the vlan association mac command in VLAN Config 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
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)
Default Configuration
No assigned MAC address.
Command Mode
VLAN Config mode
User Guidelines
This command has no user guidelines.
Example
The following example associates MAC address with VLAN ID 1.
console(config)# interface vlan 1
console(config-vlan-1)#vlan association mac
0001.0001.0001
vlan association subnet
Use the vlan association subnet command in VLAN Config mode to
associate a VLAN to a specific IP-subnet. Only packets with a matching
source IP address are placed into the VLAN.
Syntax
vlan association subnet
ip-address subnet-mask
2CSPC4.X8100-SWUM100.book Page 826 Wednesday, August 29, 2012 6:23 PM