cisco_Packet_Tracer_5使用教程_第1页
cisco_Packet_Tracer_5使用教程_第2页
cisco_Packet_Tracer_5使用教程_第3页
cisco_Packet_Tracer_5使用教程_第4页
cisco_Packet_Tracer_5使用教程_第5页
已阅读5页,还剩96页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、目录Packet Tracer 5.0建构CCNA实验攻略配置Cisco交换机 2Packet Tracer 5.0 建构 CCNA实验攻略(2)配置 VLAN7Packet Tracer 5.0 建构 CCNA实验攻略(3)Cisco VTP11Packet Tracer 5.0建构CCNA实验攻略(4)STP生成树协议 17Packet Tracer 5.0 建构 CCNA实验攻略(5)WLAN21Packet Tracer 5.0建构CCNA实验攻略(6)配置单个的路由器 28Packet Tracer 5.0建构CCNA实验攻略(7)配置静态路由 35Packet Tracer 5.0

2、建构CCNA实验攻略(8)配置动态路由 RIP38Packet Tracer 5.0 建构 CCNA实验攻略(9)Cisoc EIGRP43Packet Tracer 5.0建构CCNA实验攻略(10)配置单区域 OSPF49Packet Tracer 5.0建构CCNA实验攻略(11)路由器实现 Vlan间通信56Packet Tracer 5.0 建构 CCNA实验攻略(12)PPP59Packet Tracer 5.0建构 CCNA实验攻略(13)帧中继 Frame Relay63Packet Tracer 5.0建构 CCNA实验攻略(14)PAT基于端口的 NAT)73Packet

3、Tracer 5.0建构CCNA实验攻略(15)ACL简单的配置 77Packet Tracer 5.0建构CCNA实验攻略(16)DHCP中继配置 85Packet Tracer 5.0建构CCNA实验攻略配置Cisco交换机Packet Tracer 5.0是一款非常不错的Cisco(思科)网络设备模拟器,对于想考思科初级认证(如CCNA 的朋友们来说,Packet Tracer 5.0 是非常不错的选择。利用 Packet Tracer 5.0 练习思科IOS操作 命令很不错的。要配置好Cisco交换必需要熟悉IOS命令及相关的知识。一、几种配置命令模式switch这种提示符表示是在用户

4、命令模式,只能使用一些查看命令。switch#这种提示符表示是在特权命令模式。switch(co nfig)#这种提示符表示是全局配置模式switch(co nfig-if)#端口配置命令模式ilenable1#1#disableHnter confijuration conmands, one per line, End with CWrTT fW?1 ccnfig) Shostnanie Cor eSWCoreSW ( conig jtirdter f ace f 0/1 CtsreSW (ccuaf ig-i f)綁图一几种命令模式二、检查、查看命令这些命令是查看当前配置状况,通常是以s

5、how(sh)为开始的命令。show version查看IOS的版本、show flash 查看flash内存使用状况、show mac-address-table 查看MAC地址列表CoreSW#shoWionCisco IOS Software C960 Software CC2960-LAMBASH-M)Version 12.2(25)FXf MELBAS SOFTIitALH (fellCopyright1996-00S by Cisco Systemsf Inc.mpiled DJed I2-0ct-05 2Z: 05 by pt_teaniKOH: CZ9C0 Boot Loade

6、r C29O-HB00T-H) Version 12.2Z5t)FX, RELEASE SOFTAP.E (fc4)Systz-eut returned to ROH by power -onCisco US-C2360-24TT (PjC3Z300) processor (revision CO) wxt-H Z1039R tytes of meuor24 Fast Ethe rnet/IEEE 802.3 interfaceZ Gigahit Ethernet/IHEH SOZ. 3 inter ffijce ( s)64K bytes c fflash-Einulatednon-vo L

