11 vlan classifier rule – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 123

Advertising
background image

CanogaOS Command Line Reference

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 123 of 855

to an interface already.
When delete a rule from the group by this command, the rule on this interface will be inactive even if
the group is still apply to that interface.
The vlan classifier group will be deleted when the last rule on this group is deleted.

Examples

This example shows how to add rule1 to vlan classifier group 1:
Switch(config)# vlan classifier group 1 add rule 1
This example shows how to delete rule2 to vlan classifier group 1:
Switch(config)# vlan classifier group 1 delete rule 1

Related Commands

vlan classifier activate
vlan classifier rule

6.11 vlan classifier rule

Use this command to create vlan classifier rule.
To remove the vlan classifier rule, use the no form of this command.

Command Syntax

vlan classifier rule rule { ip ipv4_address | ipv6 ipv6_address | mac mac_address |
protocol { arp |ip | ip-or-ipv6 | ipv6 | mpls | mpls-mcast | rarp } } vlan <1-4094>
rule :<0-255> the id of vlan classifier rule
ipv4_address: the source of ipv4 address in packets
ipv6_address: the source of ipv6 address in packets
mac_address: the source of mac address in packets
{arp|ip|ip-or-ipv6|ipv6|mpls|mpls-mcast|rarp}: the protocol specified
<1-4094>: the vlan id to assign

Command Mode

Global configuration

Usage

The rule will be effective only in inbound on interface.
The vlan id assigned by vlan classifier rule will override the original vlan id it has.
To add this rule to vlan classifier group or apply the group to an interface, reference to vlan classifier
group
and vlan classifier activate command.

Examples

This example shows how to create rule1 which will apply vlan11 to all the ipv4 packets:
Switch(config)# vlan classifier rule 1 protocol ip vlan 11

Advertising