OSPF综合实验大全

上传人:仙*** 文档编号:140243306 上传时间:2022-08-23 格式:DOC 页数:46 大小:298.50KB
收藏 版权申诉 举报 下载
OSPF综合实验大全_第1页
第1页 / 共46页
OSPF综合实验大全_第2页
第2页 / 共46页
OSPF综合实验大全_第3页
第3页 / 共46页
资源描述:

《OSPF综合实验大全》由会员分享,可在线阅读,更多相关《OSPF综合实验大全(46页珍藏版)》请在装配图网上搜索。

1、OSPF综合实验大全OSPF实验1:根本的OSPF配置实验级别:Assistant实验拓扑:实验步骤:1.首先在3台路由器上配置物理接口,并且使用ping命令确保物理链路的畅通。2.在路由器上配置loopback接口:R1(config)#int loopback 0R1(config-if)#ip add 1.1.1.1 255.255.255.0R2(config)#int loopback 0R2(config-if)#ip add 2.2.2.2 255.255.255.0R3(config)#int loopback 0R3(config-if)#ip add 3.3.3.3 255

2、.255.255.0路由器的RID是路由器接口的最高的IP地址,当有环回口存在是,路由器将使用环回口的最高IP地址作为起RID,从而保证RID的稳定。3在3台路由器上分别启动ospf进程,并且宣告直连接口的网络。R1(config)#router ospf10R1(config-router)#network 192.168.1.00.0.0.255area 0R1(config-router)#network 1.1.1.0 0.0.0.255 area 0R1(config-router)#network 192.168.3.0.0.0.255 area 0ospf的进程号只有本地意义,既

3、在不同路由器上的进程号可以不一样。但是为了日后维护的方便,一般启用一样的进程号。ospf使用反向掩码。Area 0表示骨干区域,在设计ospf网络时,所有的非骨干区域都需要和骨干区域直连!R2,R3的配置和R1类似,这里省略。不同的是我们在R2和R3上不宣告各自的环回口。*Aug 13 17:58:51.411: %OSPF-5-ADJCHG: Process 10, Nbr 2.2.2.2 on Serial1/0 from LOADING to FULL, Loading Done配置完毕后,我们可以看到邻居关系已经到达FULL状态。4.在R1上查看路由表,可以看到以下信息:R1#show

4、 ip route Codes: 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, L

5、2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route Gateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnets C1.1.1.0 is directly connected, Loopback0 C192.168.1.0/24 is directly connected, Serial1/0 O192.1

6、68.2.0/24 110/65 via 192.168.1.2, 00:03:42, Serial1/0 C192.168.3.0/24 is directly connected, FastEthernet0/ 我们看到R1学到了192.168.2.0/24这个网段的路由。后面的数字110/65,分别表示OSPF的管理距离AD和路由的Metric值OSPF的Metric值是由cost值逐跳累加的。Cost=100Mb/带宽值。5.在R1上show ip ospf neighbor、show ip ospf interface R1#show ip ospf neighborNeighbor

7、 IDPriStateDead TimeAddressInterface3.3.3.31FULL/BDR00:00:34192.168.3.3FastEthernet0/02.2.2.20FULL/-00:00:32192.168.1.2Serial1/0我们看到R1和R3选取了DR和BDR,而R1和R2没有选取。在ospf的五种网络类型中。Point-to-Point,Point-to-Multipoint(播送与非播送)这三种网络类型不选取DR与BDR; Broadcast,NBMA选取DR与BDR。R1#show ip ospf interfaceFastEthernet0/0 is u

8、p, line protocol is upInternet Address 192.168.3.1/24, Area 0Process ID 10, Router ID 1.1.1.1,Network Type BROADCAST, Cost: 1Transmit Delay is 1 sec, State DR, Priority 1Designated Router (ID) 1.1.1.1, Interface address 192.168.3.1Backup Designated router (ID) 3.3.3.3, Interface address 192.168.3.3T

9、imer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5oob-resync timeout 40Hello due in 00:00:03Index 3/3, 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 msecNeighbor Count is 1, Adjacent neighbor count is 1Adj

10、acent with neighbor 3.3.3.3(Backup Designated Router)Suppress hello for 0 neighbor(s)Serial1/0 is up, line protocol is upInternet Address 192.168.1.1/24, Area 0Process ID 10, Router ID 1.1.1.1,Network Type POINT_TO_POINT, Cost: 64Transmit Delay is 1 sec, State POINT_TO_POINT,Timer intervals configur

