配置默认路由_第1页
配置默认路由_第2页
配置默认路由_第3页
全文预览已结束

下载本文档

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

文档简介

1、PCD192.5. 0/21IJPC-PTPCD192.5. 0/21IJPC-PTPC2IPC-PT PCI1盟.163.2.0/2419E. IG9 A 0/24如图,配置默认路由的过程:首先给路由器命名I?QuterenRouter#conf tEnt er conf igurat ion coirniaands, one per 1 ine . End uith CNTL/ ZRouter (conf ig) #hcimt R1R1 (config)修再配置个路由器的端口 ip,并开启端口R1(coniigiflint iBQ/aRl(conila-lt)#lp adil 19Z B

2、les. 1. 1 Z55. E55.255.0R1 (coniQ-if Ji 横口口 shutR1 (conig-if)#no ahutdoom此时拓扑图会发生改变路由器的端口配置完之后,PC1和PC2之间还不能进行通信,需要配置默认路由 从332.6B E D/E*PC-PT pea92. q. 0/2-1心332.6B E D/E*PC-PT pea92. q. 0/2-1心l* &a. .a/zq从拓扑图看出,R1和R3配置默认路由,R2配置静态路由,对R1配置默认路由,RlenR1#cdzl tEnter conf Lguration conmands, one rer line r

3、 End with CNTL/ Z.R1(conf ig) #ip route a 0.0.D 0.0 D. 192.lb.2.2R1 (conf ig) FE% 3T5 -5- COWFI G_I: Conf iauirrd from conso le by conso LeRlahow ip routeCodes: C - comieccecl, S - sr-ac I - IGRP R - RIP, l - motilLs ( E - BGP D - EIGRP, EZ - EIGRP External 0 - OSPF, Il - OSPF inter area Ml 一 OSPF N

4、5SA e:w re trial cypa 1, NZ - 03 PF N33A ezrertiaL type 2 El 一 OSPF eKternal type E2 一 OSPF eKternal tpe E EGP L - 13-15, LI - IS-TS leu&L-L, L2 - TS-TS Leue2-2H La - LS- IS lllCEE area * - candidate dea.ult U - per-iwer static rautEr d - ODP P - pE-riodic duvnloadcd -static routeGateway of last res

5、ort is 192-166.2-2 t-o net-Krark 0,0,0.0C192 B169. LrO/3 is directly connectedr FMtEthernetO? Dc19Z ul68az bd/2Q is dLlrEctly connecLec3r FascEtJierneco/ 1S* O.O.Q.O/O 1/D via 192.169.2-2 Rl#对R2配置默认路由R3enR3 tfconr rEncec cfanT Lgurat ion. cfDirarancl3H one peu line. End ult n CNTL/ Z .R3 (CDnElg) lp

6、 route OaOaOBO192.16BtlulR3 (config)tfeKitS -5 -C CNF I G_ I: ConigijrEd eqki console hy consoleR3 ahov ip routeCodess C - connected, S - 3taticx I - IGRPT R - P.IPX N - mobileT B - BGP L - EIGRP- EK - EIGRP eztcrnal, 0 - O3PFZ IA - OSPF inter area NL - 03 PF N53A eKLernal rpe 1, NZ - DS PF N33A exu

7、ernal cype 2 EL - OSPF 日乂匚eLnal type L. E2 - O3PF 已x匚ernal type 2, E - EGP 1 - 15-15, LI - I5-IS LeveL-L L2 一 15-15 leval-Zf is - IS-I5 Lnrer area 7 一 catidldate caw匚IT 一 per-usEr scaclc raute a 一 ODR P - per iodic dDunloaded stat ic routeGateway o last resort is 192 153.4.1 to netwockC192.163. .0/2

8、4l is directLy connected, FMtEthern.eta/aC192.163.510/24 is dicectLy connected FHStEtheznetQ/13*0,0,0,0/C 1/0 via 192 B160.-1配置R2的静态路由Rnu-DerenRnurerconE rEtirer co af 1 gur at ion comtiGindls one per line . End. wlch CPITL/ Z. Rourer i;con 1 g| #ip rauce 19Z . 16B .1.0 Z55. Z55. Z5f . 1BZ .2.1 Rdur

9、er i;cone 1 g| #ip rauce 19Z . 16B.5a Z55.Z55,.Z55. 13Z L65.4.z RoULercon1g|#shou 1p routeAt LnvaLid input detecced at 11 marker uRo uiercon1g | exit -5YS-S-CCWFIG_L; Configured, irom conso2e Uy consolsP.aucerSsliaw ip routeCodes: C 一 connect ail f 5 - static r L 一 IGRP r R 一 RIP j 珂- mhller E 一 EGP

10、D - EIGPP,! EX - EIGPP excernal O - OSPF IL 一 C5PF Inc er area N1 - 03PF NS3A exLernal type LNZ - DSPF N日日A exi-ernal type 2 El - OSPF excecnaL type 1r E2 - O3P7 external rype 2, E - EGP 1 - IS-IS,. Li - IS-IS level-!, LZ - is-rs level-2, la - IS-LS Inc er arsa * - candldacs ileraulL U - per-oset sr

11、aLlc toure,i - ODRP - per iodic dLovnloadedL srsr Lc ranceGateway 口工 Iasi resatc is wc ser3C c c3192 u!6B-1-0/24192 u!60-2-0/24192 u!6B-3.0/24L92 ul60-4-0/24192 ul6B-5-0/241/0 via 192.168.2 =1 la directly comuecceilf 19 directly comLeccedLf Is directly comueccedL.r 1/0 via 19Z.16Su4aErastE chetnerO/

12、ELhernacD/1/0r astE che t ner-0/ 1Rourer#配置完成,检验配置,用pc0 PING pc2FOping 192.169.5.2Pinaina 192-168.5.2 with 32 bytes of data:Pinaina 192ReplyBeplyPep lyReplyfrom fromf comrrom192.168.5.2:192.168.5-2:192.168.5.2:192.16B.5.2:bytes=32 kiytes=3 2 bytes = 3 2 tiyL&s = 3Zt line =12 Sms t. lire =1091X13ReplyBeplyPep lyReplyfrom fromf comrrom192.168.5.2:192.168.5-2:192.168.5.2:192.16B.5.2:bytes=32 kiytes=3 2 bytes = 3 2 tiyL&s = 3Zt line =12 Sms t. lire =1091X13t iire= 12 Smst.Lle=lZ5lttSTTL=125TTL=

温馨提示

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

评论

0/150

提交评论