Chapter 13: VLAN classification
Creating VLAN classification rules
There are two types of VLAN classification rules that you can create:
• IPv4 subnet-based VLAN classification rule (if the source IP address matches the IP
subnet specified in the VLAN classification rule, the received packets are mapped to the
specified VLAN)
• protocol-based VLAN classification rule (If the protocol type matches the protocol
specified in the VLAN classification rule, the received packets are mapped to the specified
VLAN)
Configuring an IPv4 subnet-based VLAN classification rule
Procedure steps
1. To access configuration mode, enter:
2. Enter the configuration context:
3. To create a subnet-based VLAN classification rule, enter:
Table 51: Variable definitions
<id>
<ipaddr/netmask>
Configuration — Layer 2 Ethernet
configuration
configure terminal
vlan classification
rule <id> ipv4 <ipaddr/netmask> vlan <vid>
Variable
Value
The VLAN classifier rule ID. Valid values are
1 to 12.
IPv4 address. Specify an IP address and
subnet. For example, 10.11.12.13/24.
July 2013
121