Policy-Map Commands
12-84 Configuring Quality of Service
service-policy
Thiscommandattachesapolicymaptoanoutput orinputinterface.Youcanattachasingle
policymaptooneormoreinterfaces.
Syntax
service-policy [input | output] policy-map-name
Syntax of the “no” Form
Thenoformofthecommandremovesapolicymapfromtheinterface:
no service-policy [input | output]
Mode
Interfaceconfiguration:XSR(config-if<xx>)#
Example
ThefollowingexampleassociatespolicymapACMEpolicywithSerial1/0:
XSR(config)#interface serial 1/0
XSR(config-if<S1/0>)#service-policy output ACMEpolicy
Policy-Map Commands
policy-map
Thiscommandcreatesormodifiesapolicymapthatcanbe attachedtooneormoreinterfacesto
specifyaservicepolicy.Sub‐commandsassociatedwiththiscommandare:
•
bandwidth‐Specifiesthebandwidthallocatedforaclassbelonging toapolicymap.Goto
page12‐86forthecommanddefinition.
•
class‐Specifiesthecriteriaforclassifyingtraffic.Gotopage12‐87forthecommand
definition.
•
police‐Configurestrafficpolicing.Gotopage12‐89forthecommanddefinition.
•
priority‐Prioritizesaclassoftrafficbelongingtoapolicymap.Gotopage12‐90forthe
commanddefinition.
•
queue-limit‐Specifiesthepeaknumberofpacketsthequeuecanholdforaclasspolicy
configuredinapolicymap.Refertopage12‐91forthecommanddefinition.
•
random-detect(RED)‐EnablesRandomEarlyDetectonaninterface.Refertopage12‐92for
thecommanddefinition.
•
random-detect(WRED)‐EnablesWeightedRandomEarlyDetectonaninterface.Referto
page12‐93forthecommanddefinition.
•
random-detect dscp‐SpecifiestheDSCPvalue.Refertopage12‐93forthecommand
definition.
policy-map-name
Attachesthespecifiedpolicymapontotheoutputport.