资源描述:
《河南理工大学internet协议分析实验_ospf_路由协议的配置》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
实验六点到点链路上的OSPF1.实验目的在路由器上启动OSPF路由进程启动参与路由协议的接口,并且通告网络所在的区域度量值Cost的计算Hello相关参数的配置点到点链路上的OSPF的特征查看和调试OSPF路由协议相关信息2.实验拓扑:3.实验步骤:(1)步骤1:配置路由器R1R1(config)#routerospf1R1(config-router)#router-id1.1.1.1R1(config-router)#network1.1.1.0255.255.255.0area0R1(config-router)#network192.168.12.0255.255.255.0area0(2)步骤2:配置路由器R2R2(config)#routerospf1R2(config-router)#router-id2.2.2.2R2(config-router)#network192.168.23.0255.255.255.0area0R2(config-router)#network2.2.2.0255.255.255.0area0 (3)步骤3:配置路由器R3R3(config)#routerospf1R3(config-router)#router-id3.3.3.3R3(config-router)#network192.168.23.0255.255.255.0area0R3(config-router)#network192.168.34.0255.255.255.0area0R3(config-router)#network3.3.3.0255.255.255.0area0(4)步骤4:配置路由器R4R4(config)#routerospf1R4(config-router)#router-id4.4.4.4R4(config-router)#network4.4.4.00.0.0.255area0R4(config-router)#network192.168.34.0.0.0.0.255area04.实验调试(1)R2#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2 E1-OSPF externaltype1,E2-OSPFexternaltype2,E-EGP i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea *-candidatedefault,U-per-userstaticroute,o-ODR P-periodicdownloadedstaticrouteGatewayoflastresortisnotset 1.0.0.0/32issubnetted,1subnetsO 1.1.1.1[110/65]via192.168.12.1,00:04:56,Serial0/0/0 2.0.0.0/24issubnetted,1subnetsC 2.2.2.0isdirectlyconnected,Loopback0 3.0.0.0/32issubnetted,1subnetsO 3.3.3.3[110/65]via192.168.23.3,00:03:02,Serial0/0/1 4.0.0.0/32issubnetted,1subnetsO 4.4.4.4[110/129]via192.168.23.3,00:01:43,Serial0/0/1C 192.168.12.0/24isdirectlyconnected,Serial0/0/0C 192.168.23.0/24isdirectlyconnected,Serial0/0/1O 192.168.34.0/24[110/128]via192.168.23.3,00:03:13, Serial0/0/1RoutingProtocolis"ospf1" Outgoingupdatefilterlistforallinterfacesisnotset Incomingupdatefilterlistforallinterfacesisnotset RouterID2.2.2.2 Numberofareasinthisrouteris1.1normal0stub0nssa Maximumpath:4 RoutingforNetworks: 192.168.12.00.0.0.255area0 192.168.23.00.0.0.255area0 2.2.2.00.0.0.255area0 RoutingInformationSources: Gateway Distance LastUpdate 192.168.12.1 110 00:05:45 192.168.23.3 110 00:05:47 Distance:(defaultis110)(3)showipospf该命令显示OSPF进程及区域的细节,如路由器运行spf算法的次数.R2#shipospf1RoutingProcess"ospf1"withID2.2.2.2SupportsonlysingleTOS(TOS0)routesSupportsopaqueLSASPFscheduledelay5secs,HoldtimebetweentwoSPFs10secsMinimumLSAinterval5secs.MinimumLSAarrival1secsNumberofexternalLSA0.ChecksumSum0x000000NumberofopaqueASLSA0.ChecksumSum0x000000NumberofDCbitlessexternalandopaqueASLSA0NumberofDoNotAgeexternalandopaqueASLSA0Numberofareasinthisrouteris1.1normal0stub0nssaExternalfloodlistlength0 AreaBACKBONE(0) Numberofinterfacesinthisareais3 Areahasnoauthentication SPFalgorithmexecuted9times Arearanges are NumberofLSA4.ChecksumSum0x028d34 NumberofopaquelinkLSA0.ChecksumSum0x000000 NumberofDCbitlessLSA0 NumberofindicationLSA0 NumberofDoNotAgeLSA0 Floodlistlength0(4)showipospfinterfaceR2#shipospfints0/0/0Serial0/0/0isup,lineprotocolisup Internetaddressis192.168.12.2/24,Area0//该接口的地址和运行OSPF的区域 ProcessID1,RouterID2.2.2.2,NetworkTypePOINT-TO-POINT,Cost:64//进程ID,路由器ID,网络类型,接口Cost值. TransmitDelayis1sec,StatePOINT-TO-POINT, Timerintervalsconfigured,Hello10,Dead40,Wait40,Retransmit5 Helloduein00:00:02 Index1/1,floodqueuelength0 Next0x0(0)/0x0(0) Lastfloodscanlengthis1,maximumis1 Lastfloodscantimeis0msec,maximumis0msec NeighborCountis1,Adjacentneighborcountis1 Adjacentwithneighbor192.168.12.1 Suppresshellofor0neighbor(s)(5)showipospfneighbor该命令显示路由器的邻居R2#shipospfneighborNeighborID Pri State DeadTime Address Interface1.1.1.1 1 FULL/- 00:00:36 192.168.12.1 Serial0/0/03.3.3.3 1 FULL/- 00:00:39 192.168.23.3 Serial0/0/1以上输出表明路由器R2有两个邻居,它们的路由器ID分别为1.1.1.1和3.3.3.3,其它参数解释如下: ①Pri:邻居路由器接口的优先级; ②State:当前邻居路由器接口的状态; ③DeadTime:清除邻居关系前等待的最长时间; ④Address:邻居接口的地址; ⑤Interface:自己和邻居路由器相连接口; ⑥“-”:表示点到点的链路上OSPF不进行DR选举。 (6)showipospfdatabase显示路由器在该区域的拓扑结构数据库信息R2#shipospfdatabase OSPFRouterwithID(2.2.2.2)(ProcessID1) RouterLinkStates(Area0)LinkID ADVRouter Age Seq# ChecksumLinkcount1.1.1.1 1.1.1.1 665 0x800000030x00b20132.2.2.2 2.2.2.2 574 0x800000050x00ca3053.3.3.3 3.3.3.3 482 0x800000050x003b7d54.4.4.4 4.4.4.4 482 0x800000030x00d5863以上输出是R2的区域0的拓扑结构数据库的信息,标题行的解释如下: ①LinkID:是指LinkStateID,代表整个路由器,而不是某个链路; ②ADVRouter:是指通告链路状态信息的路由器ID; ③Age:老化时间; ④Seq#:序列号; ⑤Checksum:校验和; ⑥Linkcount:通告路由器在本区域内的链路数目。