11、ed, Hello 10, Dead 40, Wait 40, Retransmit 5oob-resync timeout 40Hello due in 00:00:02Index 1/1, flood queue length 0Next 0x0(0)/0x0(0)Last flood scan length is 1, maximum is 1Last flood scan time is 4 msec, maximum is 4 msecNeighbor Count is 1, Adjacent neighbor count is 1Adjacent with neighbor 2.2

12、.2.2Suppress hello for 0 neighbor(s)Loopback0 is up, line protocol is upInternet Address 1.1.1.1/24, Area 0Process ID 10, Router ID 1.1.1.1,Network Type LOOPBACK, Cost: 1Loopback interface is treated as astub Host在这里我们看到环回口的网络网络类型是Loopback,这是一种特殊的网络类型,只针对环回口存在。我们到R2上看看路由表:R2#show ip routeCodes: C -

13、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 -

14、 IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsO1.1.1.1 110/65 via 192.168.1.1, 00:12:34, Serial1/02.0.0.0/24 is subnetted, 1 subnetsC2.2.2.0 is directly connected, Loo

15、pback0C192.168.1.0/24 is directly connected, Serial1/0C192.168.2.0/24 is directly connected, Serial1/1O192.168.3.0/24 110/65 via 192.168.1.1, 00:12:34, Serial1/0110/65 via 192.168.2.3, 00:12:34, Serial1/1R2的路由表显示来自环回口的路由,掩码为/32,既我们所说的“主机路由。在实际应用中,环回口以32位的居多,用作ospf的管理接口。但是如果你想让环回口模拟一个网段,我们可以通过以下配置来消除

16、。R1(config)#int loopback 0R1(config-if)#ip ospf network point-to-point环回口只能配置成point-to-point这种类型,不可以配置成其它的类型。回到R2查看路由表:R2#show ip routeCodes: 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

17、 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 set1.0.0.0/2

18、4 is subnetted, 1 subnetsO1.1.1.0 110/65 via 192.168.1.1, 00:00:24, Serial1/02.0.0.0/24 is subnetted, 1 subnetsC2.2.2.0 is directly connected, Loopback0C192.168.1.0/24 is directly connected, Serial1/0C192.168.2.0/24 is directly connected, Serial1/1O192.168.3.0/24 110/65 via 192.168.1.1, 00:00:24, Se

19、rial1/0110/65 via 192.168.2.3, 00:00:24, Serial1/1我们看到主机路由没有了,取而代之的是一个/24的网段。本文出自 “盖如鹤的步徒 博客,请务必保存此出处 :/gairuhe.blog.51cto /77728/38127OSPF实验2:DR/BDR的选取实验级别:Professional情况一: 我们都知道OSPF选取DR的过程是首先比较优先级,在优先级一样的情况下选择RID较高的为DR,但是我屡次实验后发现在很多时候DR并非RID最高的路由器,这是什么原因呢? 在翻阅了卷一有关OSPF DR选取的介绍时,发现了这么一句话:“在一个多址网络上,

20、最先初始化启动的两台具有DR选取资格的路由器将成为DR和BDR路由器。这是我总结了非最高RID而成为DR的实验,发现这些路由器都是我在进展OSPF配置的时候首先启动ospf的路由器,那会不会是因为这些路由器首先启动了OSPF,然后把自己设置为DR导致其他路由器启动OSPF后就不再进展DR的选取了呢?于是我做了下面的这个实验。 实验的topo很简单,我就不画了,就是两台路由器通过fa0/0口相连接。R1:conf tho R1int lo0ip add 1.1.1.1 255.255.255.0int fa0/0ip add 172.1.1.1 255.255.255.0no shrouter

21、ospf 10net 172.1.1.1 0.0.0.0 a 0R2:conf tho R2int lo0ip add 2.2.2.2 255.255.255.0int fa0/0ip add 172.1.1.2 255.255.255.0no shR1启动ospf进程后,我们在R2上暂时先不开启ospf,在R1上发现了以下信息:R1#sho ip ospf intFastEthernet0/0 is up, line protocol is up Internet Address 172.1.1.1/24, Area 0 Process ID 10, Router ID 1.1.1.1, N

