beautypg.com

Chapter 14 commands for qos and pbr, 1 class, 2 class-map – PLANET XGS3-24040 User Manual

Page 216: Class

background image

14-82

Chapter 14 Commands for QoS and

PBR

14.1 class

Command:

class <class-map-name>

no class <class-map-name>

Function:

Associates a class to a policy map and enters the policy class map mode; the “no class

<class-map-name>” command deletes the specified class.

Parameters:

< class-map-name> is the class map name used by the class.

Default:

No policy class is configured by default.

Command mode:

Policy map configuration Mode

Usage Guide:

Before setting up a policy class, a policy map should be created and the policy map mode entered.

In the policy map mode, classification and policy configuration can be performed on packet traffic

classified by class map.

Example:

Entering a policy class mode.

Switch(config)#policy-map p1

Switch(Config-PolicyMap-p1)#class c1

Switch(Config-PolicyMap-p1-Class-c1)#exit

14.2 class-map

Command:

class-map <class-map-name>

no class-map <class-map-name>

Function:

Creates a class map and enters class map mode; the “no class-map <class-map-name>

command deletes the specified class map.

Parameters:

<class-map-name> is the class map name.

Default:

No class map is configured by default.

Command mode:

Global Mode