CANOGA PERKINS 9175 Configuration Guide User Manual

Page 25

Advertising
background image

CanogaOS Configuration Guide

4-2

“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. This
rule will class all packets with source MAC
2222.2222.2222 to vlan 5

DUT(config)#vlan classifier rule 2 ip 1.1.1.1/24 vlan 5

Creat a subnet-based VLAN classifier rule.
This rule will class all packets with source IP
address in the subnet 1.1.1.1/24 to vlan 5

DUT(config)#vlan classifier rule 3 protocol ipv6 vlan 5

Creat a protocol-based VLAN classifier rule.
This rule will class all ipv6 packets to vlan 5.

DUT(config)#vlan classifier group 1 add rule 1

Creat a group of rules and add rule 1 to group
1)

DUT(config)#vlan classifier group 1 add rule 2

Add rule 2 to group 1

DUT(config)#vlan classifier group 1 add rule 3

Add rule 3 to group 1


Interface details
“show vlan classifier interface group” command displays all vlan classification on
interface.

DUT#configure terminal

Enter configuration mode

DUT(config)#interface eth-0-1

Enter the interface mode.

DUT(config-if)#switchport access vlan 6

Assign PVID 6 to port eth-0-1

DUT(config-if)#switchport access allowed vlan add 5

Allowed VLAN 5 to port eth-0-1, for receiving
packets from VLAN 5.

DUT(config-if)#vlan classifier activate 1 based ip

Apply group 1 on this port, and set this port’s
vlan class type to ip-based. Only ip-based vlan
class rule in group 1 can take effect on this port.

DUT(config-if)#exit

Exit the interface mode.

DUT(config)#interface eth-0-2

Enter the interface mode.

DUT(config-if)#switchport access vlan 6

Assign PVID6 to port eth-0-2

DUT(config-if)#switchport access allowed vlan add 5

Allowed VLAN 5 to port eth-0-2, for receiving
packets form VLAN 5.

DUT(config-if)#vlan classifier activate 1 based mac

Apply group 1 on this port, and set this port’s
vlan class type to mac-based. Only mac-based
vlan class rule in group 1 can take effect on this

Advertising