22、etwork Type BROADCAST, Cost: 1 Transmit Delay is 1 sec,State DR, Priority 1 Designated Router (ID) 1.1.1.1, Interface address 172.1.1.1 No backup designated router on this network Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:01 Index 1

23、/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 0, maximum is 0 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s) 我们看到R1已经把自己设定为DR了,按照OSPF的规那么,新参加的路由器即使RID比DR高,也不会替换DR。这就说明了为什么在有些时候DR并非RID最高的路由器。

24、 当然这个实验也顺便验证了ospf中DR选取完毕后,除非DR路由器出现故障,否那么就是有更高优先级或者RID的路由器进入OSPF进程,也是无法改变DR的。既DR是不可以抢夺的!情况二本实验参照了ITAA实验室Netfish的实验: ospf中有一个Wait Timer计时器,在这个计时器所限定的时间内起来的OSPF可以视为同时起机。 TCP/IP卷1第292页对于这个时间间隔是这样定义的: Wait Timer:在开场选举DR和BDR之间,路由器等待邻居路由器的Hello数据包通告DR和BDR的时长。长度就是RouterDeadInterval的时间。 本实验拓扑与情况一一样,不同的地方在于当

25、我们在R1上启动OSPF后,迅速一定要迅速,非常迅速!40s之内在R2上也启动ospf,通过debug信息可以看到以下情况:R1#debug ip ospf adjOSPF adjacency events debugging is onR1#debug ip ospf evOSPF events debugging is on*Aug 14 00:56:19.047: OSPF: Interface FastEthernet0/0 going Up*Aug 14 00:56:19.051: OSPF: Send hello to 224.0.0.5 area 0 on FastEtherne

26、t0/0 from 172.1.1.1*Aug 14 00:56:19.551: OSPF: Build router LSA for area 0, router ID 1.1.1.1, seq 0x80000001*Aug 14 00:56:19.555: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/0 172.1.1.2*Aug 14 00:56:19.555: OSPF: End of hello processingR1(config-router)#*Aug 14 00:56:29.051: OSPF: Send h

27、ello to 224.0.0.5 area 0 on FastEthernet0/0 from 172.1.1.1*Aug 14 00:56:29.451: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/0 172.1.1.2*Aug 14 00:56:29.455: OSPF: 2 Way Communication to 2.2.2.2 on FastEthernet0/0, state 2WAY*Aug 14 00:56:29.455: OSPF: End of hello processingR1(config-rout

28、er)#*Aug 14 00:56:39.051: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 172.1.1.1*Aug 14 00:56:39.427: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/0 172.1.1.2*Aug 14 00:56:39.427: OSPF: End of hello processingR1(config-router)#*Aug 14 00:56:49.051: OSPF: Send hello to 224.0

29、.0.5 area 0 on FastEthernet0/0 from 172.1.1.1*Aug 14 00:56:49.447: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/0 172.1.1.2*Aug 14 00:56:49.447: OSPF: End of hello processingR1(config-router)#*Aug 14 00:56:59.051: OSPF: end of Wait on interface FastEthernet0/0*Aug 14 00:56:59.051: OSPF: DR

30、/BDR election on FastEthernet0/0*Aug 14 00:56:59.051: OSPF: Elect BDR 2.2.2.2*Aug 14 00:56:59.055: OSPF: Elect DR 2.2.2.2*Aug 14 00:56:59.055: DR: 2.2.2.2 (Id) BDR: 2.2.2.2 (Id)*Aug 14 00:56:59.055: OSPF: Send DBD to 2.2.2.2 on FastEthernet0/0 seq 0x826 opt 0x52 flag 0x7 len 32*Aug 14 00:56:59.059:

31、OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 172.1.1.1*Aug 14 00:56:59.459: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/0 172.1.1.2*Aug 14 00:56:59.463: OSPF: Neighbor change Event on interface FastEthernet0/0*Aug 14 00:56:59.463: OSPF: DR/BDR election on FastEthernet0/0*A

32、ug 14 00:56:59.463: OSPF: Elect BDR 1.1.1.1*Aug 14 00:56:59.467: OSPF: Elect DR 2.2.2.2*Aug 14 00:56:59.467: OSPF: Elect BDR 1.1.1.1*Aug 14 00:56:59.467: OSPF: Elect DR 2.2.2.2*Aug 14 00:56:59.471: DR: 2.2.2.2 (Id) BDR: 1.1.1.1 (Id)这个时候我们发现两个路由器进展了DR/BDR的选取,并且结论和书上介绍的完全一致。从Debug信息的时间上来看,从启动OSPF进程到开场

