beautypg.com

Chapter 5 - command line interface – Asus GigaX2124 User Manual

Page 101

background image

89

Chapter 5 - Command Line Interface

This command defines a policy-map class using a name, and enter policy-

map-class configuration mode.

CLI Syntax: class CLASSMAP
Example: (config-pmap)# class a

5.3.19.3

match

This command set the match criteria.

CLI Syntax: match (access-group ACLNAME | ip dscp DSCPLIST |

ip

precedence IPPRECEDENCES

)

Example: (config-pmap-class)# match access-group ipacl1
(config-pmap-class)# match ip dscp 4-6
(config-pmap-class)# match ip precedence 1,3,5

5.3.19.4

police

This command set the police for the incoming packets which match the

criteria.

CLI Syntax: police (RATE BURSTSIZE | drop | high-drop)
Example: (config-pmap-class)# police 64 128
(config-pmap-class)# police drop
(config-pmap-class)# police high-drop

5.3.19.5

set

This command set the COS and IP priority of the incoming packets which

match the criteria.

CLI Syntax: set (cos override VALUE | ip dscp VALUE | ip precedence

VALUE)

Example: (config-pmap-class)# set cos 3
(config-pmap-class)# set ip dscp 20
(config-pmap-class)# set ip precedence 5

5.3.19.6

service-policy input