路由单区域OSPF协议的配置方法
- 格式:docx
- 大小:298.69 KB
- 文档页数:6
OSPF单区域1 实验目的:能够在单区域环境中配置OSPF路由协议。
2 网络拓扑3 试验环境:网络中计算机和路由器的IP地址已经如图配置完成。
4 试验要求✓在Area0配置OSPF。
✓查看路由表。
✓检查OSPF协议的收敛速度。
5 基本配置步骤5.1在Router2上Router>enRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#router ospf 1Router(config-router)#network 192.168.0.0 0.0.0.3 area 0Router(config-router)#network 172.16.0.0 0.0.255.255 area 0Router(config-router)#ORRouter(config)#router ospf 1Router(config-router)#network 192.168.0.1 0.0.0.0 area 0Router(config-router)#network 172.16.0.1 0.0.0.0 area 0Router(config-router)#5.2在Route0上Router>enRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#router ospf 1Router(config-router)#network 192.168.0.0 0.0.0.3 area 0Router(config-router)#network 192.168.0.4 0.0.0.3 area 0Router(config-router)#network 192.168.0.12 0.0.0.3 area 0Router(config-router)#ex5.3在Router1上Router>enRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#router ospf 1Router(config-router)#network 192.168.0.0 0.0.0.255 area 05.4在Router4上Router>enRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#router ospf 1Router(config-router)#network 192.168.0.0 0.0.0.255 area 0Router(config-router)#network 172.18.0.0 0.0.255.255 area 05.5在Router3上Router>enRouter#config tRouter(config)#router ospf 1Router(config-router)#network 192.168.0.0 0.0.0.255 area 0Router(config-router)#network 172.17.0.0 0.0.255.255 area 0Router(config-router)#6 检查路由表6.1在Router3上Router#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setO 172.16.0.0/16 [110/1563] via 192.168.0.13, 00:01:15, Serial2/0C 172.17.0.0/16 is directly connected, FastEthernet0/0O 172.18.0.0/16 [110/782] via 192.168.0.17, 00:01:15, Serial3/0192.168.0.0/30 is subnetted, 5 subnetsO 192.168.0.0 [110/1562] via 192.168.0.13, 00:01:15, Serial2/0O 192.168.0.4 [110/1562] via 192.168.0.13, 00:01:15, Serial2/0O 192.168.0.8 [110/1562] via 192.168.0.17, 00:01:15, Serial3/0C 192.168.0.12 is directly connected, Serial2/0C 192.168.0.16 is directly connected, Serial3/0Router#6.2查看OSPF邻居Router#show ip ospf neighborNeighbor ID Pri State Dead Time Address Interface 192.168.0.13 1 FULL/- 00:00:39 192.168.0.13 Serial2/0 192.168.0.17 1 FULL/- 00:00:35 192.168.0.17 Serial3/0 Router#6.3查看OSPF数据Router#show ip ospf databaseOSPF Router with ID (192.168.0.18) (Process ID 1)Router Link States (Area 0)Link ID ADV Router Age Seq# Checksum Link count192.168.0.1 192.168.0.1 673 0x80000005 0x0082b6 3 192.168.0.9 192.168.0.9 317 0x80000004 0x004015 4 192.168.0.17 192.168.0.17 219 0x80000005 0x00dc82 5 192.168.0.13 192.168.0.13 214 0x80000006 0x00fbd0 6 192.168.0.18 192.168.0.18 200 0x80000005 0x0093be 5 7 测试OSPF收敛速度7.1在PC0上PC>tracert 172.17.0.2Tracing route to 172.17.0.2 over a maximum of 30 hops:1 6 ms 8 ms 7 ms 172.16.0.12 12 ms 11 ms 11 ms 192.168.0.23 13 ms 18 ms 15 ms 192.168.0.144 25 ms 28 ms 29 ms 172.17.0.2Trace complete.PC>可以看到数据包是通过Router2→Router0→Router37.2在Router3上Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface serial 2/0Router(config-if)#shutdown7.3在PC0上PC>tracert 172.17.0.2Tracing route to 172.17.0.2 over a maximum of 30 hops:1 9 ms 6 ms 7 ms 172.16.0.12 15 ms 11 ms 13 ms 192.168.0.23 14 ms 14 ms 16 ms 192.168.0.64 19 ms 22 ms 15 ms 192.168.0.105 26 ms 25 ms 29 ms 192.168.0.186 29 ms 30 ms 36 ms 172.17.0.2Trace complete.你可以看到数据包途径Router2→Router0→Router1→Router4→Router3。
OSPF单区域配置【学习日标】掌挥OSPF中Router ID 的配置方法掌握OSPF的配置力法掌握通过display命令查看OSPP运行状态的方法掌握使用OSPF发布缺省路由的方法掌握修改OSPF hello 和dead 时间的配置方法学握OSPF 路由优先级的修改力法【理论知识】OSPF是由IFIF 开发的基J链路状念的自治系统内部路由协议,用来代替RIP 路由协议自身的算法限.与距离矢量协议不同,链路状态路由协议使用Dijkstra 的最短路径优先算法计算和选择路由。
OSPF 协议在有组播发送能力的链路层上以组播地址发送协议包,即达到了节约资源的目的,有最大限度地减少了对其他网络设备的干扰.【实验拓扑】步骤1.按照实验拓扑图规划IP 地址步骤2。
配置OSPF 路由协议步骤3。
在OSPP中下发默认路由步骤4.查看R1的路由表、OSPP 邻居状态和链路状态数据库步骤5。
在R2上修改OSPF HELO和DEAD时间的配置方法并查看OSPF的邻居状态步骤6.修改OSPF 优先级控制DR BDR 的选举【操作步骤】步骤1。
按照实验拓扑图规划IP地址查看接口ip地址配置[Huawei] sysname R1[RI]int loo 0[R1-LoopBack0] ip add 1。
1。
1。
132[R1-LoopBack0] int g0/0/0[Rl—GigabitEthernet0/0/01ip add 12。
1。
1。
124[Huawei]sys R2[R2]int g0/0/0[R2-Gigabi tEthernet0/0/0]ip add 12.1.1.2 255.255。
255。
[R2-Gigabi tEthernet0/0/0]int loo 0[R2—LoopBack0] ip add 2.2。
2.2 32[R2-LoopBack0] int g0/0/1[R2-GigabitEthernet0/0/1] ip add 23。
实验1. 配置单区域OSPF 一、实验拓扑图,如图1.1所示:图1.1 OSPF实验拓扑图二、预配置:1.R1的预配置:R1(config)#no ip domain-loR1(config)#line 0R1(config-line)#no exec-tR1(config-line)#logg sR1(config-line)#int s2/1R1(config-if)#ip add 12.0.0.1 255.255.255.0R1(config-if)#no sh2.R2的预配置:R2(config)#no ip domain-loR2(config)#line 0R2(config-line)#no exec-tR2(config-line)#logg sR2(config-line)#int s2/1R2(config-if)#ip add 12.0.0.2 255.255.255.0R2(config-if)#no shR2(config-if)#int s2/2R2(config-if)#ip add 23.0.0.2 255.255.255.0R2(config-if)#no sh3.R3的预配置:R2(config)#no ip domain-loR2(config)#line 0R2(config-line)#no exec-tR2(config-line)#logg sR2(config-line)#int s2/1R2(config-if)#ip add 12.0.0.2 255.255.255.0R2(config-if)#no shR2(config-if)#int s2/2R2(config-if)#ip add 23.0.0.2 255.255.255.0R2(config-if)#no sh三、配置过程1.配置R1的OSPF协议:R1(config)#router ospf 1R1(config-router)#router-id 1.1.1.1R1(config-router)#network 12.0.0.0 0.0.0.255 a 02.配置R2的OSPF协议:R2(config)#router ospf 1R2(config-router)#router-id 2.2.2.2R2(config-router)#net 12.0.0.0 0.0.0.255 a 0R2(config-router)#net 23.0.0.0 0.0.0.255 a 03.配置R3的OSPF协议:R3(config)#router ospf 1R3(config-router)#router-id 3.3.3.3R3(config-router)#net 23.0.0.0 0.0.0.255 a 04.在R1上查看调试OSPF协议运行情况://查看OSPF接口信息R1(config-router)#do sh ip os in//S2/1接口位于区域0中Serial2/1 is up, line protocol is upInternet Address 12.0.0.1/24, Area 0//进程号位1,路由器ID为1.1.1.1,OSPF网络类型为点到点Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_POINT, Cost: 64Transmit Delay is 1 sec, State POINT_TO_POINT,//hello间隔10sec, dead间隔40sec,wait间隔40sec,重传间隔5secTimer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5oob-resync timeout 40//距离下次hello的时间Hello due in 00:00:05Index 1/1, flood queue length 0Next 0x0(0)/0x0(0)Last flood scan length is 1, maximum is 1Last flood scan time is 0 msec, maximum is 0 msec//与2.2.2.2建立邻接关系,邻居为1个Neighbor Count is 1, Adjacent neighbor count is 1Adjacent with neighbor 2.2.2.2Suppress hello for 0 neighbor(s)//查看OSPF邻居R1(config-router)#do sh ip os neNeighbor ID Pri State Dead Time Address Interface2.2.2.2 0 FULL/ - 00:00:38 12.0.0.2 Serial2/1//查看OSPF邻居的详细情况R1(config-router)#do sh ip os ne de//邻居的router id 为2.2.2.2,接口为S2/1,IP:12.0.0.2Neighbor 2.2.2.2, interface address 12.0.0.2In the area 0 via interface Serial2/1//已进入FULL状态Neighbor priority is 0, State is FULL, 6 state changes//在点到点网络中没有选举DR和BDRDR is 0.0.0.0 BDR is 0.0.0.0Options is 0x52LLS Options is 0x1 (LR)Dead timer due in 00:00:34Neighbor is up for 00:32:15Index 1/1, retransmission queue length 0, number of retransmission 1First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)Last retransmission scan length is 1, maximum is 1Last retransmission scan time is 0 msec, maximum is 0 msec //查看协议运行情况R1(config-router)#do sh ip pro//OSPF进程号位1Routing Protocol is "ospf 1"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setRouter ID 1.1.1.1Number of areas in this router is 1. 1 normal 0 stub 0 nssaMaximum path: 4Routing for Networks:12.0.0.0 0.0.0.255 area 0Routing Information Sources:Gateway Distance Last Update2.2.2.2 110 00:32:49Distance: (default is 110)//查看OSPF状态R1(config-router)#do sh ip os stat//在Area 0中,SPF算法已运行了4次Area 0: SPF algorithm executed 4 timesSPF calculation timeDelta T Intra D-Intra Summ D-Summ Ext D-Ext Total Reason00:36:09 0 0 0 0 0 0 0 R,00:35:17 0 0 0 0 0 0 0 R,00:35:07 0 0 0 0 0 0 4 R,00:34:19 0 0 0 0 0 0 4 R,//查看OSPF运行情况R1(config-router)#do sh ip ospf//OSPF进程号位1,router ID为1.1.1.1Routing Process "ospf 1" with ID 1.1.1.1Supports only single TOS(TOS0) routesSupports opaque LSASupports Link-local Signaling (LLS)//启动SPF的延时Initial SPF schedule delay 5000 msecsMinimum hold time between two consecutive SPFs 10000 msecsMaximum wait time between two consecutive SPFs 10000 msecsMinimum LSA interval 5 secs. Minimum LSA arrival 1 secsLSA group pacing timer 240 secsInterface flood pacing timer 33 msecsRetransmission pacing timer 66 msecsNumber of external LSA 0. Checksum Sum 0x000000Number of opaque AS LSA 0. Checksum Sum 0x000000Number of DCbitless external and opaque AS LSA 0Number of DoNotAge external and opaque AS LSA 0Number of areas in this router is 1. 1 normal 0 stub 0 nssaExternal flood list length 0Area BACKBONE(0)Number of interfaces in this area is 1Area has no authenticationSPF algorithm last executed 00:36:23.976 agoSPF algorithm executed 4 timesArea ranges areNumber of LSA 3. Checksum Sum 0x01A2C0Number of opaque link LSA 0. Checksum Sum 0x000000Number of DCbitless LSA 0Number of indication LSA 0Number of DoNotAge LSA 0Flood list length 05.查看OSPF路由表R1#sh ip routCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set23.0.0.0/24 is subnetted, 1 subnets//此处cost值为128,因为到达目的网络的cost为沿途cost之和,所以为64+64=128//一共学习到1条OSPF路由,为到达目的网络23.0.0.0O 23.0.0.0 [110/128] via 12.0.0.2, 01:01:23, Serial2/112.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected, Serial2/16.查看OSPF数据库R1#sh ip ospf databaseOSPF Router with ID (1.1.1.1) (Process ID 1)Router Link States (Area 0)Link ID ADV Router Age Seq# Checksum Link count1.1.1.1 1.1.1.1 101 0x80000004 0x00AFC8 22.2.2.2 2.2.2.2 2019 0x80000004 0x006E2A 43.3.3.3 3.3.3.3 1939 0x80000002 0x0082CF 2 7.在R3上查看路由学习情况R3(config-router)#do sh ip routCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set23.0.0.0/24 is subnetted, 1 subnetsC 23.0.0.0 is directly connected, Serial2/112.0.0.0/24 is subnetted, 1 subnets//通过OSPF学习到的路由,目的网络为12.0.0.0O 12.0.0.0 [110/128] via 23.0.0.2, 01:12:56, Serial2/1练习HelloInterval:在接口上传送相邻两个Hello数据包间的时间间隔,以Hello表示,是在Hello数据包中通告的,Cisco路由器在广播型网络中的默认值为10s,在非广播型网络中的默认值为30s,可以通过ip ospf hello-interval来改变RouterDeadInterval:在宣告邻居路由器无效之前,接收到邻居发送的Hello数据包的等待时间,以dead表示,同样是在Hello数据包中通告的,默认为HelloInterval的4倍,可以通过ip ospf dead-interval来修改Wait Timer:在开始选取DR/BDR之前,等待邻居发送Hello包通告DR/BDR 的时长,以Wait表示,与RouterDeadInterval时长相等RxmtInterval:在没有收到确认的情况下,路由器重传OSPF数据包的等待时长,以retransmit表示,Cisco默认为5s,可以通过ip ospf retransmit-interval来修改在OSPF网络中,同一链路的Hello间隔和Dead间隔必须一致才能建立邻接关系,默认时Dead间隔为Hello间隔的4倍。
任务8 配置单区域的OSPF协议一、【技术原理】1、OSPF(Open Shortest Path First开放式最短路径优先)是一种基于链路状态的内部网关路由协议(Interior Gateway Protocol,简称IGP)。
能对网络的变化作出快速的响应。
它是在网络变化时以触发的方式进行更新的,同时也定期(30分钟)更新整个链路状态。
2、当OSPF检测到网络发生变化时,产生链路状态通告(Link State Advertisement,LSA),LSA用组播的方式扩散到所有的邻近路由器,邻近路由器收到LSA后,用它来更新自己的链路状态数据库(Link State Database,LSDB),同时还把LSA扩散到别地路由器。
这样LSA被所有的路由器所接受,并且用来更新链路状态数据库。
3、利用链路状态数据库,路由器运行Diskjtra的最短路径(Shortest Path First,SPF)算法,在该区域中形成到所有目的的最短路径树,从这个最短路径树中形成了IP路由表。
在网络中发生的任何改变将会被链路状态分组扩散出去,同时使路由器利用这些新信息,重新计算最短路径树。
二、【任务描述】现在有两个公司,一个公司在北京,另一个公司在广州。
两个公司分别有一个局域网,分别通过一台路由器接入广域网(因特网),且两个公司的网络之间可能存在多条可达的路由。
现要在路由器上配置OSPF多区域路由协议,实现两个公司网络的互连。
三、【任务实现】1、规划拓扑结构2、参数配置过程OSPF配置的两个语句:□启动OSPF路由器协议进程。
语法:Router(config)#router ospf Process-ID说明:Process-ID为进程号,取值范围:1-65535□声明运行OSPF协议的路由器接口IP地址或子网地址。
语法:Router(config-router)#network A.B.C.D A.B.C.D area area-id说明:A.B.C.D为直连网段。
Packet Tracer 5.0建构CCNA实验攻略(10)——配置单区域OSPFOSPF(Open Shortest Path First开放式最短路径优先)是一个内部网关协议(Interior Gateway Protocol,简称IGP),用于在单一自治系统(autonomous system,AS)内决策路由。
OSPF协议比较复杂F version 2 RFC 2328标准文档长达224页,可以划分区域是OSPF能多适应大型复杂网络的一个特性,我们只借助完成单个area的简单配置。
一、配置实例拓扑图图一二、OSPF配置基本命令Router(config)#router ospf 1Router(config-router)#network 192.168.1.0 0.0.0.255 area 0Router(config-router)#router-id 10.1.1.1三、OSPF配置实例1、路由器基本配置图二以Router1为例介绍网络中各个路由器的基本配置2、启动OSPF图三图四Router1的OSPF配置图五Router2的OSPF配置图六Router3的OSPF配置图七Router4的OSPF配置图八查看路由器中的路由表3、校验、诊断图九show ip protocol查看路由器中所启用的路由计算协议图十show ip ospf图十一show ip ospf interface图十二图十三show ip ospf neighbor想看邻居图十四show ip ospf database图十五debug ip ospf events开启诊断,no debug ip ospf events关闭诊断图十六pc2 ping 通所有网段内的计算机或路由器在这里只能进行最为简单的OSPF配置了,可以完成CCNA的实验。
1.实验目的1.掌握OSPF协议的基本原理和配置;2.熟悉DR的选举原理和配置;3.了解多区域OSPF的原理和配置;4.尝试根据协议原理设计实验过程;5.利用现有的链接完成图示的物理链接2.实验环境(软件条件、硬件条件等)3台MSR3040路由器、一台MSR5060路由器、3台S3610交换机、12台pc;3.实验原理与方法(架构图、流程图等)【OSPF协议】OSPF(Open Shortest Path First开放式最短路径优先)[1]是一个内部网关协议(Interior Gateway Protocol,简称IGP),用于在单一自治系统(autonomous system,AS)内决策路由。
OSPF路由协议是一种典型的链路状态(Link-state)的路由协议,一般用于同一个路由域内。
在这里,路由域是指一个自治系统(Autonomous System),即AS,它是指一组通过统一的路由政策或路由协议互相交换路由信息的网络。
在这个AS中,所有的OSPF路由器都维护一个相同的描述这个AS结构的数据库,该数据库中存放的是路由域中相应链路的状态信息,OSPF路由器正是通过这个数据库计算出其OSPF路由表的。
作为一种链路状态的路由协议,OSPF将链路状态广播数据包LSA(Link State Advertisement)传送给在某一区域内的所有路由器,这一点与距离矢量路由协议不同。
运行距离矢量路由协议的路由器是将部分或全部的路由表传递给与其相邻的路由器。
【OSPF邻居关系】邻接关系建立的4个阶段:1.邻居发现阶段2.双向通信阶段:Hello报文都列出了对方的RID,则BC完成.3.数据库同步阶段:4.完全邻接阶段: full adjacency邻居关系的建立和维持都是靠Hello包完成的,在一般的网络类型中,Hello包是每经过1个HelloInterval发送一次,有1个例外:在NBMA网络中,路由器每经过一个PollInterval 周期发送Hello包给状态为down的邻居(其他类型的网络是不会把Hello包发送给状态为down的路由器的).Cisco路由器上PollInterval默认60s Hello Packet以组播的方式发送给224.0.0.5,在NBMA类型,点到多点和虚链路类型网络,以单播发送给邻居路由器。
将路由器连接起来如下图:接下来是为路由器添加模块(注意要关电添加):下面配置路由器A的接口IP:Router#Router#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#inRouter(config)#interface seRouter(config)#interface serial 1/1Router(config-if)#ip adRouter(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#coRouter(config-if)#clRouter(config-if)#clock ?rate Configure serial interface clock speedRouter(config-if)#clock raRouter(config-if)#clock rate 64000Router(config-if)#no shRouter(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial1/1, changed state to downRouter(config-if)#%LINK-5-CHANGED: Interface Serial1/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up00:14:54: %OSPF-5-ADJCHG: Process 2, Nbr 10.10.11.1 on Serial1/1 from LOADING to FULL, Loading DoneRouter(config-if)#下面配置路由器B的接口IP:Router#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#inRouter(config)#interface se 1/0Router(config-if)#ip adRouter(config-if)#ip address 192.168.1.2 255.255.255.0Router(config-if)#no shRouter(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial1/0, changed state to upRouter(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up01:07:29: %OSPF-5-ADJCHG: Process 2, Nbr 10.10.10.1 on Serial1/0 from LOADING to FULL, Loading DoneRouter(config-if)#接下来进行路由器A环回接口的配置:Router>enRouter#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#inRouter(config)#interface loRouter(config)#interface loopback ?<0-2147483647> Loopback interface numberRouter(config)#interface loopback 0%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upRouter(config-if)#ip adRouter(config-if)#ip address 10.10.10.1 255.255.255.0Router(config-if)#下一步进行路由器B环回接口的配置:Router>enRouter#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#in lo 0%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upRouter(config-if)#ip add 10.10.11.1 255.255.255.0Router(config-if)#验证路由器A的接口配置:Router#sh interfaces loopback 0Loopback0 is up, line protocol is up (connected)Hardware is LoopbackInternet address is 10.10.10.1/24MTU 1514 bytes, BW 8000000 Kbit, DLY 5000 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation LOOPBACK, loopback not setLast input never, output never, output hang neverLast clearing of "show interface" counters neverQueueing strategy: fifoOutput queue 0/0, 0 drops; input queue 0/75, 0 drops5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no bufferReceived 0 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 input packets with dribble condition detected0 packets output, 0 bytes, 0 underruns0 output errors, 0 collisions, 0 interface resets0 babbles, 0 late collision, 0 deferred0 lost carrier, 0 no carrier0 output buffer failures, 0 output buffers s outRouter#验证路由器B的接口配置:Router#sh interfaces loopback 0Loopback0 is up, line protocol is up (connected)Hardware is LoopbackInternet address is 10.10.11.1/24MTU 1514 bytes, BW 8000000 Kbit, DLY 5000 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation LOOPBACK, loopback not setLast input never, output never, output hang neverLast clearing of "show interface" counters neverQueueing strategy: fifoOutput queue 0/0, 0 drops; input queue 0/75, 0 drops5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no bufferReceived 0 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 input packets with dribble condition detected0 packets output, 0 bytes, 0 underruns0 output errors, 0 collisions, 0 interface resets0 babbles, 0 late collision, 0 deferred0 lost carrier, 0 no carrier0 output buffer failures, 0 output buffers s outRouter#继续进行路由器A的OSPF的配置:Router#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#roRouter(config)#router osfRouter(config)#router osRouter(config)#router ospf ?<1-65535> Process IDRouter(config)#router ospf 2Router(config-router)#netRouter(config-router)#network 10.10.10.0 0.0.0.255 arRouter(config-router)#network 10.10.10.0 0.0.0.255 area 0Router(config-router)#network 192.168.1.0 0.0.0.255 area 0Router(config-router)#继续进行路由器B的OSPF的配置:Router#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#roRouter(config)#router osRouter(config)#router ospf% Incomplete command.Router(config)#router ospf 2Router(config-router)#net 10.10.10.11 0.0.0.255 area 0Router(config-router)#net 192.168.1.0 0.0.0.255 area 0Router(config-router)#查看路由器A的路由表:Router#sh ip roCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not set10.0.0.0/24 is subnetted, 1 subnetsC 10.10.10.0 is directly connected, Loopback0C 192.168.1.0/24 is directly connected, Serial1/1Router#查看路由器B的路由表:Router#sh ip roCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not set10.0.0.0/8 is variably subnetted, 2 subnets, 2 masksO 10.10.10.1/32 [110/782] via 192.168.1.1, 00:04:25, Serial1/0C 10.10.11.0/24 is directly connected, Loopback0C 192.168.1.0/24 is directly connected, Serial1/0路由器Aping路由器B:通。