![Cisco Sx350 Cli Manual Download Page 1279](http://html.mh-extra.com/html/cisco/sx350/sx350_cli-manual_26093201279.webp)
Virtual Local Area Network (VLAN) Commands
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
1278
67
User Guidelines
Forwarding of packets based on their MAC address requires setting up groups of
MAC addresses and then mapping these groups to VLANs.
Up to 256 MAC addresses (host or range) can be mapped to one or many
MAC-based VLAN groups.
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)#
vlan database
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
gi14
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
67.24 switchport general map macs-group
vlan
Use the switchport general map macs-group vlan Interface Configuration 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
•
group
—Specifies the group number (range: 1–2147483647)
•
vlan-id
—Defines the VLAN ID associated with the rule.
Summary of Contents for Sx350
Page 1: ...Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide CLI GUIDE ...
Page 26: ...25 Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 1 ...
Page 237: ...CDP Commands Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 236 8 ...
Page 975: ...RADIUS Commands Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 974 48 ...