Os routers/switches by default tem pré-configurado o mapeamento entre CoS e DCSP. No entanto e possível alterar o mapeamento segundo os nossos requisitos.
Rack1SW1#sh mls qos map
Dscp-cos map:
dscp: 0 8 10 16 18 24 26 32 34 40 46 48 56
———————————————–
cos: 0 1 1 2 2 3 3 4 4 5 5 6 7
Cos-dscp map:
cos: 0 1 2 3 4 5 6 7
——————————–
dscp: 0 8 16 26 32 46 48 56
!!Alterando o mapeamento cos-dcsp cs4=32 e cs5=40
Rack1SW1(config)#mls qos ma cos-dscp ?
<0-63> Supported DSCP values are: 0,8,10,16,18,24,26,32,34,40,46,48,56
af11 Match packets with AF11 dscp (001010)
af21 Match packets with AF21 dscp (010010)
af31 Match packets with AF31 dscp (011010)
af41 Match packets with AF41 dscp (100010)
cs1 Match packets with CS1(precedence 1) dscp (001000)
cs2 Match packets with CS2(precedence 2) dscp (010000)
cs3 Match packets with CS3(precedence 3) dscp (011000)
cs4 Match packets with CS4(precedence 4) dscp (100000)
cs5 Match packets with CS5(precedence 5) dscp (101000)
cs6 Match packets with CS6(precedence 6) dscp (110000)
cs7 Match packets with CS7(precedence 7) dscp (111000)
default Match packets with default dscp (000000)
ef Match packets with EF dscp (101110)
Rack1SW1(config)#mls qos ma cos-dscp 0 0 0 0 32 40 0 0
Rack1SW1#sh mls qos maps
Dscp-cos map:
dscp: 0 8 10 16 18 24 26 32 34 40 46 48 56
———————————————–
cos: 0 1 1 2 2 3 3 4 4 5 5 6 7
Cos-dscp map:
cos: 0 1 2 3 4 5 6 7
——————————–
dscp: 0 0 0 0 32 40 0 0