33、选举DR和DBR的时间间隔是40秒,在这个时间段内,无论R1还是R2并没有选举DR和DBR。在RFC2328中对这个时间间隔的定义如下:Wait Timer A single shot timer that causes the interface to exit the Waiting state, and as a consequence select a Designated Router on the network. The length of the timer is RouterDeadInterval seconds.因为在播送链路中的RouterDeadInterval是40

34、秒,所以我们看到的这个时间间隔为40秒。结论: 并不是先启动OSPF进程的路由器就是DR,而是有一个时间间隔让路由器来等待其他路由器,在这个时间间隔内,路由器相互监听Hello包中的DR和DBR字段中的信息,并且服从优先级原那么,可以这样认为选举是公平的。实际情况: 在实际的网络中,即使是40秒内同时起进程的情况也少见;实际情况下是率先启用ospf进程的路由器就很有可能成为DR,第二个启动的就很有可能成为BDR,考虑到路由器故障或者重启等情况,实际的运行效果是:“活得最久的路由器成为DR比多长时间不重起 .OSPF实验3:OSPF over NBMA下的五种网络类型实验等级:Professio

35、nal实验拓扑:实验根本配置:1.首先将R1配置成为帧中继交换机:frame-relay switching!interface Serial1/0no ip addressencapsulation frame-relayclock rate 64000frame-relay lmi-type ansiframe-relay intf-type dceframe-relay route 101 interface Serial1/1 102!interface Serial1/1no ip addressencapsulation frame-relayclock rate 64000fra

36、me-relay lmi-type ansiframe-relay intf-type dceframe-relay route 102 interface Serial1/0 1012.R2和R3的根本配置:R2:interface Loopback0ip address 2.2.2.2 255.255.255.0!interface Serial1/0ip address 12.1.1.2 255.255.255.0encapsulation frame-relayserial restart-delay 0frame-relay map ip 12.1.1.3 101 broadcast

37、no frame-relay inverse-arp!router ospf 10router-id 2.2.2.2log-adjacency-changesnetwork 2.2.2.0 0.0.0.255 area 0network 12.1.1.0 0.0.0.255 area 0R3:interface Loopback0ip address 3.3.3.3 255.255.255.0!interface Serial1/1ip address 12.1.1.3 255.255.255.0encapsulation frame-relayserial restart-delay 0fr

38、ame-relay map ip 12.1.1.2 102 broadcastno frame-relay inverse-arp!router ospf 10router-id 3.3.3.3log-adjacency-changesnetwork 3.3.3.0 0.0.0.255 area 0network 12.1.1.0 0.0.0.255 area 0Type1-Non_Broadcast默认我们在R2上show ip ospf neighbor,发现没有邻居。说明在这种情况下邻居需要手动配置!配置如下:R2:R2(config)#router ospf 10R2(config-r

39、outer)#neighbor 12.1.1.3R3:R3(config)#router ospf 10R3(config-router)#neighbor 12.1.1.2此时在R2上查看邻居:R2#sho ip ospf neiNeighbor IDPriStateDead TimeAddressInterface3.3.3.31FULL/DR00:01:4612.1.1.3Serial1/0发现邻居已经形成并且有DR与BDR的选举!在R2上查看接口R2#show ip ospf interfaceSerial1/0 is up, line protocol is upInternet A

40、ddress 12.1.1.2/24, Area 0Process ID 10, Router ID 2.2.2.2,Network Type NON_BROADCAST,Cost: 64Transmit Delay is 1 sec, State BDR, Priority 1Designated Router (ID) 3.3.3.3, Interface address 12.1.1.3Backup Designated router (ID) 2.2.2.2, Interface address 12.1.1.2Flush timer for old DR LSA due in 00:

41、01:40Timer intervals configured,Hello 30, Dead 120, Wait 120, Retransmit 5在这种网络类型中,hello的间隔是30s。翻开debug信息,我们可以看到在这种网络类型中,OSPF的数据包是单播传送的。R2#*Aug 14 14:52:52.819: OSPF: Send hello to12.1.1.3area 0 on Serial1/0 from 12.1.1.2R2#*Aug 14 14:52:57.087: OSPF: Rcv hello from 3.3.3.3 area 0 from Serial1/0 12.

