Chapter 21
| VLAN Commands
Configuring MAC Based VLANs
– 593 –
Command Mode
Global Configuration
Command Usage
â—† The MAC-to-VLAN mapping applies to all ports on the switch.
â—† Source MAC addresses can be mapped to only one VLAN ID.
â—† Configured MAC addresses cannot be broadcast or multicast addresses.
â—† When MAC-based, IP subnet-based, and protocol-based VLANs are supported
concurrently, priority is applied in this sequence, and then port-based VLANs
last.
Example
The following example assigns traffic from source MAC address 00-00-00-11-22-33
to VLAN 10.
Console(config)#mac-vlan mac-address 00-00-00-11-22-33 vlan 10
Console(config)#
show mac-vlan This command displays MAC address-to-VLAN assignments.
Command Mode
Privileged Exec
Command Usage
Use this command to display MAC address-to-VLAN mappings.
Example
The following example displays all configured MAC address-based VLANs.
Console#show mac-vlan
MAC Address VLAN ID Priority
----------------- -------- --------
00-00-00-11-22-33 10 0
Console#