D-Link DXS-3600-EM-4QXS CLI Guide - Page 481
Parameters, Example, Default
View all D-Link DXS-3600-EM-4QXS manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 481 highlights
DXS-3600 Series 10GbE Layer 2/3 Switch CLI Reference Guide Example This example shows how to define a traffic class (using the class-map command) and associate the policy with the match criteria for the traffic class in a policy map (using the policy-map command). The service-policy command is then used to attach this service policy to the interface. In this particular example, traffic policing is configured with an average rate of 5000 Kbits per second and a Committed burst size of 4096 Kbytes for all ingress packets specified by class-map class1 at interface tenGigabitEthernet 1/0/3. DXS-3600-32S#configure terminal DXS-3600-32S(config)#class-map class1 DXS-3600-32S(config-cmap)#match access-group 1 DXS-3600-32S(config-cmap)#exit DXS-3600-32S(config)#policy-map policy1 DXS-3600-32S(config-pmap)#class class1 DXS-3600-32S(config-pmap-c)#police sr-tcm 5000 4096 2048 conform-action transmit exceed-action set-dscp-transmit 54 violate-action drop DXS-3600-32S(config-pmap-c)#exit DXS-3600-32S(config-pmap)#exit DXS-3600-32S(config)#interface tenGigabitEthernet 1/0/3 DXS-3600-32S(config-if)#service-policy input policy1 DXS-3600-32S(config-if)# 48-9 police tr-tcm cir This command is used to configure traffic policing using two rates in policy-map configuration mode. Remove traffic policing from the configuration, use the no police command. police tr-tcm cir cir [bc cbs] pir pir [be pbs] [conform-action action [exceed-action action [violate-action action]]] no police Parameters cir cir bc cbs pir pir be pbs conform-action exceed-action violate-action action Specifies the committed information rate in kbps at which the first token bucket is updated. (Optional) Specifies the committed burst size in Kbytes used by the first token bucket for policing. It must be configured to be greater than 0. Specifies the peak information rate in kbps at which the second token bucket is updated. The pir must be equal to or greater than the cir. (Optional) Specifies the peak burst size in Kbytes used by the second token bucket for policing. It must be configured to be greater than 0. (Optional) Specifies the action to take on green color packets. The default action is 'transmit'. (Optional) Specifies the action to take on yellow color packets. The default action is 'drop'. (Optional) Specifies the action to take on red color packets. The default action is as same as action for yellow color packets. Specifies the action to take on the following packets: drop: Drops the packet. set-dscp-transmit new-dscp: Sets the IP differentiated services code points(DSCP) value and transmits the packet with the new DSCP value setting. set-1p-transmit new-cos: Sets the packet COS value and transmits it with the new CoS value. transmit: Transmits the packet with no change. Default None. 473