Parameters
• ip-address — Specifies the IP address prefix of the subnet to be entered to
the group.
• prefix-mask — Mask bits. The format is IP address format.
• group — Indicates the group number. (Range: 1-2147483647)
Default Configuration
This command has no default configuration.
Command Mode
VLAN Configuration mode
Command Usage
There are no user guidelines for this command.
Example
The following example maps the IP subnet to group of IP subnets.
Console(config-vlan)# map subnet ip-address 172.16.1.0 255.255.255.0
subnets-group 1
switchport general map subnets-group vlan
The switchport general map subnets-group vlan Interface Configuration
command sets a subnet-based classification rule. Use the no form of this command
to delete a classification.
Syntax
switchport general map subnets-group group vlan vlan-id
no switchport general map subnets-group group
Parameters
- group — Group number. (Range: 1 – 2147483647)
- vlan-id — Define the VLAN ID that is associated with the rule.
Default Setting
There is no default setting for this command.
Command Mode
Interface Configuration (Ethernet, port-channel)
Command Usage
The priority between VLAN classification rules is:
1) MAC based VLAN (Best match between the rules)
2) Subnet based VLAN (Best match between the rules)
3) Protocol based VLAN
4) PVID
4
VLAN Commands
691