D-Link DXS-3600-EM-8T CLI Guide - Page 484
priority-queue cos-map
View all D-Link DXS-3600-EM-8T manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 484 highlights
Usage Guideline DXS-3600 Series 10GbE Layer 2/3 Switch CLI Reference Guide The global configuration command policy-map is used to specify the name of the policy map that user want to create or modify policy-map information and enter policy map configuration mode. In the policy map configuration mode, the user can use the following command to attach or detach class map to/from the policy map: class: Attach a exist class map that defined classification criteria to the policy map and enter the policy-map class configuration mode. no: Remove a class map from this policy map. Policy maps maybe contain more than one traffic class by using the class policymap configuration command. The user can attach the policy map to an interface by using the service-policy interface configuration command. Only one policy map per interface is supported and a policy map can apply to multiple interfaces. If user want modify the policy-map information that attached to one or more interfaces, they must first use no form of service-policy interface configuration command to detach it from these interfaces. Example This example shows how to create a policy map called policy1. When attached to the ingress port, it matches all the incoming traffic defined in class1, sets the COS to 5, and polices the traffic at an average rate of 1 Mbps and bursts at 20 KB. Traffic exceeding the profile is discarded. DXS-3600-32S#configure terminal DXS-3600-32S(config)#policy-map policy1 DXS-3600-32S(config-pmap)#class class1 DXS-3600-32S(config-pmap-c)#set cos 5 DXS-3600-32S(config-pmap-c)#police rate 1000 20 exceed-action drop DXS-3600-32S(config-pmap-c)# Example This example shows how to configure multiple classes in a policy map called policy2. DXS-3600-32S#configure terminal DXS-3600-32S(config)#policy-map policy2 DXS-3600-32S(config-pmap)#class class1 DXS-3600-32S(config-pmap-c)#set dscp 10 DXS-3600-32S(config-pmap-c)#police rate 1000 20 exceed-action dscp 12 DXS-3600-32S(config-pmap-c)#exit DXS-3600-32S(config-pmap)#class class2 DXS-3600-32S(config-pmap-c)#police sr-tcm 2000 bc 20 be 40 conform-action drop exceed-action dropDXS-3600-32S(config-pmap-c)#exit DXS-3600-32S(config-pmap)#class class3 DXS-3600-32S(config-pmap-c)#set cos-queue 5 DXS-3600-32S(config-pmap-c)# 48-12 priority-queue cos-map This command is used to define a class of service (CoS) to queue maps in the global configuration mode. To restore to the default setting, use the no form of this command. priority-queue cos-map qid cos0 [cos1 [cos2 [cos3 [cos4 [cos5 [cos6 [cos7]]]]]]] no priority-queue cos-map Parameters qid cos0...cos7 Specifies the queue ID. Specifies the associated CoS value. 476