PacketTracer实验全集.docx
PacketTracer5.0运用手册网络工程配置学习手册交换、路由基本通信学问教学网络材料计算机学院网络工程系)利2011-10-14收集整理书目PacketTracer5.0建构CCNA试验攻略一一在捏Cis交换机2PacketTracer5.0建构CCNA试验攻略(2)一配置V1.AN8PacketTracer5.0建构CCNA或脸攻略一一CiscoVTP11PacketTracerS.0建构CCNA试5金攻略(4)一一STP生成树协议ISPacketTracer5.0建构CCNA试验攻略一一W1.AN19PacketTracer5.0建构CCNA试验攻略(6)一一配过单个的路由器23PacketTracer5.0电构CCNA式段攻略一一配置静态路由30PacketTracerS.0建构CCNA送5金攻略(8)一配置动态路由RIP32PacketTracerS-O建构CCNA试验攻略(9)一一CisocEIGRP36PacketTracer5.0建构CCNA试验攻略(10)一一配置单区域OSPF42PacketTracer5.0建构CCNA成脍攻略(11)一一路由港实现Vlan间通信49PacketTracerS.0建构CCNA送5金攻略(12)一一PPP52PacketTracer5.0建构CCNA试验攻略(13)一一帧中维FrameRelay56PacketTracer5.0建构CCNA试蕤攻略(14)一一PAT(璃于端口的NAT)65PacketTracer5.0建构CCNA状脸攻略(15)一AC1.商洁的配置69PacketTracerS.0建构CCNA试验攻略(16)一一DHCP中继配置76PacketTracer5.0建构CCNA试验攻略配置Cisco交换机PacketTracer5.。是一款特别不错的CiSCo(思科)网络设条模拟器,对于想考思科初级认证(如CCNA)的学友们来说,PaCkzTraCer5.0是特别不错的选择。遹常我们四岗并没仃那么多思科的设饴供我扪学习调优.参与培训费用跟费,上机实戏的机会还是有限的.利用PaCketTraCer5.0练习思科IOS操作吩咐很不错的。近日,在网上下载了思科CC26108Q2指导用书,准备侬据此教程与诸位网友共同共享PacketTraCer5.0的运用方法与技巧,也借此抛破引玉。要配置好CiSCo交换必须要熟识IOS吩咐及相关的学问。一、几种配置吩咐模式switch>这种提示符表示是在用户吩咐模式,只能运用一些查看吩咐。switch4这种提示符表示是在特权吩咐模式。Switch(Config)U这种提示符表示是全局配置模式SWitch(config-if)*端口配置吩咐模式1>I>enable11Ifdizoblal>cnablcIlconf匕InterconfigurationC。皿ands,oneperline.Bndwith.学T离1(config)IhostnaaeCoroSVMpATtMBMCCmWTyCoraSli(Config)S1.ncorflCorcSUCconfg-if)图几种吩咐模式二、检查、查着吩咐这些吩咐是查看当前配理状况,通常是以ShoW(Sh)为起先的吩咐“ShOWVerSiOn查看IoS的版本、ShoWflaSh查看flash内存运用状况、ShoTmaC-address-lable查看MAC地址列表CoreStffshovversionCiscoIOSSoftware,C2960Softvare(C2960-1.NBSB-H>,Version12.2<2S)F×,PB1.B3ESOFTVAUJ<fcl>Copyright<c>1986-ZOOSbyCiscoSyCCoa公.Inc.CkplldWd12-0ct-0522:05byROH:C29OBoot1.oader(C2960-HB00T-K)Version12.2(2Sr)F×rP.I1.BASZSOJIVM<fc4)SystemreturnedtoPX)Mbypover三onClecoVS-CZ960-24TT(RC32300)processor(revisionCO)with21039KbysOfeaor24FatIchrn4tZBEX802.3intrface(三)ZGigabitEthernet/IBBE802.3interface(三)64KbytosoffIASh-SlMUlatednon-vol&tll«confIguratl9RiA,0uCf11senyaBateehernetMACAddress:OOOl.4397.DP14:73-932-06:341-0097-02HoherbordasseoiblyntmberPowersupplyparenux&bor图二CoreSVshflashDirectoryoftlfish:/-r-4414921<no<3&t>c2960-lanbftso-z.1ZZ-Z5.FX.bln急*”aft<64016384byrestotal(69601463bytestre)Cos”,图三CoreVfshx>ac-address-ableHacAddressTablVlanHacAddressTypePorts1000d.bd8c.6cddDYNAMICFdO/2“fiq1OOdO.baa9.975cDYNAMICFaO/1Bbaucom*scn)vConStrW图四CoreSWfshov?"PbootcdpclockdtpClAsh:historyhoszxIncerfacesipxac-addross-cbloport-securityprocessesrunning-conf19sessionsSpaxmmg-Cro0sartup-configCCPCArabinalusersversionvlanvtpCoreSVfshou图五Arptablehowboot,匕r,buc3CDPxnforxationDisplaychosysceaclockDTPInforxationdisplay1ntorxk1onftboucflash:flla?yscaxPlsplaythefesionComndhistoryIPdoaxn-naxclookupseylrn1.XxcscrversrandhoszcableIncerfacaStaCUSAndconfIguracionIPinforaationMACforvardngCato1。ShowfcurPoxxlnforBaionActIvcproccz三satiscicsCurrencOPWSngconfigurationInformationabout-Telnet-connectionsSPanmngzxqqtopologyContendsofSstXUPconfigurationSZaZSofTCPCoxmectMons,DisplayCeralnAlconfl9urfttl0n数字空间DXSPIaVinformationaboutSrmSenyaSyst&hrdvaraandsotevarascacusVTP71.A11StNUgVTPnforxatonShow?帮助吩咐显示当前全部的住看吩咐CoraSUfshovIntortacotA1.FastEthernetOZlisup,lineprotocolisup(connected)Hardvarais1.anca,addressisOOaO.8t7c.4b01(baOOoO.8f7c.4b01)TnU1500bw”,BV100OOOKbsJD1.Y100Ou“c,reliability2SS2SS,txload12SS,rxload12SSIncapeulftClonAPPAxloopbacknotsecKeepaliveset-<10sec)Full-duplex,10nbsinputflov-conrolisoff,outputflov-controlisoffAP.Ptypo:APPJI,ARPTimouc04:00:001.astinpuc>00:00:08.OUCPU匕00:00:05xouc.puhangnvr1.d±七clearingOt"shovinterfacc,*coxmtersneverZnpucqueu«:07S00(si2«/bax/drops/flushes);Totaloucpucdrops:0Queueingstrategy:fifoOupurqueue:0/40(sizq/uax)Ssinvteinputrate0bitssec0packes/secSaanutoutputrate0bssc,0packczs/sac556pcksInpucx193351by«fr0nobutfrReceived966broadcasts,0runt±,0giantsz0t冏ej落西敦字充同0Inputerrors0CRC/0frauax0overrun/0ignored.0abort0vatchdog,0xu-0Paminputhttp.)bduCO11V*11ya0inputpacketstrithdrIbbIoconditiondcctd23S7packetsoutput,263570by¾es0Underrun30outputerror三z0collisions,XOinterfaceresets图六查看端口状态信息三、密码设置吩咐CiSC。交换机、路由器中有许多密码,设置好这些密码可以有效地提高设备的平安性.swiich(config)EnablePiISSWOrd设置进入特权模式进的密码Suitch(Config-Iine)可以设置通过ConSOIe端口连接设备及telnet远程登录时所须要的密码CoreSVfconfCBndRthCNT1.2.g4bmcom'aeInterconfigurationcojindsroneperline.Cor«SV<config)fnablpasswordabl÷CorcSV(Config)#lincconsoleOCoreSV<conflg*lln>(passvordlineCoreSV(config-line>¢lognCor0SV(conflg-lln>JllneVCyO4CoreSV<confg-line)pa3sv0rdvzCoroSViconflg-lln)(loginCoreSV(config-line>exitCoroSVconfg)W图七设置交换机的各种密码默认状况下,这些密码都是以明文的形式存储,所以很简洁查看到。为了避开这种状况,我们可以以密文的形式存储各种密码:serviCepassword-encryptionCoreSViIconf七SncorconfigurationCOlUI1.Ands.onep。Eline.BndvlchCW71.Z.CoreSV<config>fservicepassvord-encryption.CoreStf<confl9>l图九lineconOpassword702I>4S400Cl091nIlineKyO4pasffuord708375857loginlinegySISloginM十分科C字会向http小ZidUcorrVseny.end图十密码以密文的形式存储四、配JKIP地址及默认网关CorStfconfC8ntcrUonfliat工OnCoxuiandsroneperline.BndVaxhCNT1.2.CoreStf<c0nfl9)flncrfacevlanlCoreSVCconfig-If)tipaddress192.168.0.2632SS.2SS.2SS.OC0reStf(c0nfl9-ie)lCoreSVCconfigXipdotQuit-gatvay)92.168.0.264图十一五、管理MAC地址表switch#showmac-address-table显示MAC地址列表SwitchUclearmac-address-tabledynamic消除动态MAC地址列表图十六实例拓扑图Svxcch>Svich>enSvitchtconfigConfiguringXroxxcorxkxnalzaoryzorncworktQrainal)?zEnterconfigurationcoat5ds.oneperline.IndulchCWT1./Z.Svitch(Config)tinkerfacefalSvxchCconfig-It>fdescriptMonlinkRouterASvcch(coneg-1OllnCQrtACQvlanlSultch<conflg-ifylipAddress192.168.1.2255.255.255.0尚左邦德*敬?HSvitch<config-if>lexithOp/.tubMuconVMnyaSvxtchCconfig)hoscnane2960Z960(config)ftpdofftulc-gazQvu19Z.168.1.1图十七2960<confg)tinkerfacefa22960(confg-f>dcscrpconlinkpc2960<contg-f)ntrfacefa32960(conC19*-lf>0dascrlpcionlinkpci2960(config-if)tsuichporaodeccf2960(config-if)tsvichporport-security2960(confg-f>Jlsvitchport-port-securityxaxau1加+分算'*"m2960(Config-Ii)Jsvicchpoixpor¾-sccurtyviolationshutdovn",”>xZ960(config-lf>9图十八2960(config)#servi.cepa三svord-encryption2960(contig)fenablepassvordableZ960(config)IllneconsoleO2960(Config-IineXpassvordline2960Cconfig-line>tlognZ960(confl9-ll11G>limavtyO4a*同ECMjCOVtM11e2960(config-line)!passwordvty2960(config-line>4login2960(config-lne>text2960(conlicf>tl图十九296OeUoPyrunning-configs¾rtup-confgDslnaionfflnwscarcup-config)?Buxidmgconfiguration.IOK296Oal图二十保存对交换机的配置PacketTracer5.0建构CCNA试验攻略配置V1.ANVlan(Virtual1.OCalAreaNelWork)即虚拟局域网。Y1.AN可以把同个物理网络划分为多个逻辑网段,因此.YIan可以抑制网络风暴,增加网络的平安性。一、实例拓扑图图一交换机CiSCo2960二、创建V1.AN在CiScoK)S中有两种方式创建vlan,在全局配置模式下运用VIanVlanid吩咐,如switch(config)ttv1an10;在Vlandatabase下创建Vlan,如SWilCh(Vlan)Ylan20Switch*enSvltcMconfzBntQrconfigurationcoaxQnd:,oneperline.BndvthCUT1.2.Svitch(Confxg)hostnaxeCoreSWCoreSV(Config)Ivlan10CoreSU(confg-vlan>HathCotraSU(Config-Vlan)BoxixCoreSV(Config)exit%SYS-S-COHFIGeI:ConfiguredfromconsolebyconsoleCoreSVtvlandacabs÷Warning:Xtasracoxd&ondadcoConfigruroV1.AKfrogconfigIlOdo.azV1.ANdatabasesiodaisbeingdeprecated.Plcascconsultuserdocuaent>at>ionforconfiguringVTP/V1.ANinconfignode.CovqSV(vlan)0vl0n20naxQChinosoV1.AU20added:Naoie:Chinesehttp7baidu.co11VsenyaCoreSV(Vlan)0vlan30nax«OherV1.AM30addAd:2a0:O¾hor图二创建VIan三、把端口划分给vlan(蓦于*口的Vlan)switch(Config)Sinterfacefastethcrnctl进入端口配置模式SWitCh(COnfig-if)#SWitChPOrtmodeaccess配置端口为acc。SS模式switch(config-if)#swiIchportaccessvlan10把端口划分到VIanloCoreSV>enCoreSVlconfCEnterconfigurationCO皿ands.oneperlln9.BndwithCNT1.Z.CoroSV(cont19IriZQrtACQfalCoroSV(Config-Xf)>svtchpoXnodaccessCoreSV(config-xf)Iswitchportaccessvlan10Kli?*a多夕局M46MSUCOHMWY,.Core3V(config-if)finderfacefa7CoreSV(eonfig-if)<svicchportModeaccessCoreSVCconflg*1f)0gvlchportaccessvlan10CoroSV(conflg-f)图三假如一次把多个端口划分给某个Vlan可以运用interfaCerange吩咐.CoreSW(config-xf)¢xMerfaccrange£a0/2-4CoreSW<config-if-range)tswitchportnodeaccessCore3三<confIg-If-rang)SsvlcchporaccessvlanZOCor«SW(conflg-if-rang«)0meetfaceIrangoCaO/5-6CoraStf<contlg-t-rang)>sutchporcmod。accqssCorcSV(Config-If-VQngQ)>WicchpoxXaccessvlan30CoreSWCconfig-if-range)图四四、查着Vlan信息SWitCh#ShoWvlanCoreSVfshvl&nV1.AMKoxqSzazsPorts1defaultactiveFa08,Fa09zFaOZlOrFaO/11FaO/12,Fa013,Fa014,Fa015y016xPa017.Fa018,F*019Fa020zFaOZl#Fa022,FaOZ4rGigllzGigl/ZFa02310MathactiveFOlzFa0720ChineseactiveFa02rFa03,F0430OtheractiveFaOSrFa061002fddi-dfault.aciv1003Co)Cfrfng-<¼faultACCiv1004Cddlnoc-doXftulcACZiv100S-dotulcQelvaV1.AMTypeSAIDMTUParent.hn洲。BridgeNoStpBrdgModcTranslTrans2100OOl1500一一.-0010MZ100OlO1500-002030ncCnQt1000201000301500ISOO-:身千势勒弹字史在10021003enetenet>1010021010031500ISOO一一三http/hit>adubmsny-001004nt.101004ISOO一-001005ntIOlOOS1500一-00图五CoreSWIshouvlftnbrlofV1.ANNaxeStatusPorts1defaultactiveFa08r7a09xFa010zFaO/11FO12zF013F014,FftO/lSFa016zF017zFftO18zPaO/19Fa020,FaO21,Fa022,Fa023PaO/24,GAg"J1.,Glgl/210HaChACriVQFaOl,Fa0720ChineseactiveF02zFdO/3,PQO/4301002Otherfddl-d«faulc.activeactive数字&A!1003coteen-rng-dQfaultactivehttphbaduco11vsenya1004fddmoc-dfulxactive100S匕met-defauleactiveCoreSWf图六showvIanbrief查看VIan简明信息CoraSVfshouvlnid10V1.AMWaneStatusPorts10MathAccvQFaOlr7a07V1.AMTypeSA11>HTUParentRingNoBridgeN。S匕PBrdgHodeTranslTransZ10QMZ100OlO1500.00CoreSVIshvlanid30V1.AJJ3StatusPors30OtheractiveFdo/S冏项可用数字空闻V1.AJJTypeSAIDHTUParencRingNoBridgeNo耻Jl(zU网跑的in¾%an5230cnct100030ISOO图七查看id为IO的VlanCoreOTshowvlannaxeV1.AMHoneHathSCfttUffPores10U1.AHKathTyp©SAZDMTUParonractiveFaOZlzPn9MoBridgoNoSepFa07BrdgModoTranslTr&ns210Cne100OlOCoroSU0shouVlAnnaxQV1.AUHaIIeISOOOther,StatusPorts0O30V1.AHOtherTypeSAIDMUParent-activeT&Q/S,PmgNoBridgToStpFaO/6BrdgHodeTronslTransZ30enec100030CorcSU¢showvlannaneV1.AWH3Q1500-ChineseP”“用十灯傅OO鼠字再用20V1.AWChxnosaTypSAIDKTUParentIujii11.Mdvuu.uww9fy0activcFd02,Pa03rFaO/4PlnpJoBrldgeHoSzpBrdgHodeTranslTransZ图八通过VIHn的名字查看VIan五、M除配置CoroSU(Config)0ntorfcoC&0/8CoraSU(Config-If)#nozwtchportaccessvlon40CoreSV(configa*if>#exiCoreSU(Config),exit图九把第O个模块中的第8个端口从VIan40中超除CoreSVfvlandatabase*Varntng:It-isreconmendedtoconfijureV1.AMfronconfigmode,asV1.ANdatabasenodeisbeingdeprecated.PleaseconsultuserdocuencationforconfiguringVTP/V1.AWinconfignode.Cor«SV(vlan)Inovlan40Wq.yDolo七XngV1.AN40.(BW三fCorQStf(VlAn)9图十一除VIan40我们还可以为诲个VIan配置ip地址。PacketTracer5.0建构CCNA试验攻略CiscoVTPVTP(VIanTrunkProtocol)即V1.AN中继协议。VTP通过网络(IS1.帧或cisco私有DTP帧)保持V1.AN配置统性。VTP在系统级管理增加.捌除,调整的V1.AN,自动地将信息向网络中其它的交换机广播.此外,VTP减小了那些可能导致平安问题的配置.便于管理,只要在VtPSorVer做相应设置,vtpclient会自动学习vtpserver上的Vlan信息。一、实例拓扑图图一核心交换机CiSCO3560二、MVTP核心交换机CiSCO3560配置为VtPServer,vtpdomain为Senya。CoreSVjIvlandatabase%Varning:ItisIreCOmendedt。configureV1.ANfrox>configaoderasV1.AKdatabaseModeisbeingdeprecated.PleaseconsulsusrdocuanrazonforconfiguringVTPV1.Ninconfigod.Core3V(vlan)#vtpdomainDoualnnici«alreadystCoroSV(vlan)fvcpserverDevicexodealreadyVTPCoreSV(Vlan)#senyatoseny.SBVR.角十号*夕少同M»f*uumMHa图二CoroSU(confg-l¢)finefa0/1CoroSU(confg-¢)tsvrchportxodtrunkCoroSV(confg->#intid0/2CoreSV<confg-if>#sVitchport-xodetrunkprotocolonInterfaceascIthrntbZ-charededscate匕2EZcomM11v*1.inBPROTO-S-UPDOVK:1.ineprotocolonInterfaceFastIthernecOZZzchangedstatetodown1.I11HPROTO-S-UPDOUN:OupCoroSU(confg-if)图三配置trunk链路,允许带VIan标记的以太网帧通过该链路SMISan)BVtPdomainsenyDouainnwalreadyseccosenya.SWl(vlan)IvtpclientSctcingdevicetoVTPC1.IXNTxiodo.:,:SVl(6皿),图四配置汇聚层(接入层)交换机SWZelftn)PKPdomainSQnyADouAinnatQalreadysqztosonya.SVZ<vlan)$vtpclientSettingdevice匕。V7PC1.IENTnode.”SW2(vlan)图五StfltconftInterconfxgurationUO皿and,oneperlm.EndVithCDT1./Z.SVl(config)!lingerface£a0/3SWl(config-i£)fsvit,chportnodetrunk.7.arrSWl(Conflg-If)t-图六三、创建VIan及螭口划分CoreSVIvlandatabase¼darning:Itisrec。D1.XIendedtoconfigureV1.AWfromconfigmode,asV1.AN<UtabseDkodeisbeingdeprecated.Pleaseconsult>userdocux&«ncaciontorconfiguringVTPV1.A11inc0nCl9*ode.jCorcSV(vlan)#vlanZWA*teMu<sMMnrV1.AWZadded:Haa。:V1.N0002图七在Npserver上创建VIan8V2"hoVlanV1.ANSS36Ports1dSuitacclvPa02F03.Fa04rF05Fa06,Pa07rFa08rFa09F«0/10,F*0llrF*0/12,F»0/13ra14zFaO1S,F*Ol,FaO/17FaOZierXm019r*O2O,F«0/21r*oZ2«r«o/Z3foZ4ZV1.NOOOZAcexv>V1.KOOO3CCXV1002tdfll-d*zlcACC1V1003okn*ring*<l*faulacciv1004edain-ruxc-W1005snc-dfacciv用卡开德数字*用V1.AWTyp8IDKlVPrncJUnanOBrld9N08。Phtt断心*2M13b8VsMlV4nt21n匕100OOl1500-0O2nt1000021500-0O图八在VtPClient上查看VIanSUlfconfZSntoxrconfguraionUo皿and公,onparIma.SVl(config)f±nzfa071S71(config-f>swcchportO1.OdCaccessSUl(config>f)swxchportaccessvlan2SUl(config-if)图九划分端口2ndwithCNT1.2.It*at四、配置PC及测试Vlan、1C1PHyatiCMlUOnnQ>w*ktopDuplwxQMt>Ugl<XMACAdaresvIPCorG<jr-torODHCP<三>staticJPAclcir三Sut>r*a*tMakl*vConfiQuranonl.»r»k1.ocjIArddr«B<«:COHCPOAotoCon11AtMtlClPvAddrossFo15tFtM*rntRJOn(3AMtO-oorb*三AVJtO一XlC>MAXOOOO.3S.AFB31QN.ltQ.1.1125.2ss.2ss.0图十为PC配置ip地址PC>lpoonf1XIPKywlCMlAddk.TPAday8ubn>>1<lt&ef*uleGtsy.DMSSrvraOOO.3K54.AXD3192.1£0.1.112SS.2SS.2S5.OPC>pmvX9Z.ie.1.ZZP*nlng192.1.22wcH32toyofdP:ReplyRP1VMpAyPeplyfroafrofro三froa>19Z.l.1.ZZ:192.1£O.1.Z2:-168.1.22:1.9.l.1.ZZ:t>y三-Zby*32byc>032k>y32xm-94aTT1.-1OUXat>12CM<TT1.-12QIX>J1.O,TTt1281.-zeM*"*M夕+制、Q*7tut>MllMCCMTlz.»PtytcAc*0for192.¢.1.22:Pck<>:Sentr三4,deceived1.bO(0lo¾>>»ApproxlakMt:*romderxpydinax111«Bcond:WhlKl*18bvu*940.HaxIkaiASk-12Suea,Avtg-112uPCA图十一本网段内互PingCoreSV(Config)MCoroSV(contig)fineVlAnZCorcSV