mac-to-vlan
The mac-to-vlan VLAN Configuration mode command adds MAC addresses to the MAC-to-VLAN
database. Use the no form of this command to remove MAC addresses from the database.
NOTE:
The command mac-to-vlan is deprecated in versions where DVA is supported.
Syntax
mac-to-vlan mac-address vlan-id
•
•
no mac-to-vlan mac-address
•
mac-address — Specifies the MAC address to be added to the list.
•
vlan-id — Specifies the VLAN ID.
Default Configuration
No MAC address entry in the database.
Command Mode
VLAN Configuration mode.
User Guidelines
•
The associated VLAN cannot be the default VLAN.
•
Up to 256 MAC addresses can be mapped to a VLAN.
•
A MAC can be mapped to only one VLAN. If the same MAC is mapped to more than one VLAN, it is
effectively mapped only according to the last mapping.
Example
This example maps MAC address 0060.704c.73ff to VLAN 123.
Console# config
Console(config)# vlan database
Console(config-if)# mac-to-vlan 0060.704c.73ff 123
483
VLAN Commands