《神州数码配置OSPF网络类型.doc》由会员分享,可在线阅读,更多相关《神州数码配置OSPF网络类型.doc(5页珍藏版)》请在金锄头文库上搜索。
1、神州数码配置OSPF网络类型配置OSPF网络类型实验目的:了解如何更改OSPF网络类型实验拓扑图:基本配置R1(config)#int s3/0R1(config-if)#en frR1(config-if)#no frame-relay invR1(config-if)#frame-relay map ip 192.168.0.2 102 bR1(config-if)#ip ad 192.168.0.1 255.255.255.0R1(config-if)#no shR2(config)#int s3/0R2(config-if)#en frR2(config-if)#no frame-re
2、lay invR2(config-if)#ip ad 192.168.0.2 255.255.255.0R2(config-if)#no shR2(config-if)#frame-relay map ip 192.168.0.1 201 bR1#show frame-relay mapSerial3/0 (up): ip 192.168.0.2 dlci 102(0x66,0x1860), static, broadcast, CISCO, status defined, activeR1#ping 192.168.0.2Type escape sequence to abort.Sendi
3、ng 5, 100-byte ICMP Echos to 192.168.0.2, timeout is 2 seconds:!配置OSPF协议R1(config)#router ospf 10R1(config-router)#net 192.168.0.0 0.0.0.255 a 0R1(config-router)#ZR2(config)#router ospf 10R2(config-router)#net 192.168.0.0 0.0.0.255 a 0R2(config-router)#ZR1#show ip ospf interface Serial3/0 is up, lin
4、e protocol is up Internet Address 192.168.0.1/24, Area 0 Process ID 10, Router ID 192.168.0.1, Network Type NON_BROADCAST, Cost: 64 Transmit Delay is 1 sec, State WAITING, Priority 1 No designated router on this network No backup designated router on this network Timer intervals configured, Hello 30
5、, Dead 120, Wait 120, Retransmit 5 oob-resync timeout 120 Hello due in 00:00:28 Wait time before Designated router selection 00:01:28 Index 1/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, Ad
6、jacent neighbor count is 0 Suppress hello for 0 neighbor(s)把R1、R2的OSPF接口网络类型更改为广播类型R1(config)#int s3/0R1(config-if)#ip ospf network broadcastR2(config)#int s3/0R2(config-if)#ip ospf network broadcastR1#debug ip ospf adjOSPF adjacency events debugging is onR1#*Jul 16 20:36:46.423: OSPF: Neighbor chan
7、ge Event on interface Serial3/0*Jul 16 20:36:46.427: OSPF: DR/BDR election on Serial3/0 *Jul 16 20:36:46.427: OSPF: Elect BDR 192.168.0.1*Jul 16 20:36:46.431: OSPF: Elect DR 192.168.0.2*Jul 16 20:36:46.431: OSPF: Elect BDR 192.168.0.1*Jul 16 20:36:46.431: OSPF: Elect DR 192.168.0.2*Jul 16 20:36:46.4
8、31: DR: 192.168.0.2 (Id) BDR: 192.168.0.1 (Id)*Jul 16 20:36:46.435: OSPF: Neighbor change Event on interface Serial3/0*Jul 16 20:36:46.439: OSPF: DR/BDR election on Serial3/0 *Jul 16 20:36:46.439: OSPF: Elect BDR 192.168.0.1*Jul 16 20:36:46.439: OSPF: Elect DR 192.168.0.2*Jul 16 20:36:46.439: DR: 19
9、2.168.0.2 (Id)R1#cle BDR: 192.168.0.1 (Id)*Jul 16 20:36:46.443: OSPF: Rcv DBD from 192.168.0.2 on Serial3/0 seq 0x1C94 opt 0x52 flag 0x7 len 32 mtu 1500 state EXSTART*Jul 16 20:36:46.447: OSPF: NBR Negotiation Done. We are the SLAVE*Jul 16 20:36:46.447: OSPF: Send DBD to 192.168.0.2 on Serial3/0 seq
10、 0x1C94 opt 0x52 flag 0x2 len 52*Jul 16 20:36:46.559: OSPF: Rcv DBD from 192.168.0.2 on Serial3/0 seq 0x1C95 opt 0x52 flag 0x3 len 52 mtu 1500 state EXCHANGE*Jul 16 20:36:46.563: OSPF: Send DBD to 192.168.0.2 on Serial3/0 seq 0x1C95 opt 0x52 flag 0x0 len 32*Jul 16 20:36:46.887: OSPF: Rcv DBD from 19
11、2.168.0.2 on Serial3/0 seq 0x1C96 opt 0x52 flag 0x1 len 32 mtu 1500 state EXCHANGE*Jul 16 20:36:46.887: OSPF: Exchange Done with 192.168.0.2 on Serial3/0*Jul 16 20:36:46.891: OSPF: Send LS REQ to 192.168.0.2 length 12 LSA count 1*Jul 16 20:36:46.891: OSPF: Send DBD to 192.168.0.2 on Serial3/0 seq 0x
12、1C96 opt 0x52 flag 0x0 len 32*Jul 16 20:36:46.895: OSPF: Rcv LS REQ from 192.168.0.2 on SerialR1#cle3/0 length 36 LSA count 1*Jul 16 20:36:46.899: OSPF: Send UPD to 192.168.0.2 on Serial3/0 length 40 LSA count 1*Jul 16 20:36:47.267: OSPF: Rcv LS UPD from 192.168.0.2 on Serial3/0 length 64 LSA count
13、1*Jul 16 20:36:47.267: OSPF: Synchronized with 192.168.0.2 on Serial3/0, state FULL*Jul 16 20:36:47.271: %OSPF-5-ADJCHG: Process 10, Nbr 192.168.0.2 on Serial3/0 from LOADING to FULL, Loading Done*Jul 16 20:36:47.271: OSPF: Rcv LS UPD from 192.168.0.2 on Serial3/0 length 64 LSA count 1*Jul 16 20:36:
14、47.555: OSPF: Rcv LS UPD from 192.168.0.2 on Serial3/0 length 64 LSA count 1*Jul 16 20:36:47.555: OSPF: Rcv LS UPD from 192.168.0.2 on Serial3/0 length 60 LSA count 1*Jul 16 20:36:47.771: OSPF: Build router LSA for area 0, router ID 192.168.0.1, seq 0x80000002R1#cle*Jul 16 20:36:52.343: OSPF: Rcv LS
15、 UPD from 192.168.0.2 on Serial3/0 length 64 LSA count 1R1#show ip ospf neiNeighbor ID Pri State Dead Time Address Interface192.168.0.2 1 FULL/DR 00:00:36 192.168.0.2 Serial3/0再将他们的网络类型改为点到点的。R1(config)#int s3/0R1(config-if)#ip ospf network point-to-pointR2(config)#int s3/0R2(config-if)#ip ospf network point-to-pointR1(config-if)#*Jul 16 20:37:33.059: OSPF: Interface Serial3/0 going Down*Jul 16 20:37:33.059: OSPF: 192.168.0.1 address 192.168.0