Set 1181 – LevelOne GTL-2691 User Manual

Page 1181

Advertising
background image

C

HAPTER

41

| Quality of Service Commands

– 1181 –

E

XAMPLE

This example creates a policy called “rd-policy,” uses the

class

command to

specify the previously defined “rd-class,” uses the

set

command to classify

the service that incoming packets will receive, and then uses the police

trtcm-color-blind command to limit the average bandwidth to 100,000

Kbps, the committed burst rate to 4000 bytes, the peak information rate to

1,000,000 kbps, the peak burst size to 6000, to remark any packets

exceeding the committed burst size, and to drop any packets exceeding

the peak information rate.

Console(config)#policy-map rd-policy

Console(config-pmap)#class rd-class

Console(config-pmap-c)#set ip dscp 3

Console(config-pmap-c)#police trtcm-color-blind 100000 4000 100000 6000

exceed-action 0 violate-action drop

Console(config-pmap-c)#

set

This command modifies the CoS, DSCP or IP Precedence value in a

matching packet (as specified by the

match

command). Use the no form to

remove this traffic classification.

S

YNTAX

[no] set {cos new-cos | ip dscp new-dscp |

ip precedence new-ip-precedence}
new-cos - New Class of Service (CoS) value. (Range: 0-7)
new-dscp - New Differentiated Service Code Point (DSCP) value.

(Range: 0-63)
new-ip-precedence - New IP Precedence value. (Range: 0-7)

D

EFAULT

S

ETTING

None

C

OMMAND

M

ODE

Policy Map Class Configuration

C

OMMAND

U

SAGE

The set cos command is used to set the CoS value in the VLAN tag for

matching packets.

The set ip dscp and set ip precedence commands are used to set

these priority values in the packet’s ToS field for matching packets.

Each of these commands function at the same level of priority.

Therefore setting any one of these commands will overwrite the action

configured by the last set command.

Advertising