beautypg.com

Match vlan – Allied Telesis AT-DC2552XS User Manual

Page 501

background image

AT-DC2552SX Switch Command Line Interface User’s Guide

Section V: Security and Traffic Control

501

MATCH VLAN

Syntax

match vlan

vid

Parameter

vid

Specifies the VLAN ID number. The range is 1 to 4094.

Mode

Class Map Configuration mode

Description

Use this command to add the VLAN ID as a matching criterion to a class
map. When the VLAN ID has already been specified to a class map, this
command replaces the previous value with the new value.

When the VLAN ID is assigned, the switch compares the specified VID
against the VID in the tagged VLAN field (in packets) or the VID of either
the MAC address VLAN or a port VLAN with untagged VLAN packets.

To remove the VLAN ID as a matching criterion from a class map, use the
NO MATCH VLAN command.

Confirmation Command

“SHOW CLASS-MAP” on page 513

Examples

This example creates a class map called “cmap3” and adds VLAN 5 as a
matching criterion:

awplus> enable
awplus# configure terminal
awplus(config)# class-map cmap3
awplus(config-cmap)# match vlan 5

This example removes VLAN ID as a matching criterion from the class
map “cmap3”:

awplus> enable
awplus# configure terminal
awplus(config)# class-map cmap3
awplus(config-cmap)# no match vlan