
Virtual Local Area Network (VLAN) Commands
78-20269-01 Command Line Interface Reference Guide
424
30
30.21 switchport general map macs-group vlan
After groups of MAC addresses have been created (see
they can be mapped to specific VLANs.
Use the switchport general map macs-group vlan Interface Configuration
(Ethernet, Port-channel) mode command to set a MAC-based classification rule.
Use the no form of this command to delete a classification rule.
Syntax
switchport general map macs-group
group
vlan
vlan-id
no switchport general map macs-group
group
Parameters
•
macs-group
group
—Specifies the group number (range: 1–2147483647)
•
vlan
vlan-id
—Defines the VLAN ID associated with the rule.
Default Configuration
N/A
Command Mode
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
MAC-based VLAN rules cannot contain overlapping ranges on the same interface.
The VLAN classification rule priorities are:
1.
MAC-based VLAN (Best match among the rules).
2.
Subnet-based VLAN (Best match among the rules).
3.
Protocol-based VLAN.
4.
PVID.
Example
The following example creates two groups of MAC addresses, sets a port to
general mode and maps the groups of MAC addresses to specific VLANs.
Console(config)#
vlan database
console(config-vlan)#
map mac
0000.1111.0000 32
macs-group
1