DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
513
Switch# configure terminal
Switch(config)# class-map police
Switch(config-cmap)# match access-group name myAcl101
Switch(config-cmap)# 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 eth1/0/3
Switch(config-if)# service-policy input policy1
Switch(config-if)#
56-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.
Usage Guideline
Use the
policy-map
command to enter the policy-map configuration mode from where the user can
configure or modify the policy for the traffic class. A single policy map can be attached to more than
one interface concurrently. The succeeding policy-map attaches overwrite the previous one.
Policy maps contain traffic classes. Traffic classes contain one or more match commands that can be
used to match packets (and organize them into groups) on the basis of a protocol type or application.
Example
This example shows how to create a policy map called policy and configures two class policies within
the policy map. The class policy called class1 specifies a policy for traffic that matches an access
control list (ACL) “acl_rd”. The second class is the default class, named class-default to include
packets that do not match the defined classes.
Содержание DGS-510
Страница 1: ...1 ...
Страница 287: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 284 ...
Страница 321: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 318 ...
Страница 493: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 490 ...
Страница 733: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 730 ...