CLI Reference Guide-R04

Table Of Contents
Chapter 22
| VLAN Commands
Configuring MAC Based VLANs
– 618 –
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 Mask VLAN ID Priority
------------------ ------------------ -------- --------
00-00-00-11-22-33 FF-FF-FF-FF-FF-FF 10 0
Console#