7、abilecentiguratEthernet MAC Addtess:0001,4337.PD14Motherboard asseiubly nukber Pover -apply part nwob er:73-9S32-口右:341一口097-0267 / 90CoreSW#sh flafhDirectory o f flashz/1 -rw-441492:1 cZ90-lantiase-ikz. 122-25. FX640i6364 bytes total (5S601463 bytes free)CoreSW#图三CoreW|Esh. macaddress tah 1 eMac Ad

8、dress Tstole.binVianMac AddressTypePorts1 OOOd.bdSc.6cddDYNAMICFaO/2100d0.baa9.975cCoreSV#|DYNAMICFaO/1图四CorSW#shoiu ?arphootcdp clock dtp flash: history hosts interfaces ipnac - addr ess-table port-security proaeses ruruning-c on. fig sessionsArp t-ahleshov boot attrihutrssCDP inf or mat; ionDispla

9、y the弓孑営匕皀鱼clockDTP infotriaationdisplay information about flash: file systemDisplaysession comjmand historyIP douLain-naxae, 丄ookup srtyle r nameservers f and host Inter face 宜七宜匕 us and conf igurationIP inforonMAC forwarding tableShow secure port informationActive process statisticsCurrentconfigur

10、ationInformation, about Telneis connectionstablesp aiming- tree startup-eonf ig tcpusersversionEanSpanning tree topologyContftnts of sit art up configuration Status of TCP connectionsDisplay teriaiiial configurationDisplay information about 匕总芝型: System hardware and sofiware status VTP VLAN statusvt

11、pCorSW#EliOTJVTP inforination图五 Show ?帮助命令显示当前所有的查看命令CoreSWshow interface faO/1FastEthernfito/i is up, line protocol is up (connected)Hardware is Lance address is ODeO L 37c.4b01 bia OOeO.8t7c.4bOLMTU 1500 bytes, BU 丄0口000 Kbit, DLY 1000 uscz工电丄iability 25S/2S5, tzload 1/2S5, rxload 1/fSSEncapsulat-

12、ion ARPAr loopback not setKeepalive set (10 sec)Full-duplew 100Mb/input fLov-control is off, output fLcv-control is offARP type: APPA,丸HP Tiueout 04:00:00Las Input 00:DD:口3” outpuc 00z 00:口S* output hang neverLast clearing f -lshow interface count;ers neverInput queue: 0/7 5/0/0 ( sze/m.ax/drops/f l

13、usJaes) ; Tota丄 output dr ops r 0Queueing strategy: fifaOutput queue :/40 (size/nax)5 ninute input cate 0 bitrE/secy 0 packatE/secE kirLUe output0 blts/sec 0 packets/sec956 packets input193351 bytes, 口 no buf fer deceived 9 hroadcastE, 0 runts t 0 giants# 0 input- errors 0 fRC才 0 f rajas r 0 overrun

14、, 0 watchdog, 0 imltica:t # 0 p sue a input input packets with dribble conditrion detectedZ3S7 packets outputZ63570 bytes, underruns0 output arrots0 uo丄Lislons, ID intrgrface resetsCceSW#e1iow图六查看端口状态信息三、密码设置命令Cisco交换机、路由器中有很多密码,设置好这些密码可以有效地提高设备的安全性。switch(co nfig)#e nable password设置进入特权模式进的密码switch

15、(co nfig-li ne)可以设置通过con sole端口连接设备及tel net远程登录时所需要的密码CoreSWffconf tEntnsr configuration gOrmands one pr 丄工n亡 口 End with CUTL/Z BCoreSW(config #enab Is password ableCoreSW(config)fline consols 0CoreSW(eonfig-lineJ passuord lineCoreSWCconfig-line)#loginCoreSW(config-lineJ tfline vty 0 4CoreSW(sonfig-

16、linejsword vtyCoreSW(con fig-line)歎丄oginCoreSW conf ig= line) Jexit;CoraSW (config)图七设置交换机的各种密码默认情况下,这些密码都是以明文的形式存储,所以很容易查看到。为了避免这种情况,我们可以以密文的形式存储各种密码 :service password-e ncrypti onEnd with CNTL/Z.CoreSUtfconf tEnte r conf i gurati on coioMaiids, one pe c line .service password-encryption CoreSU(can

17、fig)#图九line con 0password 7 082D45400C loginiJL ine vty 0 4password 7 03375857 login丄 ins gy 5 15 loginiiend图十密码以密文的形式存储四、配置IP地址及默认网关CoreSW# conf tKniter configuration comzoLands one per line. Knd with CWTL/Z CoreSW C conf ig f inter face vlaulCoreSW eonfig-if)#ip address 192.168_ 0255CoreSW(config-

