QoS Configuration on Cisco Router RT-2800>en Password: RT-2800#conf t Enter configuration commands, one per line. End with CNTL/Z. RT-2800(config)# RT-2800(config)#class-map match-any QoS_REALTIME RT-2800(config-cmap)#description: match packets of Reatime-traffic-class RT-2800(config-cmap)#match dscp ef ! match packets belongs to VoIP bearer traffic RT-2800(config-cmap)#match dscp cs5 ! match packets belongs to Broadcast Video traffic RT-2800(config-cmap)#match dscp cs4 ! match packets belongs to Realtime-interactive traffic RT-2800(config-cmap)#exit RT-2800(config)#class-map match-any QoS_CONTROL RT-2800(config-cmap)#description: match packets of Control-traffic-class RT-2800(config-cmap)#match dscp cs6 ! match packets belongs to Network-control traffic RT-2800(config-cmap)#match dscp cs3 ! match packets belongs to Voice-Video Signaling traffic RT-2800(config-cmap)#match dscp cs2 ! match packets belongs to VoIP bearer traffic RT-2800(config-cmap)#exit RT-2800(config)#class-map match-any QoS_CRITICALDATA RT-2800(config-cmap)#description: match packets of CriticalData-traffic-class RT-2800(config-cmap)#match dscp af41 af42 af43 ! match packets belongs to Multimedia-Conferance on AF4 RT-2800(config-cmap)#match dscp af31 af32 af33 ! match packets belongs to Multimedia-Streaming on AF3 RT-2800(config-cmap)#match dscp af21 af22 af23 ! match packets belongs to Transactional-Data on AF2 RT-2800(config-cmap)#match dscp af11 af12 af13 ! match packets belongs to Bulk-data on AF1 RT-2800(config-cmap)#exit RT-2800(config)#class-map match-any class-default ! not neccessary to creat this Class-Default % class-default is a well-known class and is not configurable under class-map RT-2800(config)# ! RT-2800(config)# ! RT-2800(config)#policy-map QoS_DRCC RT-2800(config-pmap)#Description: attachad Default-Realtime-Control-CriticalData traffic-classes RT-2800(config-pmap)#class class-default ! RT-2800(config-pmap-c)#bandwidth percent 25 RT-2800(config-pmap-c)#fair-queue RT-2800(config-pmap-c)#random-detect dscp-based RT-2800(config-pmap-c)#exit RT-2800(config-pmap)#class QoS_REALTIME RT-2800(config-pmap-c)#priority percent 33 RT-2800(config-pmap-c)#exit RT-2800(config-pmap)#class QoS_CONTROL RT-2800(config-pmap-c)#bandwidth percent 7 RT-2800(config-pmap-c)#exit RT-2800(config-pmap)#class QoS_CRITICALDATA RT-2800(config-pmap-c)#bandwidth percent 35 RT-2800(config-pmap-c)#fair-queue RT-2800(config-pmap-c)#random-detect dscp-based RT-2800(config-pmap-c)#exit RT-2800(config-pmap)#! RT-2800(config-pmap)#exit RT-2800(config)#! RT-2800(config)#interface gigabitethernet0/1 RT-2800(config-if)#description : attachad Default-Realtime-Control-CriticalData traffic-classes RT-2800(config-if)#service-policy output QoS_DRCC RT-2800(config-if)#exit RT-2800(config)#exit RT-2800# RT-2800# ---------------------------------------------------------------------------------------- RT-2800#show class-map Class Map match-any class-default (id 0) Match any Class Map match-any QoS_CRITICALDATA (id 3) Description: match packets of CriticalData-traffic-class Match dscp af41 (34) af42 (36) af43 (38) Match dscp af31 (26) af32 (28) af33 (30) Match dscp af21 (18) af22 (20) af23 (22) Match dscp af11 (10) af12 (12) af13 (14) Class Map match-any QoS_REALTIME (id 1) Description: match packets of Reatime-traffic-class Match dscp ef (46) Match dscp cs5 (40) Match dscp cs4 (32) Class Map match-any QoS_CONTROL (id 2) Description: match packets of Control-traffic-class Match dscp cs6 (48) Match dscp cs3 (24) Match dscp cs2 (16) ----------------------------------------------------------------------------------------- RT-2800#show policy-map Policy Map QoS_DRCC Description: attachad Default-Realtime-Control-CriticalData traffic-classes Class QoS_REALTIME priority 33 (%) Class QoS_CONTROL bandwidth 7 (%) Class QoS_CRITICALDATA bandwidth 35 (%) fair-queue packet-based wred, exponential weight 9 dscp min-threshold max-threshold mark-probablity ---------------------------------------------------------- default (0) - - 1/10 Class class-default bandwidth 25 (%) fair-queue packet-based wred, exponential weight 9 dscp min-threshold max-threshold mark-probablity ---------------------------------------------------------- default (0) - - 1/10 RT-2800# RT-2800# --------------------------------------------------------------------------------------------- RT-2800#show run ! class-map match-any QoS_CRITICALDATA description : match packets of CriticalData-traffic-class match dscp af41 af42 af43 match dscp af31 af32 af33 match dscp af21 af22 af23 match dscp af11 af12 af13 class-map match-any QoS_REALTIME description : match packets of Reatime-traffic-class match dscp ef match dscp cs5 match dscp cs4 class-map match-any QoS_CONTROL description : match packets of Control-traffic-class match dscp cs6 match dscp cs3 match dscp cs2 ! ! policy-map QoS_DRCC description : attachad Default-Realtime-Control-CriticalData traffic-classes class QoS_REALTIME priority percent 33 class QoS_CONTROL bandwidth percent 7 class QoS_CRITICALDATA bandwidth percent 35 fair-queue random-detect dscp-based class class-default bandwidth percent 25 fair-queue random-detect dscp-based ! ! interface GigabitEthernet0/1 description : assigned policy-map QoS_DRCC to G0/1 interface using Service-policy ip address dhcp ip nat outside ip virtual-reassembly in duplex auto speed auto service-policy output QoS_DRCC ! ! interface GigabitEthernet0/0 ip address 172.168.0.1 255.255.255.248 ip nat inside ip virtual-reassembly in duplex auto speed auto ! RT-2800#