Virtual Local Area Network (VLAN) Commands
1281 Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
67
Parameters
•
ip-address
—Specifies the IP address prefix of the subnet to be mapped to
the group.
•
prefix-mask
—Specifies the number of 1s in the mask.
•
group
—Specifies the group number. (range: 1–2147483647)
Default Configuration
N/A
Command Mode
VLAN Database Configuration mode
User Guidelines
Forwarding of packets based on their IP subnet requires setting up groups of IP subnets and
then mapping these groups to VLANs.
Example
The following example maps an IP subnet to the group of IP subnets 4. It then
maps this group of IP subnets to VLAN 8
switchxxxxxx(config)#
vlan database
switchxxxxxx(config-vlan)#
map subnet
172.16.1.1 24
subnets-group
4
switchxxxxxx(config-vlan)#
switchport general map subnets-group
4
vlan
8
67.27 switchport general map subnets-group
vlan
Use the switchport general map subnets-group vlan Interface Configuration mode
command to set a subnet-based classification rule. Use the no form of this
command to delete a subnet-based classification rule.
Syntax
switchport general map subnets-group
group
vlan
vlan-id
no switchport general map subnets-group
group
Parameters
•
group
—Specifies the group number. (range: 1–2147483647)