Configuring MAC-Based VLANs
Beginning in Privileged EXEC mode, use the following commands to
associate a MAC address with a configured VLAN. The VLAN does not need
to be configured on the system to associate a MAC address with it. You can
create up to 256 VLAN to MAC address associations.
vlan association mac
CTRL + Z
show vlan association
Enter global configuration mode.
Enter VLAN database mode.
Associate a MAC address with a VLAN.
MAC address in the format xxxx.xxxx.xxxx or
— VLAN to associate with subnet. (Range: 1-
Exit to Privileged EXEC mode.
Display the VLAN associated with a specific configured
MAC address. If no MAC address is specified, the VLAN
associations of all the configured MAC addresses are
— MAC address to associate. (Range: Any