11.07.2015 Views

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

policeChapter 2<strong>Catalyst</strong> <strong>3750</strong>-E <strong>and</strong> <strong>3560</strong>-E <strong>Switch</strong> <strong>Cisco</strong> <strong>IOS</strong> Comm<strong>and</strong>sExamplesThis example shows how to configure a policer that drops packets if traffic exceeds 1 Mb/s average ratewith a burst size of 20 KB. The DSCPs of incoming packets are trusted, <strong>and</strong> there is no packetmodification.<strong>Switch</strong>(config)# policy-map policy1<strong>Switch</strong>(config-pmap)# class class1<strong>Switch</strong>(config-pmap-c)# trust dscp<strong>Switch</strong>(config-pmap-c)# police 1000000 20000 exceed-action drop<strong>Switch</strong>(config-pmap-c)# exitThis example shows how to configure a policer, which marks down the DSCP values with the valuesdefined in policed-DSCP map <strong>and</strong> sends the packet:<strong>Switch</strong>(config)# policy-map policy2<strong>Switch</strong>(config-pmap)# class class2<strong>Switch</strong>(config-pmap-c)# police 1000000 20000 exceed-action policed-dscp-transmit<strong>Switch</strong>(config-pmap-c)# exitYou can verify your settings by entering the show policy-map privileged EXEC comm<strong>and</strong>.Related Comm<strong>and</strong>s Comm<strong>and</strong> DescriptionclassDefines a traffic classification match criteria (through the police, set,<strong>and</strong> trust policy-map class configuration comm<strong>and</strong>s) for thespecified class-map name.mls qos map policed-dscp Applies a policed-DSCP map to a DSCP-trusted port.policy-mapCreates or modifies a policy map that can be attached to multipleports to specify a service policy.setClassifies IP traffic by setting a DSCP or IP-precedence value in thepacket.show policy-mapDisplays quality of service (QoS) policy maps.trustDefines a trust state for traffic classified through the classpolicy-map configuration or the class-map global configurationcomm<strong>and</strong>.2-428<strong>Catalyst</strong> <strong>3750</strong>-E <strong>and</strong> <strong>3560</strong>-E <strong>Switch</strong> Comm<strong>and</strong> ReferenceOL-9776-08

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!