42、1.1.3*Aug 14 14:52:57.091: OSPF: End of hello processingType2- Broadcast首先去掉刚刚手动配置的邻居关系:R2(config)#router ospf 10R2(config-router)#no neighbor 12.1.1.3R3(config)#router ospf 10R3(config-router)#no neighbor 12.1.1.2将R2和R3接口的网络类型改成broadcastR2(config-router)#int s1/0R2(config-if)#ip ospf network broadc

43、astR3(config-router)#int s1/1R3(config-if)#ip ospf network broadcast一会我们就看到了如下信息R3#*Aug 14 14:59:52.823: %OSPF-5-ADJCHG: Process 10, Nbr 2.2.2.2 on Serial1/1 fromLOADING to FULL, Loading Done这说明了在这种网络类型下是不需要手动配置邻居关系的!R2#show ip ospf neiNeighbor IDPriStateDead TimeAddressInterface3.3.3.31FULL/DR00:00

44、:3912.1.1.3Serial1/0有DR与BDR的选举。R2#sho ip ospf intSerial1/0 is up, line protocol is upInternet Address 12.1.1.2/24, Area 0Process ID 10, Router ID 2.2.2.2,Network Type BROADCAST, Cost: 64Transmit Delay is 1 sec, State BDR, Priority 1Designated Router (ID) 3.3.3.3, Interface address 12.1.1.3Backup Des

45、ignated router (ID) 2.2.2.2, Interface address 12.1.1.2Timer intervals configured,Hello 10, Dead 40, Wait 40, Retransmit 5Hello时间间隔为10s。R2#*Aug 14 15:02:20.443: OSPF: Send hello to224.0.0.5area 0 on Serial1/0 from 12.1.1.2*Aug 14 15:02:20.959: OSPF: Rcv hello from 3.3.3.3 area 0 from Serial1/0 12.1.

46、1.3*Aug 14 15:02:20.963: OSPF: End of hello processing使用224.0.0.5这个组播地址传送数据包。Type3- Point-to-Point将R2,R3接口的网络类型改成Point-to-PointR2(config-if)#ip ospf net point-to-pointR3(config-if)#ip ospf net point-to-point很快我们就可以看到如下信息R3(config-if)#*Aug 14 15:06:07.559: %OSPF-5-ADJCHG: Process 10, Nbr 2.2.2.2 on S

47、erial1/1 fromLOADING to FULL, Loading Done说明这种网络类型也不需要手动指定邻居R2#sho ip ospf neiNeighbor IDPriStateDead TimeAddressInterface3.3.3.30FULL/-00:00:3712.1.1.3Serial1/0没有DR/BDR的选举R2#sh ip ospf intSerial1/0 is up, line protocol is upInternet Address 12.1.1.2/24, Area 0Process ID 10, Router ID 2.2.2.2, Netwo

48、rk Type POINT_TO_POINT, Cost: 64Transmit Delay is 1 sec, State POINT_TO_POINT,Timer intervals configured,Hello 10, Dead 40, Wait 40, Retransmit 5Hello时间间隔为10sR2#*Aug 14 15:08:25.311: OSPF: Send hello to224.0.0.5area 0 on Serial1/0 from 12.1.1.2R2#*Aug 14 15:08:30.259: OSPF: Rcv hello from 3.3.3.3 ar

49、ea 0 from Serial1/0 12.1.1.3*Aug 14 15:08:30.263: OSPF: End of hello processing同样也是使用224.0.0.5这个组播地址传送数据。Type4- Point-to-Multipoint将接口改为Point-to-MultipointR2(config-if)#ip ospf network point-to-multipointR3(config-if)#ip ospf network point-to-multipoint*Aug 14 15:10:51.739: %OSPF-5-ADJCHG: Process 1

50、0, Nbr 2.2.2.2 on Serial1/1 fromLOADING to FULL, Loading Done同样也不需要手动指定邻居R2#sho ip ospf neiNeighbor IDPriStateDead TimeAddressInterface3.3.3.30FULL/-00:01:4812.1.1.3Serial1/0没有DR和BDR的选举R2#sho ip ospf intSerial1/0 is up, line protocol is upInternet Address 12.1.1.2/24, Area 0Process ID 10, Router ID

