Policy-Map Commands
XSR CLI Reference Guide 12-85
random-detect exponential-weighting-constant‐ConfigurestheWREDexponential
weightfactorfortheaveragequeuesizecalculation.Refertopage1295forthecommand
definition.
random-detect precedence ‐ConfiguresWREDminimumandmaximumthresholdand
maximumdropprobabilityvaluesforaIPprecedencevalue.Gotopage1296forthe
commanddefinition.
set cos‐MarkstheIEEE802.1priorityintheheaderofoutputVLANpacketswithaClassof
Service(CoS)matchingclause.Gotopage1297forthecommanddefinition.
set ip dscp‐MarksapacketbysettingtheIPDifferentiatedServicesCodePoint(DSCP)
parameter.Gotopage1298forthecommanddefinition.
set ip precedence‐SetstheprecedencevalueintheIPheader.Gotopage1299forthe
commanddefinition.
shape‐Enablesandconfigurestrafficshapingonaclass.Gotopage12100forthecommand
definition.
Usethepolicy-mapcommandtospecifythenameofthepolicymaptobecreated,addedto,or
modifiedbeforeyoucanconfigurepoliciesforclasseswhosematchcriteriaaredefinedinaclass
map.Invokingthepolicy-map commandenablesQoSPolicyMapconfigurationmodeinwhich
youcanconfigureormodifytheclasspoliciesforthatpolicymap.
Youcanconfigureclasspoliciesinapolicymaponlyiftheclasseshavematchcriteriadefinedfor
them.Youusethe class-map and match commandstoconfigurethematchcriteriaforaclass.
Youcanconfigureupto64classpoliciesinapolicymap.
Asinglepolicymapcanbeattachedtomultipleinterfacesconcurrently.Ifyouattempttoattacha
policymaptoaninterfaceandavailablebandwidthontheinterfacecannotaccommodatethetotal
bandwidthrequestedbyclasspoliciescomprisingthepolicymap,theinterfacebecomes
oversubscribed.Insuchacase,whenclassestrytosendwithalloftheirbandwidth,someclasses
maybeunabletotransmit.
Wheneveryoumodifyclasspolicyinanattachedpolicymap,CBWFQisnotifiedandthenew
classesareinstalledaspartofthepolicymapintheCBWFQsystem.
Syntax
policy-map policy-map-name
Syntax of the “no” Form
Usethenoformofthiscommandtodeleteapolicymap:
no policy-map policy-map-name
Mode
Globalconfiguration:XSR(config)#
Next Mode
PolicyMapconfiguration:XSR(config-pmap-<xx>)#
policy-map-name Nameofthepolicymap.