4 configuring vlan classification, 1 vlan-class configuration – CANOGA PERKINS CanogaOS Configuration Guide User Manual
Page 30
CanogaOS Configuration Guide
Proprietary & Confidential Canoga Perkins Metro Ethernet Switches
Page 30 of 350
4 Configuring VLAN CLASSIFICATION
4.1 VLAN-CLASS Configuration
VLAN classification is used to define specific rules for directing packets to selected VLANs
based on protocol or subnet criteria. Sets of rules can be grouped (one group per interface).
4.1.1 Configuring VLAN-CLASS
In this configuration example, three VLAN classifier rules are created to direct IPv6 packets and
packets sourced from subnet 1.1.1.1/24 and packet with mac 2222.2222.2222 to VLAN 5 from
interface (eth-0-1,eth-0-2,eth-0-3). Packets that do not meet the criteria defined by the rules are
passed by default to VLAN 6.
Note that eth-0-1, eth-0-2 and eth-0-3 should allow VLAN 5 for switching packets.
VLANCLASS details
“show vlan classifier group” command displays all vlan classification groups, “show vlan
classifier rule” command displays all vlan classification rules.
DUT>enable
DUT#configure terminal
Enter the Configure mode
DUT(config)#vlan database
Enter the VLAN configuration mode
DUT(config-vlan)#vlan 5
Enable vlan5
DUT(config-vlan)#vlan 6
Enable vlan6
DUT(config-vlan)#exit
Exit the vlan configuration mode
DUT(config)#vlan classifier rule 1 mac 2222.2222.2222 vlan 5
Create a mac-based VLAN classifier rule
DUT(config)#vlan classifier rule 2 ip 1.1.1.1/24 vlan 5
Creat a subnet-based VLAN classifier rule.
DUT(config)#vlan classifier rule 3 protocol ipv6 vlan 5
Creat a protocol-based VLAN classifier rule.