18、i f)fCoreSW (conf ig # ip de f ault-grate vay 丄 9 亶.168.0.254图十五、管理MAC地址表switch#show mac-address-table 显示 MAC地址列表 switch#clear mac-address-table dynamic 清除动态 MAC地址列表CoreSW#show macaddress-tableHac Address TableVianMac AddressTypePorts1OOOS.5ed3.c4blDY1IAMICFa0/41000d .bBEu 百cddDYJIAHICFaQ/21ODdObaaS

19、.375cDYNAMICFaO/lnac-address-tatole dynamic CoreSWff图十二CoiraSVSwritctLenSwit ch# e on figC en f i gur ing f cmi 1sm邑miry 尹 er network t-erii.ln.al ? tKir&er confignration eomiaaQds one per line. End with CWTL/Z- Swiltch (configJ f lnt;erf faO/1Switch conf ig-i f) f description link RoutrerASvitch Cc

20、onfig-i f) Winter face vlaulSwitch(config-i f)#ip address 192-168.1_ Z ESS.ZSS_ ZS5.Switch(config-i f)fexitSwitch (conf ig $hoslsnaiii 29602950 (config) #ip def aut.-gateway 192丄8亠丄.丄图十七Z960(canfig)#interface fa0/2Z960(config-if)Sdescription 丄ink pcO 29S0 (config-if) int-erface i aO/3 2960 (con fig-

21、if ) Ude sex ipt ion link pci2960 (canfig-if ) Jt suit clip art Z960 (r anfig-if) Jfswit clip art 2560 (conficf-if) Jfjwitclipart2360 (confi-if) Jtswitchportmcide accessport-security-security naxiiuuiii 1 port-security violation shut do2360(confiif) S图十八290 ( config) ervice pasf wor d-snerypti on236

22、0 confnabla password able90 Spassword vtyZ360 confi-line)2960(ccnfig-line)#e掘土匸2360 enSwit; chf e on f tErdter configuration conii&.ariLdsir one per line- End with CMTLi/Z BSwitch (conf ig ffhostname CoreSWCoreSW (config #vlan 10CoreSW(config-vlanj ffnaaie MathCoreSW Cconf ig_vlanjCoreSW (conf ig)%S

23、YS=SwCONFIG_Iz Configured from console by consoleCoreSWvlan dat-abase% UJaming,: It is rcd to configure ULAJI from C6.nfig aiode as VLAN database mode is being deprecated- Please consult user docuaentation for configuring VTP/VLAN in configCoreSW Kvlan 20 name ChineseVLAN 20 added:ChineseCoreSW (vla

24、n) fvlati 30 nants O匸herVLAN 30 added:Naie: Otlier图二创建vlan进入端口配置模式 配置端口为 access模式把端口划分到vlan 10Hnd with CHTL/Z.三、把端口划分给 vian(基于端口的vian) switch(c on fig)#i nterface fastethernetO/1 switch(c on fig-if)#switchport mode access switch(con fig-if)#switchport access via n 10CoreWnCarsSWfc&nf tEnter configur

25、ation coiuaands, one per line, CoteSI? (config) tfintrEtr face fad/ICoreSW(cooitig-if)#svicchport mode accessCoraSIiJ ( conf igi f)chpout access vlan 10CorsSW(config-i f)#lnterface faO/7Cor sSW ( conff) #switchport siad accessCoraSliJ ( conf ig-i f) Ewit-chpc rt ajccess vlan 10 Cor aSW MTUParent Rin

