实验——配置动态路由OSPF(模拟)

上传人:mar****e6 文档编号:165574742 上传时间:2022-10-28 格式:DOCX 页数:5 大小:176.58KB
收藏 版权申诉 举报 下载
实验——配置动态路由OSPF(模拟)_第1页
第1页 / 共5页
实验——配置动态路由OSPF(模拟)_第2页
第2页 / 共5页
实验——配置动态路由OSPF(模拟)_第3页
第3页 / 共5页
资源描述:

《实验——配置动态路由OSPF(模拟)》由会员分享,可在线阅读,更多相关《实验——配置动态路由OSPF(模拟)(5页珍藏版)》请在装配图网上搜索。

1、实验(7)配置单区域 OSPFOSPF(Open Shortest Path First 开放式最短路径优先 ) 是一个内部网关协 议(In terior Gat eway Pro tocol,简称 IGP),用于在单一自治系统(auto nomous system,AS)内决策路由。OSPF协议比较复杂F version 2 RFC 2328标准文档长 达224页,可以划分区域是OSPF能多适应大型复杂网络的一个特性,我们只借 助完成单个 area 的简单配置。一、配置实例拓扑图图一二、OSPF配置基本命令Router(config)#router ospf 1Router(config-r

2、outer)#network 192.168.1.0 0.0.0.255 area 0 Router(config-router)#router-id 10.1.1.1三、OSPF 配置实例1、路由器基本配置Enter confiijp-iration coiLmiaiids, one per line. End with CNTL/Z.Router (config) fthostnauie Router3Router3 (config) itint serialO/3/1RouterS(config-if)#ip address 19Z.168.1.Z Z55.Z55.Z55.0Rout-e

3、r3 (conf ig-i f) #no shut% LI UK- S - CHAIJ G E D: Inter f aze Seri al 0/3/1, chELtiged st- at- e to upRouter3(config-i f)#% LINE P RO T 0 - 5 -UPD OWJ: Line protocol on Interface SerialO/3/1, cliaiiged st at- e to upRouter3(config-if J ttint serial0/3/0RouterS(config-if)#ip address 19Z.168.Z.1 ZSS.

4、ZS5.ZS5.0RouterS(config-if)tfclock rate 64000Router3(config-i f)shut% L INK- 5 - CHAM GEE1: Interface Serial0/3/0, cliaiiged state to downRouterS (config-i f) #int f a0/0RouterS(config-if)#ip address 17Z.18.0.1 ZSS.ZSS.ZSS.0Router3 (conf ig-i f) #no shut-图二 以 Router1 为例介绍网络中各个路由器的基本配置2、启动OSPFP.out e

5、 rZst-onf tEnter conf iation coiaiiiaiids, one per line . End with CNTL/Z.P.cut erZ (c on fig) ft r out e r o sp f 1P.outerZ (conf ig-router ) #netT.Ti:irk 19Z - 16S - 0 - 0 0.0 . U _ ZS5 area 0P.cuterE (conf ig-router) finetwork 19Z -163 -1-0 0.0.0. ZEE area 0P.outerZ (conf ig-router) ft00:15:47: %

6、OSPF-E-iIjJCHG: Process 丄.Nt-r 192 .丄 68.0.1 on Serial0/3/0 froiii Lu Al-ING to FULL f Loading DoneP.outerZ (ccmf ig-router) ttnet.wurk 17Z. 17 - 0 - 0 0.0 . ZE5. ZEE area 0P.out erZ (c on f ig-r out er) tt|图三spf 119Z-16S-0-0 CL 0.0.255 area 019Z.168.1_ 0 0-0area 017Z.丄7.0.0 0-0.255.255 area 0图五 Rou

7、ter 2的OSPF配置1勺.18丄-匚i 0.0匚i.ZSS area 0 192- 168_ 2_ Li 0.0. Li_ Z55 area 0图七 Router4 的 OSPF 配置P.outerZpsh ip routeCodes: C - coimected.r S - staticI - I GP.P r P. - RHP* M - iiicih i 1 e, E - E: GPD - EIGP.P EX - El GRP external 0 - OSPF, IA - OSPF inter areaN1 - OSPF NSS直 external 七ypw 1, NZ - OSPF

8、 NSSA external type Z El - OSPF external 匸ypej 1 f EZ 一 OSPF external typm Z, E - EGPi - IS-ISf LI - IS-IS level-1, LZ - IS-IS level-Zr ia - IS-IS inter area* - caiididat e de f suit- U - per-user st at-ic rout e, o - 0DP.P 一 p e r i o di c duTmloaded st at i z r out e10.0 匚i. 0/24 is si.iLinettmcl#

9、 1 SLitnets10- 1_ 1_ 0 110/1Z9 via 19Z_ 168- 1. Z, 00: 0Z: 43,. SerialO/3/1 is SLihinetted 1 sLihinets110/65 via 192.165.0.1 uOzuSzZS, Serial0/3/0 is SLitinetted, 1 SLitinetsis directly coimect.sd, Fast-Ethernet0/0is SLihinetted 1 si-ihinets17Z-16.0.0/2417Z丄0-匚i172.17.J. 0/E417Z.17-0.0172-18.0.0/Z40

10、c c0172:. 13.0.0 11065 via 1?Z-. 163.1. : 00: 038, .-Serialo/Sl 19Z-168-0.0/Z4 is directly coimectedr Serial0/3/0 192-168-1-0/Z4 is directly coimect-edSeria.10/3/1 19Z-16S.Z.LI/Z4 11U/1ZS via 192.16S . 1 - 2 , 00:03:53, SerialO/3/1P.out.erZg|图八 查看路由器中的路由表3、校验、诊断Rout e rZjtsh ip pr oto c o 1Routing P

