beautypg.com

11 vlan classifier rule, 12 show vlan classifier group – CANOGA PERKINS 9175 Command Reference User Manual

Page 97

background image

CanogaOS Command Reference

6-7

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

This example shows how to delete rule1:

Switch(config)# no vlan classifier rule 1

Related Commands

vlan classifier group

vlan classifier activate

6.12 show vlan classifier group

Use this command to show the information about vlan classifier group.

Command Syntax

show vlan classifier group group

group: <0-31> the id of vlan classifier group

Command Mode

EXEC