51、2.2.2.2,Network Type POINT_TO_MULTIPOINT, Cost: 64Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT,Timer intervals configured,Hello 30, Dead 120, Wait 120, Retransmit 5Hello时间间隔为30sR2#*Aug 14 15:12:49.759: OSPF: Send hello to224.0.0.5area 0 on Serial1/0 from 12.1.1.2R2#*Aug 14 15:12:57.443: OSPF:

52、Rcv hello from 3.3.3.3 area 0 from Serial1/0 12.1.1.3*Aug 14 15:12:57.447: OSPF: End of hello processing以224.0.0.5这个组播地址发送数据Type5- Point-to-MultipointNon_Broadcast改变接口类型为Point-to-Multipoint(Non_Broadcast)R2(config-if)#ip ospf network point-to-multipoint non-broadcastR3(config-if)#ip ospf network poi

53、nt-to-multipoint non-broadcast这个时候邻居没有被自动发现。我们在R2上手动指定邻居R2(config-if)#router ospf 10R2(config-router)#neighbor 12.1.1.3R2(config-router)#*Aug 14 15:18:38.955: %OSPF-5-ADJCHG: Process 10, Nbr 3.3.3.3 on Serial1/0 from LOADING to FULL, Loading Done邻居只要在一边指定即可。说明在这种网络类型下邻居需要手动指定。R2#sho ip ospf neiNeigh

54、bor IDPriStateDead TimeAddressInterface3.3.3.30FULL/-00:01:5712.1.1.3Serial1/0同样没有DR和BDR的选取R2#sho ip ospf intSerial1/0 is up, line protocol is upInternet Address 12.1.1.2/24, Area 0Process ID 10, Router ID 2.2.2.2,Network Type POINT_TO_MULTIPOINT, Cost: 64Transmit Delay is 1 sec, State POINT_TO_MULT

55、IPOINT,Timer intervals configured,Hello 30, Dead 120, Wait 120, Retransmit 5Hello时间间隔为30sR2#*Aug 14 15:21:03.099: OSPF: Send hello to12.1.1.3area 0 on Serial1/0 from 12.1.1.2*Aug 14 15:21:03.295: OSPF: Rcv hello from 3.3.3.3 area 0 from Serial1/0 12.1.1.3*Aug 14 15:21:03.299: OSPF: End of hello proc

56、essing使用单播传送OSPF数据。总结:在NBMA网络下5种网络类型具体情况如下表所示:网络类型邻居自动发现有无DR选举Hello间隔传输方式Non_broadcast否有30s单播Broadcast是有10s组播Point-to-Point是无10s组播Point-to-Multipoint是无30s组播Point-to-Multipoint(非播送)否无30s单播本文出自 “盖如鹤的步徒 博客,请务必保存此出处 :/gairuhe.blog.51cto /77728/38241OSPF实验4:虚链路实验等级:Professional实验拓扑:实验分析:上面这个网络的设计在OSPF中是比

57、较失败的,因为OSPF建议所有的非骨干区域都和骨干区域直连。上面这个网络的设计将会导致Area2的数据和Area0无法通信。为了解决这个问题,一种方法可以在R3和R1上增加一条物理链路。还有一种过渡的方法就是使用虚链路。实验根本配置:R1:interface Loopback0ip address 1.1.1.1 255.255.255.0ip ospf network point-to-point!interface Serial1/0ip address 10.1.1.1 255.255.255.0serial restart-delay 0!router ospf 10router-id

58、 1.1.1.1log-adjacency-changesnetwork 10.1.1.0 0.0.0.255 area 0R2:interface Loopback0ip address 2.2.2.2 255.255.255.0!interface Serial1/0ip address 10.1.1.2 255.255.255.0serial restart-delay 0!interface Serial1/1ip address 11.1.1.1 255.255.255.0serial restart-delay 0!router ospf 10router-id 2.2.2.2log-adjacency-changesnetwork 10.1.1.0 0.0.0.255 area 0network 11.1.1.0 0.0.0.255 area 1R3:interface Loopback0ip address 3.3.3.3 255.255.255.0!interface Serial1/0ip address 11.1.1.2 255.255.255.0serial restart-delay 0!router ospf 10router-id 3.3.3.3log-adja

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