67
1279
Default Configuration
N/A
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
MAC-based VLAN rules cannot contain overlapping ranges on the same interface.
The VLAN classification rule priorities are:
•
MAC-based VLAN (best match among the rules)
•
Subnet-based VLAN (best match among the rules)
•
Protocol-based VLAN
•
PVID
User Guidelines
After groups of MAC addresses have been created (see the
command), they can be mapped to specific VLANs.
Each MAC address (host or range) in the MAC-based group assigned to an
interface consumes a single TCAM entry.
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.
switchxxxxxx(config)#
switchxxxxxx(config-vlan)#
switchxxxxxx(config-vlan)#
switchxxxxxx(config-vlan)#
switchxxxxxx(config)#
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#
Virtual Local Area Network (VLAN) Commands
vlan database
map mac 0000.1111.0000 32 macs-group 1
map mac 0000.0000.2222 host macs-group 2
exit
interface gi14
switchport mode general
switchport general map macs-group 1 vlan 2
switchport general map macs-group 2 vlan 3
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
map mac macs-group