D-Link DGS-3130 Emulator - Page 662
policy-map
View all D-Link DGS-3130 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 662 highlights
DGS-3130 Layer 3 Stackable Managed Switch CLI Reference Guide color of the packet is determined by the initial color of the packet, and the policer metering result. The policer may further downgrade the initial color. After the policer metering, and based on the final color, conform-action will be taken on green color packets, exceed-action will be taken on yellow color packets, and violate-action will be taken on red color packets. When specifying the actions, you cannot specify contradictory actions such as violate-action transmit and exceedaction drop. The actions configured by the set command for the traffic class will be applied to all the packets belonging to the traffic class. Example This example shows how two-rate traffic policing is configured on a class called police to limit traffic to an average committed rate of 500 kbps and a peak rate of 1 Mbps, and the policy map named policy1 is attached to Ethernet 1/0/3. Switch# configure terminal Switch(config)# class-map police Switch(config-cmap)# match access-group name myAcl101 Switch(config-cmap)# exit Switch(config)# policy-map policy1 Switch(config-pmap)# class police Switch(config-pmap-c)# police cir 500 bc 10 pir 1000 be 10 exceed-action set-dscp-transmit 2 violate-action drop Switch(config-pmap-c)# exit Switch(config-pmap)# exit Switch(config)# interface ethernet 1/0/3 Switch(config-if)# service-policy output policy1 Switch(config-if)# 63-16 policy-map This command is used to enter the policy-map configuration mode and create or modify a policy map that can be attached to one or more interfaces as a service policy. Use the no form of this command to delete a policy map. policy-map NAME no policy-map NAME Parameters NAME Specifies the name of the policy map. The name can be a maximum of 32 alphanumeric characters. Default None. Command Mode Global Configuration Mode. Command Default Level Level: 12. 658