beautypg.com

Creating a class map 9, Filtering incoming traffic 9, Creating a class map – Allied Telesis AT-FS970M Series User Manual

Page 1629: Filtering incoming traffic

background image

AT-FS970M Switch Command Line User’s Guide

1629

Creating a Class Map

To define filtering criteria, you need to create a class map. You create a
class map and then add it to a policy map to define an action for the
matched traffic. (This is the example shown in this section.) Or, you can
create a class map after you create a policy map. It is important to
understand that class maps filter incoming packets only.

For more information about the CLASS-MAP command, see “CLASS-
MAP” on page 1601.

The following example creates a class map named “cmap1” and enters the
Class Map mode. It is only within the Class Map mode that you can add
filters to the class map.

The following sections describe the extensive list of filtering options
available within a class map and provide configuration examples:

“Filtering Incoming Traffic” on page 1629

“Filtering Procedures” on page 1630

Filtering

Incoming Traffic

After you create a class map, you want to filter incoming traffic by placing
matching criteria on the class map. All of the QoS filtering commands
begin with “MATCH.” There are ten commands that allow you to set
matching criteria for a class map. See Table 192.

Table 191. Creating a Class Map

Command

Description

awplus> enable

Enter the Privileged Executive mode from the User
Executive mode.

awplus# configure terminal

Enter the Global Configuration mode.

awplus(config)# class-map cmap1

Creates a class map called “cmap1” and enters the
Configuration Class mode.

awplus(config-cmap)#

Displays the Class Map mode prompt.

Table 192. Class-Map Metering Commands

To Do this Task

Use this Command

Use an ACL group name or group number
as a matching criterion for IPv4 ACLs only.

match access-group

name|

group

-number

Use the specified CoS value as a matching
criterion.

match cos <0-7>