You are on page 1of 151
‘Sponsored by LATTICE ceed | 6 Ss www.latticestudies.com CONA PRACTICAL GUIDE (640-801) Complimentary Edition Oct 2010 Muhammad Shakeel Askral shakeel.ashraf@livi LATTICE studies www.latticestudies.com CCNA PRACTICAL GUIDE (640-801) Complimentary Edition Oct 2010 Organized & written by: MUHAMMAD SHAKEEL ASHRAF CCNA, CCNP, JNCIA~ER, JNCIA-EX, JNCIS-ER Verified by: HAROON AHMAD MALIK (Res), cc sur {CIE (Service Provider) 215429 LATTICE studies Lattice Studies is an independent virtual institute for sharing its comin visions of extrene Faniliorsty and editorial excellence. lattice studies is providing 100 percent tree of cast Eaterial pertaining to’ CNR, CONP ‘and other certifications. For detail, please visit www latticestudies.com GOL OF THIS BOOK: Most Cisco certifications require practical skills, and the only way to provide you with those skills is to demonstrate them in a working enviroanant that uses common Cisco-defined techniques. This practical guide ia not designed to page your CCNA exan bur can be used to build sone Fundarental ideas which can help you in passing CCNA exan WARNING & DISCLAIMER: ‘Uhis practical guide is designed to provide information about selected topics for Cisco certified Hetrorks Associate Eien, Hrery effort has been made to mote Ehis book us couplets and os eccurate a8 possible, bur no warranty or fitness is iaplied ‘The information 12 provided on an “as Le” bagis. The author/tattice studies shall have neither Liability nor responsibility to any person or entity with respect to ary loss or damages arising Exon the information contained in this book or fron the use of the discs or programs thet may accompany it ‘The opinions expressed in this book belong to the author and axe not necessarily those of cisco systems, Inc. FEEDBACK INFORMATION: My goal 12 te write in-depth technical books of the highest quality and value, Each book is crafted with care and precision, undergoing rigorous development that involves the unique expertise of members fromthe professional technical community. Render EeeauHck Swe Setoeel coRRInWALiGH SE enIg peSeeIS, TECjed Neve nj lceaients iegerany how T can improve the quality of thir book or ctherise ster it'to better suit your needs, you fecdbackPlatticestudies.com shaker .asneat@live.com Please make sure to include book title. I greatly appreciate your assistance. REFERENCES: ‘This book 4 only a practical gulde but sone brlef plece of theories taken from following books are incorporated to ser your focus on che respective topic 8. COMA for Ounpies by Ron Gilster, Jeff Bienvens, and Kevin Ulstad 306 Rocks Worldvide, Ine 1B. COMA Study Guide by Todd tammle ©. COMA Self Study CCNA TEND Exam Exam Certification Guide by Wendell Gdon 4. COA SeLE Study CCNA TEND Ream Exam Certification Guide by Wendell Gdom Before starting with this practical guide, I strongly recommend you to go through one of these books Eor comprehensive knowledge of routing TABLE OF CONTENTS Eerste BIOGRAPHY Vchamnad Shakeel Ashraf ize Graduate in Computer Sciences and has @ years of working experience on different kind of Gevices i.e, RFID (Radio Frequency Identification), Burelar Alaem Syaten, Access control System, Blonetrica etc. During his $ years of service with National Database & Registeation Authority (NADRA) Pakistan, ne was avazded with “Certificate of Achievement” for the successéul Gevelopaent & inplenentation of follexing projects A Pakistents first Computerized Bizth fegistration Certificate (CBRE) b. Research & Cevelopncnt of RFID chip & Blonetrics for the integration on vakietani Passport In year 2010, he wax awarded with “Certificate of Excellence” by! the Charman of Corvit Systems for his brilliant efforte toards writing sone extra ordinary practical guides FNC ROUTING ‘CONA Practical Guide LATTICE Complimentary Edition - oct 2010 ches Exercise No. 1 HOW TO ATTACH A ROUTER WITH A PC? (ARRANGING APPROPRIATE EQUIPMENT) LATTICE coNA practical cuide eludies Complimentary Edition - oct 2010 STEP-3 (COMMUNICATION THROUGH HYPERTERMINAL) a. Open sypent Start + Prograne + Accessories > Communications > HyperTerminal 1 Pega Comins 1G saree 1B mtg eh nate 1 sere sere 115 tayratnnttnne ree 1B omm correc 1G retantetenmenet fees aa Bo die tenes — 1B va crttam ace (saws 1 hone fo coment coNA practical cuide eludies Complimentary Edition - oct 2010 bb. In “connection Description” windew, type any nae for the connection and press Ok = eee eee one = as Bss3eu% Ce Cea) In the “Connect To" window, select appropriate CoM Port (the COM port number of 2c fonte which you have plugged the router's console cable) and precy, OK button. Q-.. ra stale te rab tyoue oenpiegen 5 79) Amos cota sbbpertiest” windoky press “Rest Defaults” button and then press OK operon (58 ¥ poote (3 Poy [low sepa [1 a owes Nine ConA Practical Guide Complimentary Edition - oct 2010 etludies ‘the router takes few moments ta complete its booting process. Just wait to finish this process. The whole booting process can be seen in the HyperTerminal Window. System Bootsteap, Version 11.3(2) 946, RELEASE SOPPWARE (Ee1) Copyeight.(c) 1999 by cisco Systems, ‘Tne ‘TaesHome 84S T08:Spectals for inte C2600 platform with 65596 Kbytes of main ay program Load complete, entey point: 0x80008000, size: oxn99860 VAGAGAAASSNGAAGESSUIAEESSUINEEGOSUEEGSAUUULEEEUUULOEEEVELEEEEUELAEOEUALALOAOALAEASIAL AOUAUAAAPATAAEASTNAECOSTORECOOTOUEEEETUUELEETOVEDEETEVEDEEUEUADEEUEMA DAE HANADABAIAD HARE AMEED (C8) seart inst 12 enables arazt init Le size i EMORY REO ee 00091 ‘x00088800 2500 single Ezhernet 0x00098670 pupise buffer pools ox00212000 punise particle poole ora ox00234E70 If any of the above Menory Requirenents are unncwe, you may be using an unaupporcea configuration or there is a software problen and aysten operation nay be compromised. Rounded TOMEM up to: 4M. i Using 6 percent’ tonen. [4éMb/64Mb) Restricted Rights legend " - Use, duplication, or disclosure by the Goverhpent i subject to restrictions ax set forth in mubparagespy {c) of the Commercial Computer software = Restricted (ec) 1) (ii) bf the Rights in Technical Date and Computer Software clauge RE DEARS soc. 252.227-7013, clsko systens, tne: 170 \nest Fasadn Dxive San Joab, California 95134-2706 clecd rnternendork Operating system software 305 (Ga) C2600 Software (C2600-ALVSECURITEXI-%) ARE (ra) ‘Technical Support: netp!//waw .ciecs.con/techsupport Copyright (2). 1986-2006 by claco syatena, Zac. Compiled Tue’ 08-Aug-06 20:50 by keanyaer mage text-nasei OxE0008008, aata-bage: Ox813553A8 ‘This product contains cryptographic features and is subject to United States and local country lava governing import, export, transfer and tise. Delivecy of Cisco eryprographic products dees not’ imply Ehiss-party sutnority to suport, export, assersbste oF sre enceyption Importers, exporters, distributors and users compliance with U.S. and local country las. By using this product you gree to comply-with:sppliceble lows and ‘regulations, TE you ere unable C2 Somply with 0,8. end loce! laws, return Chis product imediately hetpr//uww.clsco.com/wwi /export/ceypto/ tosl/stary.atat Af you require further assistance please contact us by sending email to exportgeisco com. Giscs 2610 (HPCEEO) processor (revision 04203) with GL440K/4096K bytes of mono. Processor board ID JADSO207GY (3269940302) MBéO processor: part aunber 0, mask 49 Brldglag software X.25 software, Version 3.0.0. Feprolseed or disteibueedieraneniteed in any form or. by any means; electtonic oF rechenicely ConA Practical Guide Complimentary Edition - oct 2010 ete dies 2 Bthownse/IEE2 802.3 intextace(2) 4 Serial (sync/async) setwork interface(s| 52K bytes ef non-volatile confaguration menory. leesh bytes of processor board System slash (Read/#rste) Press RETURN to get started! was 1 00:00:21,402: ALINK-3-UFDOMN: Interface Etharnet0/9, changed state to up Yas 1 00:00:21 402: 4LINK-3-URDOWN: Interface Serial0/0, changed state to down Yaa: 1 00:00:21,402: ALINK-3-UPDOMW: Interface Serial0/l, changed state te down fuar 1 00:00:21,406: 4LZNK-3-UFDOMN: Interface Sersal0/2, changed state to down faa: 1 00:00:21,408: WLINK-3-UFDOMN: Interface Serial0/3, changed state to down Ya: 1 00:00:22,592; 4LINEPROTO-S-UPDOWN: Line protocol on Interface Ethernet0/0, var 1 00:00:22,802: $LINEPROTO-S-UPDOWM: Line protocol on Interface Seriai0/1, Changed state to dow Saar 1 00:00:22,582: $LINEPROTO-S-UPDOMN: Line protocol on Int changed stare to down waar 1 00:00:22,808: MLINEPROTO-S-uPDOW: Line protocol on Interface Seriai0/2, changed state to dows ar 1 00:00:22,808: SLINEPROTO-S-UPDOWNE Line protocol on Interface Serial0/3, changed stare to cows “war 1 00:00:22,980: ¥S¥S-8-conrzG_x “war 1 00:00:24,811: $LINK-S-CHANCED daministeatively cow “unr 1-00:00:24,815: SLINK-S-CHANGED: Interface Serial0/I, changed state to Saminiaeeacively war 1 00:00:24 daministeatively "var 1 00:00:24 aaministeatively Pua: 1 00:00:27,600: 48YS-5-RESTART; ayaten\rextarted = | Cites Internetustk Operating Systes Jortware 308. (tm) C2600 Software (C2600-ADVSECURITYNS-N)y Version 12,3(20), RELEASE SOFTWARE (222) Technical Support: http://w esc), con/ techsuppoet Copyright {c) 1986-2008 by cisco Systems, Tae ¢ Corpiied Tue 08-Aug-06 20:80 by xesnyder "iar 1 00:00327; 6003 4SHMP-S-COLDSTART: SNMP agen’ on host Router i undergoing @ "tia: “100: 00;28)-6062 4LINEPROTO-5-UPDOHN:\ Tine protacel on Interface Ethernet/0, changed state to dow \ contiqured trom menozy by consele interface Serial0/0, changed state to SUINK-S-CHANGED: Interface Sersal0/2, changed state to SLINK-5-CHANGED: Interface 3e¥i810/3, \changed state to 1. ated Shotts \frocous {tint ¥nod freae ENTER Xey teen Keyboard. The connand prompt BiSplade’on tal Wpernoseusad worm: Tig le,the default mode of 2 router and 12 called user exec mode, You can’t writé-ok aad to a configuration in this mode, but you can run quite a fev show Gormands. This is a good rods co have users in (who need to see che contiguration, bur shouldn't be allowed to change it) Seatsties under tna copyesgne ordunanse 1962 at Fasieteny no pate se shis publication way be -6- Feprolseed or disteibueedieraneniteed in any form or. by any means; electtonic oF rechenicely conn Practical cuide Complimentary Edition - oct 2010 Exercise No. 2 Pelee eee] NOTE: thi and allows you ta enter into globe contig seas), ¥ "i Exercise No. 3 CHANGING HOSTNAME CCNA Practical Guide LATTICE Complimentary Edition - oct 2010 eludies VERIFICATION LAOTICR® show clock reser ry Eye (eee Weg Presrerie ey PRED 2 Nea CME SUS P ACO CLSEY ROL LATTICE) show runniag-eontig LATTICE ConA Practical Guide LaTuce Complimentary Edition - oct 2010 Perera ry LINE CONSOLE PASSWORD VERIFICATION LATTICE ConA Practical Guide eludies Complimentary Edition - oct 2010 NOTE: If you type 2 wrong password, the oes erereLaeea eraneaa tae Exercise No. 8 LINE VTY / TELNET PASSWORD Exercise No. 10 PASSWORD FOR PRIVILEGED MODE in uppere -10- ConA Practical Guide Complimentary Edition - oct 2010 VERIFICATION ‘Funning-contig eer ee LATTICE SECRET (ENCRYPTED) PASSWORD FOR PRIVILEGED MODE Exercise No. 12 REMOVING LINE CONSOLE PASSWORD site LATTICE ConA Practical Guide eludies Complimentary Edition - oct 2010 eee ee) REMOVING LINE VTY / TELNET PASSW eee ee REMOVING AUXILIARY LINE PASSWORD Pee a ee) REMOVING PASSWORD FOR PRIVILEGED EXEC MODE Peeeaer ety REMOVING SECRET PASSWORD ee CHECKING SYSTEM FLASH Lacricep show flash -- LATTICE coNA practical cuide eludies Complimentary Edition - oct 2010 Exercise No. 18 RSION & CONFIGURATION REGISTER’S VALI CONFIGURATION REGISTER VALUES AND THEIR FUNCTIONS ie BEMAVIOR OF THE ROUTER totlelee . ay + telee vere vale -is- ConA Practical Guide Complimentary Edition - oct 2010 etludies Team ‘> ignores break Boots into ROM LF initial boot > 1200 consoe naud rate > tonores break pease boots into ROW Lf Snitial boot > 2000 console nous rate P tonores break pees boots into ROW Lf dnitiaL oot > 57600 consoie baud rate > tonores break pesso2 Boots into ROW if snitiaL boot sails > 2000 console baud rate P Tonores break pe P —woote into Row if snitiaL boot feile > 115200 consode beud sate CHECKING IOS VERSION AND CONFIG REGISTER VALUE Lnevicsht show version Cisco Internetwork Operating Syaten Software 305 (em) C2600 Software (C2e00-ADVSECURITINS-+), [RESTER TASTED) ezase sot ARE (202) Technical Support: http://w. ctaco.con?techaurpart Copyright, (e), 1985-2006 by cisco. systema, Tne Compiled Te 08-Aug-06 20:50 by. Keanyder Snage text-base: Ox40008098, datacbese:\ 0x6355338 Rows System Bootateap, Version 11.902) ¥Ad, RELEASE SOFWARE (#01) Rot: €2600 Software (C2600-ADVSECURITYES-H), Version 12.3120), RELEASE SOFTWARE 1222) LATTICE uptime {2,1 hour, |é ainiter Sytem returned CO\ROM by powbe-on System restarted at 11#s3:28 UTc Wed Mar 17 020 ‘This product contalis cryptographic Features and Ls subject to United States and local coustry taas goveriing import, export, transfer and use. Delivery of Cisco cryptographic products dose aot imply thizd-party authority to ingore, export, distrinute or ues encryption. Inportere, exporters, dlatributere and users aze responsible for corpiiance with U.S. and lecal country Lane. By using this product you agree to comply with applicable Lave and cegulaticns, i you are unable to comply witn U.S. and Lo¢al lave, return this product immadiacely. A oummary of U.S, Lana governing Cisco exyptographic producte may be found att neep:/ /waw.cisco.com/wel /export/crypto/tool/stqrg.nenL eiace 2610 (HECBEO) ‘processor (revision 04208) with 6I440K/4095K bytes of manory Processor board ID JADOSOZ07GY (3269948348) NB5D processor: part nunber 0, mask 49 Bridging software. 2 Ethernet IEEE 802-9 inter tace(s} 4 Serial (ayne/aaync) setworie antersce (3) 26384" bytes Of processor board System flash (Read/zite) arian Toa Feprolseed or disteibueedieraneniteed in any form or. by any means; electtonic oF rechenicely ue LATTICE ConA Practical Guide LaTuce Complimentary Edition - oct 2010 Exercise No. 19 [est eh SNM Ole YAS Se Cet) ADDRESSES IAETICEA show ip interface brief Peer ASSIGNING IP ADDRESS VERIFICATION IATTICEA show ip interface brie! VERIFICATION IATTICSA show ip interface brief ty ee -is- LATTICE ConA Practical Guide suid hee Complimentary Edition - oct 2010 en erry 'STRATIVELY SHUTTING DOWN AN INTERFACE VERIFICATION EAUTICER show ip interface brief Sing ‘the show contro! -is- LATTICE ConA Practical Guide eludies Complimentary Edition - oct 2010 VERIFICATION IAUTICH® show controllers serial 0/0 0x2: 0x000¢ mit on Demand [ODR|~ Pere ers! SAVING RUNNING-CONFIGURATION TO NVRAM MeTHOD-2 een Mees) SAVING RUNNING-CONFIGURATION TO TFTP SERVER mo ee) BASIC CONFIGURATION OF ROUTER i = ConA Practical Guide Complimentary Edition - oct 2010 INSTALLING TFTP (TRIVIAL FILE TRANSFER PROTOCOL) SERVER QO 8 Pmo prem mg Detaenet ndsetnaienbsttaaccces — ¥| EI o 4% [ese ote cae aa We Welcome to the Winkgents TFTP Server installation Wizard Teton Ragep nero coin a a ST orca ne esioeme LATTICE -i8- CONA practical Guide Complimentary Edition - oct 2010 etludies Copyrignes © 2008 by vanannad Shakeel Aedrat. AI] righta vererved. Printed Jn Paxiatan. Bacepe 28 Seonitaea under tha Copyetane. Oediennse’ 1962 af fokistony ao part of thus publication aay Feprodaced ‘or diateibutea/erangnitted In any form or by any means, electronic or mechenic ‘Seta picecopringy Seay day satowsstsce etcrage and satciowsl aySeeny wtnou -1- ConA Practical Guide Complimentary Edition - oct 2010 LATTICE \Winagents TFTP Server has been successfully installed. iu Comets boca ever Beate server: Authertiaion © Connect curt Wako nee (Use cure coders [Zl Sovengn rfomain eather ua i ictal -a0- com practical Goide LATTICE Complimentary Edition - oct 2010 ete sies fn Drees tenn cormtnatio tat HF Senee C2 3Ce ASSIGNING IP ADDRESS TFTP SERVER G1 Click on Properties button: oa #1 Fs i (Cisetet | (“aati ) | click \on FrapertLes button recoeacinse tee ene 3 Cicer ed Pat 2 Fhe vor Der 3 lnarat Pace REP) Coe) ‘acyaemteeeatons Inte [Pitan conn ntesin anee ctace [eat grove crecotar nde corety fetid sae ConA Practical Guide Complimentary Edition - oct 2010 9, Select the values as shown in below window and press OK button ec migntakngedy es rm eet Cine ates ty Slstcuinepr cr Poli ew Saree (=o fer i =e OUntetinn iS are e BereinGome SAVING RUNNING-CONFIG TO TFTP SERVER AOTICS# copy running-config tftp Address or nane of remote host []? 192.168.1.10% Destination filename [IATTICE-confg]? shat Beever ip-instalisa. 680 byte copied in 3.490 cece (195 byter/ead) wore: arver tintéhihg Sopy\protese, yourli see a rlie\naned “shakeel” in TTP server ‘yin. 5150 vend or disteibuted/eransnitted in ary form or by anp_teonay “ens Faneation aay Be -22- LATTICE ConA Practical Guide LaTuce Complimentary Edition - oct 2010 een ery SAVING STARTUP-CONFIGURATION TO TFTP SERVER een ers COPYING IOS/IMAGE FROM ROUTER TO TFTP SERVER lename. [eena] JB F romain =) go| 23 at So pe bent a fe een aciew Bice noma fe laeainazam Sante Chetadaos Fe ow So Tinea Sow Oster SPH NIA aed coe PE So. Feumtets oe czy S5n97010221-0PM_ 121581 Timon — ect 7 5 Fein ve neceidy Tie gence zetr = covmtedtobeatet Talos Go are 0m) CCNA Practical Guide LATTICE Complimentary Edition - oct 2010 eludies en err) REMOVING STARTUP/NVRAM CONFIGURATION FROM ROUTER ram: complete VERIFICATION IAOTICH® show. startup-contiguration Er Bae SPCR PS) Lesh aera NOTE: CCNA candidates are strictly advised not to apply this command on a router VERIFICATION ianrrceh show flash Exercise No. 30 COPYING-IOS/IMAGE FROM TFTP SERVER TO ROUTER sia = LATTICE ConA Practical Guide eludies Complimentary Edition - oct 2010 Exercise No. 31 ONFIGURATION FROM TFTP SERVER TO ROUTER papers CONFIGURING ROUTER I a copback 0 Sef ap adores 100 0.¢ NOTE: Locpt sitertace 1 an inaginary/virtual interface and as) alway ois - LATTICE coNA practical cuide etludies Complimentary Edition - oct 2010 BASIC CONFIGURATION OF R2 Routers enable Rourer® contig terminal Bouter |config)& hostname R2 R2 (config) interface serial 1/0 Bo(contsg-ie)p ip address 105-100.1.2 258.258.0.9 Bi(config-if)f encapsulation hale B2(config ie) ne shutdown suar 19 22: 16.0312 $LENK-3-UPDOMN: Interface Seriall/0, changed state to up 70432 SLINEEROTO-S-UPDOWN: Line protocol On Interface Serial1/0, changed az(contig-it)h exit WoTE: Encapsulation should be game on both sides. otherwise, Line protocol will be ta nz (contig) Latertace Loopback 0 SLINEEHOTO-S-UPDUNN? Line protocol on Interface Loopbackd, changed Ro (configrit)# ip address 200.1-1.1 255.255.255.0, Ro (contigriey# exit VERIFICATION OF DCE/DTE AND CLOCK RATE "1 show controller serial 1/0 [Der v.35; clock cate 64000 cost of the output is omitted —— 22} show controller serial 2/0 antetface seiiali/o [bre v.35 Te ana RE Wiocke Getaatedr sdb a2 CHELbi1i0C, driver data graycture 2¢-OxeL6s91a8 “= reat of the output aa omitted —- VERIFICATION OF INTERFACE STATE if show interface serial 1/0 (Geriali70-ts up; Line protacol 18 op Unterset address 19 185,100.1.1/16 reliability’ 255/255, trload 1/255, rxload 1/255 Encapsulation HDLC, cre 16, loopback net set Keeplive set (10 s0c) Restert-Delay is 0 secs 2% show interface serial 1/0 [Bectali/0te up; line protacol Ts op Internet address 1s 285.100.2.2/26 "reliability 285/285, taload 1/288, raload 1/255 Encapsulation HDLC, exe 14, loopback not sat Koepalive set (10 Sec} Restart-Delay is ¢ secs Feeitied nate sta opyetge, Ordinance inet ot fesustchy no pore ot cha Falisation aay be ~26- LATTICE coNA practical cuide eludies Complimentary Edition - oct 2010 wif show ip interfaces brie 22} show ip interfaces brief cise No) 33 BP ACHE 2.15) PPE periodic > ow long tox ne TMP ECHO REQ and received by ne CODES THAT THE PING COMMAND RECEIVES IN RESPONSE TO ITS ICMP ECHO REQUEST ING CODE ‘DESCRIPRTON siti = ConA Practical Guide Complimentary Edition - oct 2010 ete dies SIMPLE PING TO AN INTERFACE OF A ROUTER mig ping 185.100.1.2 ‘Type escape sequence to abort Sending 5, 100shyte TOMP Behos to 185.100.1.2, timeout is 2 seconds Success rate iz 100 percent (5/5), eound-ceip min/aug/mase = 24/41/68 me Rag ping 200.2.2.1 Type escape sequence to abort. Success rate 18 0 percent (0/5) Wore: in order to reach a ronote IP address / network from 2 local router, the Entormation of that xencte netvork should be listed in the local router trom wnsoh you are trying to access. For thle purpose you need to learn routing protocols. (See Exercise Noa. 38-37, 40-46) ROUTING TABLE OF ROUTERS R1 6 RZ nif show ip route Codes: ¢ - connected, § ~ static) R- RIF, M- mobile, B - cE NI ~ OS2P'NSSA external type 1, N2 - OSPP NSSK-extdrnal type 2 Bl ~ OSPF external type 1, 22 ~ OSPF external type 2 4-18-18, gu - 19-18 summary, L1~ 18-18 level-ty 2 -\{8-19 level=2 ia - 15-15 inter aren, + ~ cendidate defaslt, U- per-user static route O° oD8, P = periodic downloaded atatic sue © 100.0.0.0/8 ix directly connected, \ Loopback © 185'160.0.0/26 is diectiy connacted, Seriall76 work: network 240.{:9.0%Le nob Libted in the\voytdag table of Router RL. 22} show ip route codes: ¢ - conndcreds § -étaticy RRIF, Mobile, B - SGP 5 = EIGAP, £x'- EIGRP external, O ~ OSPF, IA - OSPF inter area Ni ~ OSPF’ NSSA exteznal type 1, 2 - OSPF NSSA external type 2 EL - OSPF external type 1, E2~ OSPF external type 2 i= 15-15, gu(- 15-15) summary, Li - 15-15 level-i, 12 ~ 15-15 Level-2 fa Ig-u6 incer area," - candidate aazault, U ~ per-uecr static route o'- DR, P ~ pefiedic downloaded etatic route Gatenay of last resort is not set © 195,100.0.0/16 43 atsectiy connacted, Sexisi1/0 © 200-0.0.0/24 is directly connected, Leopeack0 NOTE: Network 100.0.0.0 is not Listed in the routing table of Router R2, Seatsties under tna copyesgne ordunanse 1962 at Fasieteny no pate se shis publication way be ~28- Feprolseed or disteibueedieraneniteed in any form or. by any means; electtonic oF rechenicely ConA Practical Guide eludies Complimentary Edition - oct 2010 EXTENDED PING mug ping Prococat (spl ‘Target IP ecdeess: 195.200.1.2 Repeat count [5]: 10 Batageam size. [100] Tinecut in seconds, [2] Retended commands [1]: es ‘Type of seevicw [0] Set DF bit in IP header? (no) Validate reply data? {no} Date patters [0xABCD]: Loose, Strict, Record, Timestanp, Verboselnonel Sweep range ‘Type escape Sending 20, of sizes ini Sequence to abort. 10G-byte ToMP Eehos to 165.100.1.2, timeout 1s 2 seconds with a source addresa of 200.1101, 4c6685 fare 19 0 percent 10/10) nore: The PING command ends a packet to the stated destination addecs. the 102/27 software at the destination then replies to the ping packer with a similar packet The PING cormand sends the first packet and waite on tke response. If a response is receives, the command displays an exclamation ark!) If a0 vesponse is received within the detault tineovt at 2 seconday the ping command aisplays a period eign (.)- The 105 command sends five 9f theta, packets By default In this case, router RI holds the intofsation’ of satwo¥k 185-100.0.0 in its routing table ‘to reach destination IP addrdss 185.190:1.2, but; inorder to return back from router R2 to IP addigey 1Q0.0-11, rouler“R? ows’ not have the infomation ‘of network 100,9<0.0 Yo \its\rautiny table. Thelatsrmy \che PING i= Rerenber that on th wel bebk, ‘the sdusek address “(200.1-2-1) converts into Sestinstion addres and the destination address (1851142) converts inte source Source Asso: 185.9004.2 Destnabon Rates 10014 x \ Ri R2 Sonat tient “peas eo ee e SAS i eto pate chia pabiication aay Be -29- “distcibuted/eraoseitted in any fom ce by’ any LATTICE coNA practical cuide eludies Complimentary Edition - oct 2010 eon Cee! CISCO DISCOVERY PROTOCOL (CDP) Rt R3. > <) sore WS R2 BASIC CONFIGURATION OF RL -a0- ConA Practical Guide Complimentary Edition - oct 2010 ete dies 2a (contig) # intextace aesial 1/0 Rs(contigrit}# ip address 13.1.1.3, 255.0.0.0 Rs(contig-it} ne shutdown R3lcontigrit) # exit BS (config) interface serial 2/1 Balcontig it)# ap address 23.1.2.2 255.0.0.0 B3(config-if)é clock rate 64000 BS(config-if)# encapsulation hale BS(config-ic)# no shutdown B3(contignic)f exit (CDP _Covmanns Rif show edp 7 entey Information for specttic nelehbor entey [ncertace oP intsrzace statue and contiguration pelghbore COP neighbor entries teaftie. cop atatistles 1 output soaitiers Af show edp neighbore Capability codes: # - Router, T = Trane Bridge, B - Source aoute Bridge = Switen, 4 - Host, 1 ~ IGP, © - Repeater bdsice 10 local intréce Holdtne Gapabiiity Fiaktorn Vase ~~ te} 73] 1 | woe cy Ser 1/2 135 R ahgevax” Ser 1/0 WOTE: To understand the above’\ecnmand, \first\ ct ‘all see EIGRR, EX'- EIGRP extoznal, 0 OSPF, IX - OSPF inter area Ni = OSEF'NSSA extesnal type 1, 2 ~ OSPF NSSA external type 2 EL = OSEF external type 1, 22 * OSPF external type 2 A= 15-15, gu - 15-15 summary, Li - 15-15 level-i, 12 - 15-15 Level-2 ja - 49-26 Incer azea, * - candidate default, 0 ~ per-user atatic route ov DR, P = periodic downloaded etatie route Gateway of last resort ie not set © 10.0.0/8 se dixeotLy connected, Lecphacko © 12,0,0.0/8 8 directly connected, Seriall/0 52} show ip route Codes: C = connected, § - static, R- RIF, M- mobile, B 7 85F B= BIGAP, EX"- EIGRE external, O ~ OSPF, IK. OSPE\ inter axes ND ~ O3BF'RSSA external type 1, 2 - OSPF RGSA extetnal type 2) EL = O30F external type 1, 22" OSP0 external typed f- 19-19, au = 14-18 summary, LL” 18-15 levelety 2% £9-18" Levél-2 in ~ 15-18 inter aren, * — cnfsidate aefaoit, U \'per-user static toute Gateway of last resort is not Set © 2,0.0.0/8 Se dixectly connected, Lochbacko © 12,0.0.0/8 ie dizectiy connected, Serial /1 VERIFICATION pif ping 12.1.1.2 ‘Type escape sequence to abort. Sending 8, 100-byte ICMP Echos to 12/1.1.1, timeout 1s 2 seconds: Success rate 1s 100 percent (6/5), round-trip min/avg/max = $6/80/148 ms mug ping 2.2.2.2 ype escape sequence to abors Sending 5 100-byse ICMP Ecnos to 2.2.2.2, tinecut is 2 seconds Success rate is 0 percent (0/5) 22¢ ping 12222 ‘Type escape sequence to abort Sencing 8, 10Gcbyte TEMP Fehos to 12.3.2.1, timeout ix 2 seconds: Success rate 1 100 percent (5/5), xound-tetp min/avg/uax = 24/48/80 ms FEproteces gr oteiinte/Cronmitted fn ety fost on ben? sca, electronic meena a. cCowa Practical Guide Complinantary Edition - oct 2010 ciwdies nod ping 1.1.2.1 ‘ype escape sequence to abort. Sending 5; 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds! Success rate is 0 percent (0/5) WOTE: As nentioned earlier that a router can forward packets only to subnets in ite routing table. Since networks 12.0.0.0 and 1.0.0.0 are listed in the routing table Sf zoster Rl {because these aze directly connected networks to. router Rl), therefore, ping to 12.1,1.2 is successful. Network 2.0.0.0 18 not directly connected’ to router Al and not Iieted in ite routing table; therefore ping to Sintlariy, networks 12.0,0.0 and 2.0.0.0 axe Listed in the routing table of router R2 (because these are dizcctiy connected networks to router A2), therefore, ping to 12,1,1.1 1s successful. Network 1.0.0.0 le not directly connected to zouter RZ and not Listed in ita routing table; therefore ping to 1.1.1.1 49 failed. ADDING STATIC ROUTE ON ROUTER RL aif configure termina Bi(contighf dp route 2.0.0.0 288.0.0.0 22, Rl (contig # exit aut MOTE: Atter adding static route tor network 2.0,0;0, “al)\trattic” trom router Ri tor network 2.0.0.0 will be forwarded to ite next nop 1S,1i1.2 (ie. router R2) ROUTING TABLES OF ROUTER Rl & R2 (AFTER ADDING STATIC ROUTE ON ROUTER Rl) ag show Sp route (© 12.0.0.0/8 is directly connected, Serialt/0 224 show ip route © 2.0.0.0/8\48 Utracet| connected, Lospbackd © 12.0.0.0/8\4e aireccly connects4, Seriali/1 worm: webyor’,0.9.0 fe Betz missing in the routing table of router Re. VERIFICATION mat ping 2.2.2.2 type escape sequence to abort. Senaing 5; 100-byte ICMP Echos to 2.2.2.2, timeout 48 2 seconds! Success rate is 100 percent 15/5}, round-trip min/avg/max = 28/51/108 ms R24 ping Lat ‘yte scabs 'aqueiiey” to abot Success rate is 0 percent (0/5) MOTE: Ping 2.1.1.1 from router A2 Le still not successful because network 1.0.0.0 1s not 4.0.0.0 in the zeuting table of zouter #2. fesnitdea” cate he Coprigns.Geiaasc ss ot Wokisany ao part ck this fuuiceton aay Ge ~38- {eEiahg phScmoryingy rsordiny, or 6 Say sncomastsceatatage and eotrital sizeny mtnont LATTICE ConA Practical Guide LaTuce Complimentary Edition - oct 2010 ADDING STATIC ROUTE ON ROUTER R2 ROUTING TABLE OF ROUTER R2 (AFTER ADDING STATIC ROUTE ON ROUTER R2) 224 show 4p route VERIFICATION mag ping 1.1.2.2 patna Exercise No. 37 STATIC ROUTE. a gare a Psat see RZ, BASIC CONFIGURATION OF RL, R2 é R3 ADDITIONAL CONFIGURATION OF Ri, R2 & R3 -a9- ConA Practical Guide Complimentary Edition - oct 2010 etludies 224 configues texminal Ro (contig) # interface loopback 0 Ro(contigrit)# 1p address” 2.2.2.2 255.0.0.0 Ro (contigrit)# exit 224 configues texminal B2(config) interface Loopback 0 B2(config-it)t ip address 3.3.3. R2(config-ie)h exit ROUTING TABLES OF ROUTER R1, R2 & R3 Big show ip route © 1,0.0.0/8 te dizectty connected, roophacko © 12,06.6.0/8 is dizectly connected, serisi1/0 © 13.0.0.0/8 ie aizectly connected, Serisli/1 22 show ip route © 2.0.0.0/8 49 dixeotLy connected, Locphacko © 23.0.0.0/ te aizectiy conneczed, serisii/2 © 1210.02.08 is directly connected, Seriall/0 B34 show ip route © 3,0.0.0/8 a6 directly connected, Locphacko © 23.0.0.4/8 is directly connected, Seriall/t © 131010148 is disectly connected, Serigl1/0 VERIFICATION big ping 12.2.2.2 rYPs escape swauence to pire Sending 8 100-byte ICMP Echos to 12.2.1.2, timeout ie-2 decondds Success rate {\200 percent (5/5), rqunl-trip Rin/avy/max + 24/38/80 ne pif ping 13.1.2.3 ype escape sequence-to abort. Senaing 8, 10-byze 10MP Eenod to 13.2.1.3, timeout ie 2 second Success rate 1s 100 pefcent (6/5), \zdund-cetp min/avg/max = 24/40/92 ns nag ping 1.1.2.2 ‘Type escape sequence to abort. . Senaing 5 100-byze ICMP Echos to 1.1.1.1, timeout is 2 seconds Suocess cate is 100 percent (5/5), cound-teip min/avg/max = 24/40/92 me mug ping 23.1.1.2 ‘Pipe’ wavepa: sespence-to abort Sending S: 10dchyte I0MP Echos to 23.2.1.2, timeout is 2 seconds: Success cate is 0 percent (0/5) Big ping 23.1.2.3 Type. escape sequence to abort. Success rate 1s 0 percent (0/5) FEproteces gr oteiinte/Cronmitted fn ety fost on ben? sca, electronic meena -40- ConA Practical Guide Complimentary Edition - oct 2010 ete dies mat ping 2.2.2.2 ‘Type escape sequence to abort. Senaing 5; 10-byte ICMP Ecnos to 2.2.2.2, tinecvt is 2 seconds Success cate is 0 percent (0/5) mug ping 3.3.3.3 ‘Tyre ssrsca, sepoence”ts abect . Sending 5, 100-byte TOMP Echos to 3.3.3.3, timeout ix 2 seconds Success rate 18 0 percent (0/5) ce networks 12,0.0.0, 13.0.0.0 and 1.0.0.0 are listed in the routing table of router Ri (because these are directly connected networks to router Ril, therefore, ping to 12.1.1.2, 3.1.1.3 and 1.1.1.1 16 successful. Networks 23.0.0.0, 2.0.0.0 nd 3.0.0.0 axe not divectly connected to router Ai and act Listed in its routing Table} therefore ping to 23.1-1.2, 23.1163, 2.2.2.2 and 3.3.3.3 19 failed. ADDING STATIC ROUTE ON ROUTER Ri kif configure terminal Hi(contigh# dp route 23.0.0.0 255.0.0.0 13.1-1.3 Rl(contig)# ip route 2.0.0.0 255.0.0.0 2.1.1.2 Ri(contig)# ip route 3.0:0:0 258.0.0:0 13.1.1.3, Ri (contig) # exit WOTE: Renenber that, if we set next hop 1331.4 fof the network 2.0.020, it will be a longer path between router Rl and network|2.0,0.0-; Therefore, setting a next hop 12,2.1.2 for the network 2.0.0,01Aa\better path.) | ROUTING TABLES OF ROUTER RI, R2 & R3 BL show ap route © 1,0.0.0/8 is directty connected, Lodphackd 3 210.0.0/8 (2/0) via\ 123-212 5 310.0.0/8 (2/0) vaa\t3ia.2.3 ) 3 23.6.0.0/8\(2/0) win) 23,3.1.3 © 1210.014/8 is dizectiy connected, sertaii/o © 131001078 is dizectly connected, Serial /2 52} show ip route © 2.0.0.0/8 te dixedtly connected, reophacko © 23.0.0.0/8 te aizectly connected, Serisli/1 © 12lolo10/8 is directly Connected, Serisli/0 G4 show ip route © 3,0.0.0/8 sa ssvectty connected, Locphacko © 23.0.0.0/8 is directly connected, Serial /1 © 1310:0.078 is directly connected, Seriall/0 VERIFICATION mug ping 22.1.1.2 Success rate 18 0 percent (0/5) Big ping 23.2.2.3 Type escape sequence to abort. Sending 8, 100-byte IGMP Eehos to 23.2.1.3, timeout 1s 2 seconds: Success rate 1 100 percent (5/5), round-tetp min/avg/uax = 28/41/60 ns Seatsties under tna copyesgne ordunanse 1962 at Fasieteny no pate se shis publication way be -a- Feprolseed or disteibueedieraneniteed in any form or. by any means; electtonic oF rechenicely com practical Goide LATTICE Complimentary Edition - oct 2010 ete dies mat ping 2.2.2.2 ‘Type. escape sequence to aber Senaing 5; 100-byte ICMP Ecnos to 2.2.2.2, tineovt is 2 seconds Success rate is 100 percent (9/5), round-trip min/avg/nax = 24/59/44 ms mug ping 3.3.3.3 ‘Tyre ssrsca, sepoence”ts abect Sending 5, 100sbyte TOMP Behos to 3.2.3.3, Success rate 1s 100 percent (5/5), round-cetp min/avg/max = 24/38/84 ns WoTR: You'll be surprised thet although network 23.0.0.0 is Listed in the routing table of router Ai and ping to 23.1.1.3 Le successful but ping to 23,1.1.2 18 sot. This ie Because of network 13.0.0.0 (Link between router RL s Ri), which is used to access network 23.0.0.0 fren router RL. Network 13.0.0.0 is Listed in the routing fable of router ai & R3, thexefore router A? can enily reply to ping eequeet tor 23.1.1.3 and router #2 could not reply to ping request for 23.1.1.2 because Lt hag no’ Information about network 13.0.0,0 to reply. To resolve this lesue, we have co manvally add static routes on router &2 ADDING STATIC ROUTE ON ROUTER RZ R24 configure terminal Ro{contigh! 4p roote 22.0.0.0 259.0,0.0 23.1.1.3, Ro(contig)# ip route 1.0.0.0 288.0.0.0 12, Ro(contig)# ip route 3.0.0:0 258.0.0-0 23.1.1.3, Ro (contig) # exit Roe WOTE: static routes 1.0.0.0 and 3,070.0 ‘ate abgo\aaded’ to/ access ‘these Hetworks trom router R2. Renenber that, {f we set next nop 23.1.1-3 fon eho metedh 1.0.0.0, 3 will be a longer path between: coker Rand network 1.0D-0, Theeetare, setting a» Instead of setting a next hop for a rtatic route, the other option is to define « static route with reference 0 the outgoing interface which is connected to the ext hop towards the destination network. The example is given below: e2(contigif tp>xoute 13:0.0.0, 258.9.0.4 [eea aT Ra(contigl} 4p coute> 1.0.0.8 \258.0\0-0 |eertal 1/0 pa(contigl | Spy“rouce 35070,0\ \258.010-0 |[pexbal 1/3) ADDING STATIC ROUTE ON ROUTER R3 23) configure tenigat Hs(contigh# tp route 12.020.0 285.0.0.0 a3.1-1.1, Rs(contig)# ip route™-2-0.0.0 285-0-0.0 13.1:1-1, Hs(contigh? 4p route 2.0.0.0 285.0.0.0 23.1:1:2 Ba(contsg)# fp fests 1.0.0.0 255.0.0.0 sexta 1/0 Rs{contig)# ip rote 1.0.0.0 255.0.0.0 serial 1/0 Rs{contig)# ip route 2.0:0-0 255.0.0:0 serial 1/1 ROUTING TABLES OF ROUTER R2 & R2 22 show ip route 5 1,0.0.0/8 (2/0) via 12.a.2.1 © 210l0.0/a se dixectLy connected, Loophack0 5 310.0.0/8 (1/0) via 23.2.2. © 23.0.6.0/8 is dtzectiy connected, serLai1/2 © 121001078 is dizectly connected, Serisi1/0 5 1310.0.0/8 2/0} via 23.2.2.3 Seatsties under tna copyesgne ordunanse 1962 at Fasieteny no pate se shis publication way be - a2

You might also like