11、rotocol is osp f 1Out go ing up dat & filter lis 七 for all ii t e r f ac e s is not set Incoiiiing up dat e filter list for all inter faces is not set Pouter ID 19Z.168.1.1Ni-Uiitier f areas in thisHaxiiiii-iiLL p ath: 4P.out ing f o r Netwo rk s :19Z.168.0.0 0.0.0. Z5S19Z-168.1.0 O-O.O-ZESrzuter is

12、 1. 1 nijrnial 0 日tub 0 nssaarea. 0ares. 017Z丄7.0.0 0.0.ZE5.ZSS atTEa 0P.out ing Inf oriiiatiijn Sources :Gat ewayD i st aiic e19Z.168-0.1110192-168-1-211QDist aiice:( de f suit is 110)Last- Update00:04:0700:04:09图九show ip protocol 查看路由器中所启用的路由计算协议P.out erZ#show ip osp fP.cuting Process ospf 1 with

13、ID 19Z. 168.丄-丄Supports only singleSupports opaiT-ie LSASPF schedule delay SIliniiLLi-Uii LSA intervalTOS (TLiSOJ routessecsHo1d time between two SPFs 10 secs5 secs - HiniiLLi-iiLL LSA arrival 1 secsIJi-UllLi e rNi-unlj e rNi-Ull1:i e rNlullLi e rNiiiLLti e rexternal LSA 0- ChecksiiiLL Si-mi 0x00000

14、0 opai.ie AS LSA 0- Checksi-iiLL Slull 0x000000 DCbitless external aiid opa-ie AS LSA 0 DoNot-Age external and upa-ie AS LSA 0 areas in this router is 1. 丄 noriiial 0 st-iiti 0 nssa图十 show ip ospfRout er 2tE show ip o Ep f int e r f ac eSerial0/3/0 is up* line protocol is upInternet, address is 192-

15、 168- 0Area 0Precess ID lr P.cuter ID 19Z_ 16S. 1. lf Network Typm POINT-TO-PO INT f Cost: 64Traiisiiiit De 1 ay is 1 sez, St-ate P0INT-T0-P0INT,Timer int ervals conf iijp-it ed, Hello 10 , Dead 40 f Wait 40 , Retr aiismit SHelle due in 00:00:03Index 1/1 r flood ii-ieue 1 enijrth 0Next 0x0(0)/0x0(0)

16、Last flood scaii 1 enijrt-h is 1 r ma咒imim. is 1Last f 1 aod scaii time is 0 msec, maximum is 0 msecNeiglitior Comit is 1 f Adj acent- neiglitior count is 1Adj acent with neighhor 19Z-16S _ 0.1Suppress he 11 o for 0 neiglitior (s)图十一 show ip ospf interface-=-cr=-P.uut erZtt shoi.T ip o sp f int er f

17、ace s e r i al U / 3 / 0SerialO/3/u is up* line prot-oco 1 is upInternet- address is 192 - 16S .D. 2/24, Area 0Process ID 丄* Router ID 19Z -168 _ 1 _ 1. Network Type: POINT-TO-POINT, Cost: 64TraiiSiiiit- D e 1 ay is 1 sec St at e P 0 INT -T 0- P 0 INTTiiaer intervals confijn-iredHello 10Dead 40, Wai

18、t- 40r P.etraisiiit 5Hello due in 00:00:06Index 1 /1, f 1 ood ii.ieue lenjrt-h 0Next 0x0(0)/0x0(0)Last flood scaii lemjrt.li is 1, maKimi-im is 1Last f 1 o:d scaii tiiiie is 0 iiisec iiiaxiiLLi-iiLL is 0 iiisecNeigliLujr Ciji_ut is 1 . Adjacent ieiglitior coi_uit is 1Adj acent with neigliLior 19Z -

19、168 - 0 _ 1Suppress hello f zr u neiyhhor (s)P.nuterZtt图十二P.out erZfi show ip o sp f dat ahi as 已OSPF Router with ID (192丄E8.1_1) (Process ID 1:P.out.er Link St-atee (Area 0)Link IDAI:V P.out e rAgeSeq#Che cl19Z.168-0.119Z_168-0丄S810x80000003OxOOt192丄8丄.丄19Z丄6S-1丄5020x800000050x00P192丄8.2丄192.168.2一

20、丄4370x800000050x00-192-168-Z.2192丄68.2.E4190x800000030x00:P.out erZsl图十三 show ip ospf databasePing statisties for 19Z-168.Z_1:Packets: Sent = 4, Received = 4, Lost = u (0% loss) _ Approxiiiiate rotuid trip tiiiies in iiii 11 i-secondszMiniiLLi-Uii = 63ills r Haxiiiii-UiL = 94ills , Average = 78illsPOping 172.16匸k J_Pinging 172 丄5 0 - 1 with 3Z brt-es o f data:ReplyReplyReplyReplyf roiiif roiiif roiiif roiii172.16. CL :L:172-16-0.丄:17Z 丄E匚1.1:17Z丄6. CkbT,rteE = 3Z brt.es = 32 bytes=3Z bytes=3Ztiiiie = 78iLLStiiiie = 63iLLStine=4Smst. line-7 8msTTL = Z54TTL = 254TTL = Z54TTL = ZS4

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

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!