26、gMo SridgeHa Stp BrdgMode Transl TransZ1enet1000011500IDenet100010150020enet100020150030enet100030丄5001002enet1010021500ICO 3enet10100315001004enet101004150101005enetloiaos1500冬五Cor&SVffshow vlan brieVLAIJNameSt atusPorts1dw f aultactiveFa0/8f Fs.0/9, Fa0/10r Faa/11Fa0/12r Fa0/13r &0/14r FaO/15FaO/1

27、6, FaO/17 FaO/ief FaO/19Fa0/20, FaO/ZL, FsO/ZZr FaO/Z3FaO/24, Cigl/1 Cigl/Z10HathactiveFa0/l FaO/720Chine esactivePaO/2, Fa0/3, Pa0/430Otiiaractive100Zf ddi-d faultacitive1003tohen-ring-defaultactive1004fddinet-de faultactive100SC rnet-de fault*activeCoreSUf图六CoreSVffhow Vian id 1口VLAN IJaaLEshow vi

28、a n briefSt atus查看vianPortss简明信息10MathactiveFa0/l,JaO/7VLANTypeSAIPHTUParTingNo BridgeHo StpBrdgHode Transl Tr10enet100010150D- - - 0 0CorSUshvl su i d30VLAUStatusParts30OtheractiveULA1I Type SAIDMTU ParenJt HingNo Bridge30 enet 1000301500-图七 查看id为10的vlanCoreSW#shuOW vlaiiMath.VLANNaiaeStatusPorts10

29、MathactiveFa0/l,FaO/77LAWTypeSAIDMTUParentRingNo EridgeNo StpBrdgHodeTranslTransZ10enet1000101S00- -00CoreSW#showvlanOtherVLANNameSt atusFores30Other直亡匸Fa0/5rFa0/6VLANTVP*SAIDHTUParentRingNo BridgeNo StpBrdgModeTranslTr&nsZ30enet1000301500一 -一00CoraSW# sliou vlan nanieChineseVLANStatusPortszoChinese

30、activeFa0/2#Kau73; J*au/4VLANTypeSAIDMTUParentHingNo* BridgNoTl-anslTransZ图八 通过vlan的名字查看vlan五、删除配置CoreSW (config) pincer face f aO/8CoxeSW ( conf ig-i f) #no siwi七chport access vlan 40CoreS t conf igri f)CoreSW conf igr) f exit.图九 把第0个模块中的第8个端口从vlan 40中删除Cere SU fvl ail dat ah as a% Warning: It is r

31、e:eomtiended to configure VLAN froai configas VLAM dat.abase JOLOde Is being deprecated- Plsajse consult user docwaentat 1 on for configruring VTP/VLAKF in config ULode,CoreSIT(vlan) #no vlan 40Deleting VLAJJ 40,.CoreS(vlan)ff图十删除vlan 40我们还可以为每个vlan配置ip地址。Packet Tracer 5.(建构 CCNA实验攻略(3)Cisco VTPVTP(

32、Vlan Trunk Protocol)即VLAN中继协议。VTP通过网络(ISL帧或cisco私有DTP帧)保持VLAN配置统一性。VTP在系统级管理增加,删除,调整的VLAN自动地将信息向网络中其它的交换机广播。此外,VTP减小了那些可能导致安全问题的配置。便于管理,只要在vtp server做相应设 置,vtp client 会自动学习 vtp server 上的vian 信息。、实例拓扑图图一核心交换机Cisco 3560、配置VTP核心交换机 Cisco 3560 配置为 vtp Server,vtp domain为 senya。CoreSWfvlan database% Uffar

