beautypg.com

16 policy-map, Policy – PLANET WGSW-52040 User Manual

Page 370

background image

20-139

Command mode:

Policy class map configuration Mode

Usage Guide:

The same policy set can be referred to by different policy class maps.

Example:

Create class-map, the match rule is the cos value is 0; policy-map is 1, enter the policy map mode, set the Policy and

choose the color policy for the current list.

Switch(config)#class-map cm

Switch(config-classmap-cm)#match cos 0

Switch(config-classmap-cm)#exit

Switch(config)#policy-map 1

Switch(config-policymap-1)#class cm

Switch(config-policymap-1-class-cm)#policy aggregate color

20.16 policy-map

Command:

policy-map <policy-map-name>

no policy-map <policy-map-name>

Function:

Creates a policy map and enters the policy map mode; the “no policy-map <policy-map-name>” command deletes

the specified policy map.

Parameters:

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

Default:

No policy map is configured by default.

Command mode:

Global Mode

Usage Guide:

Policy class map opertion can be done in policy map configuration mode.

Example: