beautypg.com

Associating a class map with a policy map, Assigning a policy map to a port, Associating a class map with a policy map 9 – Allied Telesis AT-8100 Series User Manual

Page 1659: Assigning a class a policy map to a port 9

background image

AT-8100 Switch Command Line User’s Guide

1659

Associating a

Class Map With a

Policy Map

To associate a class map to a policy map, use the CLASS command. For
more information about this command, see “CLASS” on page 1599.

The following example creates a policy map called pmap1, then
associates pmap1 to a class map called “cmap1:”

Assigning a

Policy Map to a

Port

A policy map can be applied to one or more ports. Please note that
AT-8100 switches accept only one policy map per each port.

You assign a policy map to a port with the SERVICE-POLICY INPUT
command. For more information about this command, see “SERVICE-
POLICY INPUT” on page 1663.

The following example assigns policy map “pmap1” to port 5:

Table 206. Associating a Class Map with a Policy Map

Command

Description

awplus> enable

Enters the Privileged Executive mode from the
User Executive mode.

awplus# configure terminal

Enters the Global Configuration mode.

awplus(config)# policy-map pmap1

Creates a policy map called “pmap1” and enters
the Policy Map Class Configuration mode.

awplus(config-pmap)# class cmap1

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

awplus(config-pmap-c)#

Indicates the Policy Map Class Configuration mode
prompt.

Table 207. Assigning a Class a Policy Map to a Port

Command

Description

awplus> enable

Enters the Privileged Executive mode from the
User Executive mode.

awplus# configure terminal

Enters the Global Configuration mode.

awplus(config)# interface port1.0.5

Enters the Interface Configuration mode for port 5.

awplus(config-if)# service-policy
input pmap1

Assigns the policy map “pmap1” to port 5.