33、ning: It is resojmended to configure VLAN from configas VLAJI datrabase mode Is being deprecated. Please consult user do cuiae nt at i on for configuring VTP/VLAJJ in config mode.senyaCoreSlI(vlazi) #vtp doiaainDomain name already setCoreSW (vlan) Jjvibp serverDevice mnd屯 already VTP SHRVEH_CoreSW(v

34、lsn)#CoreSW (config-i f #int. f b 0/1CcreSW (conf igi f) #swit chport mode trwiJkCoraSW (config-i f) #int fa 0/2CoreSM t conf ig-i f) #suitch:porl3 mode trunk% L INK P RO T 0 - 5 - UPD W: Line protocol on Inter face Fast Ethernet 0/Z etianged state t o down% LINZ P RO T - 5 -UPD OIBlff: 环“色 protocol

35、 an Inter face 艮亘 stEthernet 0/Z cKuigsd state t o upCoreSW(config-if )#|图三 配置trunk链路,允许带vlan标记的以太网帧通过该链路SMI(vlanj #vp domain senyaDomain naiae already set to senya.SDff 1 (vlail) #vtp clientSetting device to VIP CLIENT mode.SW1 (vlsu)#图四 配置汇聚层(接入层)交换机SU2 (vlan) #vtp dcitairL SenyaDomain nauke alrea

36、dy sat to senya. SWZ (vlan) Svtp clientSetting device co VTP CLIENT mo. SW2(vlan)#冬五SWlfconf 匕Enter configuration coioiands one per line. End with CNTL/Z& SW1 (conf lgj Winter face fa 0/3SKI (config-i f) fswivchpor mode t-rurikSWl(config-il#图六、创建Vian及端口划分CoreSW#vlsum dat吐be启$ Earning; 工匸 is recommen

37、ded to configure VLAN from config mod笆# as VLAN database mode is being deprecated. Please consirlt. user do cum ent;- aiL i on f qe: configuring VTP/VLAM in config mode.CoreSW (甘丄an.) #vlan ZVLAN Z added:N也已:VLAW0002图七 在vtp server 上创建vianvlan71A1J NameSt at.usPortsdefaultactiveFa0/2f 5a0/3f FaO/4 Fa

38、O/5 FaO/e FaJO/7, FaO/9., FaO/ FaO/ia,FaO/14#FaO/13,FaO/22,FaO/11, FM/IS,FaO/19FaO/23FaO/l, Fa0/16f Fs0/20r FaO/24FaO/13FaO/17FaO/ZlZVLAM口0口殳active3VLAM00031002fddi-de faultactive1003t ok en- r ing-de f aullsactive1004f ddinet -def aul tactive1005trnet - de t aultactive7LAJTType SAIDHTUParent PingNo

39、 BridgeNo1Gnat 1000011500= - =002ne七丄0口。口21500 00图八在vtp clientSWljScoiif 匸Enter configuration 匚diamanM宜戸 one per 丄ine. SWl (config) #int. ta 0/1SW1 (configif ) switchport mods accessSW1 (configif ) switchport access vlan. 2名If丄(conf igif )廿上查看vlanEnd with CWTL/Z.图九划分端口四、配置pc及测试vlan图十为pc配置ip地址000,3HS

40、4.AEB3 192.18.1.11 255.25S.Z55.0 0 . Ox 0.00.0.0.0Lyfrom 132.168.1.22:bytss=32 tim=94iLs TTL=LZSRep lyRap lyRap lyfromfroukfrom192.168.1.Z2:192.166.1.22:192.16&.1.2Zzbytes=32 tiiu$=15iis TTL=12S bytes=32 tiae=110iis TTL=128 bytes32 time=12Sas TTLIZBPOipconfig /allPhysical AddressIP AddressSubnmP HakDefault; Gatewsiy. 一DM営 Servers. - * *PCping 19Z, 163,1, ZZPinging 192.163.1.22 with 32 bytes of data:Ting statistics tor I3Z,168.1.2Z:PacketrS: Sent =Received = 4” Lost = 0

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论