![Cisco Small Business 300 1.1 Series Administration Manual Download Page 422](http://html.mh-extra.com/html/cisco/small-business-300-1-1-series/small-business-300-1-1-series_administration-manual_2609294422.webp)
Virtual Local Area Network (VLAN) Commands
78-20269-01 Command Line Interface Reference Guide
423
30
used in
switchport general map macs-group vlan
. Use the no form of this
command to delete the mapping.
This command can only be used when the device is in Layer 2 mode.
Syntax
map mac
mac-address
{
prefix-mask
| host} macs-group
group
no map mac
mac-address
{
prefix-mask | host}
Parameters
•
mac
mac-address
—Specifies the MAC address to be mapped to the group
of MAC addresses.
•
prefix-mask—Specifies the number of ones in the mask.
•
host—Specifies that the mask is comprised of all 1s.
•
macs-group
group
—Specifies the group number (range: 1–2147483647)
Default Configuration
N/A
Command Mode
VLAN Configuration mode
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
console(config-vlan)#
map mac
0000.0000.2222 host
macs-group
2
console(config-vlan)#
exit
console(config)#
interface
gi11
console(config-if)#
switchport mode general
console(config-if)#
switchport general map
macs-group
1
vlan
2
console(config-if)#
switchport general map
macs-group
2
vlan
3