Switchport General Map Macs-Group Vlan - Cisco 300 Series Cli Manual

Small business 300 series managed switches command line interface guide release 1.3
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

32
510
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)# map mac 0000.1111.0000 32 macs-group 1
switchxxxxxx(config-vlan)# map mac 0000.0000.2222 host macs-group 2
switchxxxxxx(config-vlan)# exit
switchxxxxxx(config)# interface gi11
switchxxxxxx(config-if)# switchport mode general
switchxxxxxx(config-if)# switchport general map macs-group 1 vlan 2
switchxxxxxx(config-if)# switchport general map macs-group 2 vlan 3

32.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
Virtual Local Area Network (VLAN) Commands
vlan database
group
vlan
group
—Specifies the group number (range: 1–2147483647)
78-21075-01 Command Line Interface Reference Guide
map mac
macs-group),
vlan-id

Advertisement

Table of Contents
loading

Table of Contents