Switchport General Map Macs-Group Vlan - Cisco Small Business 300 1.1 Series Administration Manual

Managed switch
Table of Contents

Advertisement

Virtual Local Area Network (VLAN) Commands
78-20269-01 Command Line Interface Reference Guide

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
no switchport general map macs-group
Parameters
group
macs-group
vlan-id
vlan
—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
group
vlan
group
—Specifies the group number (range: 1–2147483647)
map mac
macs-group),
vlan-id
30
424

Advertisement

Table of Contents
loading

Table of Contents