ated, I'll leave you to your own devices. QoS on the CME Router We should apply some QoS to the router interfaces, SO let's make it as simple as pos- sible. I'll configure classes for voice control and the voice RTP stream. Everything else can fend for itself. For a more detailed QoS example, see Chapter 32. This QoS scheme assumes that the phones will mark their packets appropriately. Since we're using Cisco phones, this is a safe assumption. First, we'll set up the class-maps to identify and classify traffic: R1-PBX(config)#class-map match-any Voice-Calls R1-PBX(config-cmap)#description [---[ RTP Calls ]---] R1-PBX(config-cmap)#match ip dscp ef R1-PBX(config-cmap)#match ip precedence 5 R1-PBX(config-cmap)#class-map match-any Voice-Control R1-PBX(config-cmap)#description [---[ Call Control ]---] R1-PBX(config-cmap)#match ip dscp af31 R1-PBX(config-cmap)#match ip precedence 3 Yeah, the match lines in each class are generally superfluous, butIjust can'thelpmyself. I've done it this way forever, and old habits die hard. We now need to create a policy- map for our class maps. This policy map allows for four concurrent G. 711 calls with generous space for call control: R1-PBX(config-cmap)#policy-map Ethernet-QoS R1-PBX(config-pmap)#descriptio [---[ Apply Treatment for Classes ]---] R1-PBX(config-pmap)#class Voice-Calls R1-PBX(config-pmap-c)#priority 256 64 R1-PBX(config-pmap-c)#class Voice-Control R1-PBX(config-pmap-c)#bandwidth 128 R1-PBX(config-pmap-c)#class class-default R1-PBX(config-pmap-c)#fair-queue If you have multiple VLANs attached to your interfaces, you cannot apply the policy map to a subinterface. Instead, you need to traffic-shape the interface and then apply the service-policy under the class-default class of that policy. Here, I've applied traffic shaping to 50 Mbps outbound (the speed of the Internet link, in this case) and applied the WAN-edge service policy: R1-PBX(config)#policy-map SubInt-QoS R1-PBX(config-pmap)#class class-default R1-PBX(config-pmap-c)#shape average 50000000 R1-PBX(config-pmap-