CISCO官方配置手册NBAR.docx
ConfiguringNetwork-BasedApp1.icationRecognitionThischapterdescribesthetasksforconfiguringtheNetwork-BasedApp1.icationRecognition(NBARfeature.Forcomp1.eteconceptua1.information,seetheScction4fcNetwork-BasedApp1.icaiionRecognition''intheC1.assification()verfiew,'chapterinthisbook.Foracomp1.etedescriptionoftheNBRcommandsmentionedinthischapter,refertotheCiscoIOSQua1.ityofServiceSo1.utionsCommandReference.To1.ocatedocuIiwntationofothercommandsthatappearinthischapter,usethecommandreferencemasterindexorsearchon1.ine.Toidentif),thehardwarep1.a1.fornorsoftwareimageinformationassociatedwithafeature,usetheFeatureNavigatoronCtosearchforinformationaboutthefeatureorrefertothesoftwarere1.easenotesforaspecificre1.ease.Formoreinformation,seethc,wIdcntifyingSupportedP1.atforms*sectioninIhewUsingCiscoIOSSoftware''chapterinthisbook.NBARConfigurationTask1.istYourinterfaceIoNBARisthroughtheM<1.u1.arQOSCommand-1.ineInterface(Modu1.ai-QoSC1.Ifeaure.11eModu1.arQOSC1.Iprovidesamode1.forQoSconfigurationunderCiscoIOSsoftware.heModu1.arQoSC1.1.providesac1.eanseparationbetweenthespecificationofac1.assificationpo1.icyandthespecificationofotherpo1.iciesthatactbasedontheresu1.tsoftheapp1.iedc1.assification.ConfiguringaQOSpo1.icytypica1.1.yrequirestheconfigurationoftrafficc1.asses,theconfigurationofpo1.iciesthatwi1.1.beapp1.iedtothosetrafficc1.asses,andtheattachingofpo1.iciestointerfacesusingthefo1.1.owingcommands:c1.ass-mappo1.icy-mapservice-po1.icyUseIhec1.ass-mapcommandtodefineoneormoretrafficc1.assesbyspecifyingthecriteriabywhichtrafficisc1.assified.Usethepo1.icy-mapcommandtodefineoneormoreQoSPo1.iC沁S(SUChasshaping,po1.icing.andsoontoapp1.ytotrafficdefinedbyac1.assmap.Usetheservice-po1.icycommandtoattachatrafficIoanin1.erfaceonthemuter.Foradditiona1.informationontheModu1.arQOSCI.I,seeIhe44ModuIarQua1.ityofServiceCommand-1.ineInterface()verviewchapterinthisbook.ConfiguringNetwork-Based.app1.icationRecognitionNBARConfigurationTask1.istToconfigureNBR.performthe(asksdescribedinthefo1.1.owingsections.Thetasksinthefirstthreesectionsarcrequired;(hetasksintheremainingtwosectionsarcoptiona1.ConfiguringaTra1.TicC1.ass(RequiredConfiguringaTrafficPo1.icy(RequiredAttachingaTrafficPo1.icytoanInterface(RequiredVerifyingTrafficPo1.icyConfiguration(Optiona1.MonitoringandMaintainingNBAR(Optiona1.NoteYoumustenab1.eCiscoExpressForwarding(CEFontherouierpriortoconfiguringtheNBRfeature.Forinformationonhowtoenab1.eCEErefertotheCiscoIOSSwitchingServicesConfigurationGuide.ScctheendofthischapterforthesectionfcfcNBARConfigurationExamp1.e.''ConfiguringaTrafficCkissToconfigureatruff1.ec1.assandIhematchcriteriathatwi1.1.beusedtoidentifytrafficasbe1.ongingIo(hatc1.ass.usethec1.ass-mapg1.oba1.configurationcommand.Formoreinformationabou1.matchcriteria.seethesection''CreatingaTrafficC1.asS''intheChapter44ConfiguringtheModu1.arQua1.ityofServiceCommand-1.ineInterIhCe''inthisbook.Todefinethematchcriteria,usethefo1.1.owingcommandsbeginninging1.oba1.configurationm<ic.Inthefo1.1.owingpr<>cedurc,a1.1.trafficmatchingaspecifiedproi(o1.wi1.1.bec1.assifiedasbe1.ongingIothetrafficc1.ass.Thetrafficc1.asswi1.1.c1.assifytrafficwhi1.ethetrafficpo1.icyhowtotreatthetraffic.Forinstance,ifyouwanteda1.1.FTPtraffictobemarkedwiththeQoSgroupva1.ueof1.youwou1.dusethematchprotoco1.ftpcommandinc1.ass-mapconfigurationmode,andusethesetqos-groupIcommandinpo1.icy-mapc1.assconfiguration111.c(assumingthetrafficpo1.icyusesthespecifiedc1.ass.Therefbrejhec1.assificationpu×>Se(CIaSSifyingFTPIrafficwou1.dbehand1.edinthetrafficc1.ass.whi1.etheQoSfeature(markingtheQoSgroupva1.ueto1wou1.dbehand1.edinthetrafficpo1.icy.CommandPurposeStep1.Router(configttc1.ass-mapmatch-a1.1.matchanyc1.ass-nameSpecifiestheuser-definednameofthec1.assmap.Thcmatch-a1.1.optionspecificsthata1.1.matchcriteriainthec1.assmapmustbematched.Themutch-anyoptionspecifiesthatonet>rmorematchcriterianuMmatch.Sep2Router(config-cnanatchprotoco1.protoco1.-nameSpecifiesaprotoco1.SUPPOrtedbyNBARasamatchingcriterion.ConfiguringNetwork-BasedApp1.icationRecognitionNBARConfigurationTask1.istTosecifj,heQOSpo1.iciestoapp1.ytotratTicc1.assesdefinedbyatrafficc1.ass,usethefo1.1.owingcommandsbeginninging1.oba1.configurationmode:CommandPurposeStepIRoucer(config#po1.icy-inappo1.icy-nanwSpecifiesthetrafficpo!icyIKUneenteredbytheuser.Stcp2Routcr(config-pmap#c1.assc1.ass-nameSpecifiesthenameofaprevious1.ydefinedIrafficc1.ass.S1.ep3Rou1.er(cong-pmap-cEn1.erspo1.icy-mapc1.assconfigurationmode,aprerequisiteforenteringQoSpo1.icies.AttachingaTrafficPo1.icytoanIntertaceToattachatrafficpo1.icytoaninterfaceandtospecifythedirectioninwhichthetrafficpo1.icyshou1.dbeapp1.ied(oneitherpacketscomingintoIheinterfaceorpackets1.eavingtheintcrfacc.uscthefo1.1.owingcommandsininterfaceconfigurationmode,asneeded:CommandPurposeRoutcr(confg-ifscrvicc-po1.icyoutputpo1.icy-map-namcSpecificsthenameofth