配置OSPF协议.doc

上传人:scccc 文档编号:12634755 上传时间:2021-12-05 格式:DOC 页数:7 大小:81.50KB
返回 下载 相关 举报
配置OSPF协议.doc_第1页
第1页 / 共7页
配置OSPF协议.doc_第2页
第2页 / 共7页
配置OSPF协议.doc_第3页
第3页 / 共7页
配置OSPF协议.doc_第4页
第4页 / 共7页
配置OSPF协议.doc_第5页
第5页 / 共7页
点击查看更多>>
资源描述

《配置OSPF协议.doc》由会员分享,可在线阅读,更多相关《配置OSPF协议.doc(7页珍藏版)》请在三一文库上搜索。

1、配置OSPF协议.实训目的: 1掌握OSPF(开放最短路经优生)协议的基本配置;2. 查看OSPF协议的配置、邻居、接口和路由等信息。二.实训内容1. 在路由器上启动和基本配置OSPF协议;2声明相应网络进入 OSPF路由信息;3. 查看OSPF协议的配置、邻居、接口和路由等信息;三实训环境的搭建Kfl 11. 准备 PC机 2 台,操作系统为 Windows2000 Professional2. 准备Cisco 2621XM 路由器3台,分别为 R R1和R2;3. WIC-1T 模块 4 个,V.35 DTE 电缆 2 条,V.35 DCE 电缆 2 条;4. Co nsole电缆1条,通

2、过Co nsole电缆把PC机的COM端 口和路由器的 Con sole端口连接起来,配置路由器;四实训操作实践与步骤 1. R的配置过程int s0/0ip address 192.168.1.5 255.255.255.0clock rate 64000no shut int s0/1 ip address 192.168.1.2 255.255.255.0clock rate 125000no shut2R1 的配置过程int f0/0ip address 192.168.20.1 255.255.255.0 no shutint s0/0ip address 192.168.1.6 2

3、55.255.255.0 no shutrouter ospf 100network 192.168.1.6 0.0.0.0 area 0network 192.168.20.1 0.0.0.0 area 03R2 的配置过程int f0/0ip address 192.168.10.1 255.255.255.0no shutdownexitint s0/0ip address 192.168.1.1 255.255.255.0no shutdownexitrouter ospf 100network 192.168.1.1 0.0.0.0 area 0network 192.168.10.

4、1 0.0.0.0 area 04查看 DTE/DCE 电缆sho controllers s0/0显示信息:Interface Serial0/0Hardware is PowerQUICC MPC860DTE V.35 clocks stopped.sho controller s0/0显示信息:Interface Serial0/0Hardware is PowerQUICC MPC860DCE V.35, no clock5测试连通性ping 192.168.20.1显示信息:Type escape sequence to abort.Sending 5, 100-byte ICMP

5、Echos to 192.168.20.1, timeout is 2 seconds: !Success rate is 100 percent (5/5), round-trip min/avg/max = 12/14/16 ms ping 192.168.10.1显示信息:Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds: !Success rate is 100 percent (5/5), round-trip min/avg/max =

6、 28/29/32 msping 192.168.20.20ping 192.168.10.10ping 192.168.1.5ping 192.168.1.2ping 192.168.1.1显示信息:Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !Success rate is 100 percent (5/5), round-trip min/avg/max = 40/41/44 mstrace 192.168.10.1Type escap

7、e sequence to abort.Tracing the route to 192.168.10.11 192.168.1.1 12 msec 12 msec *trace 192.168.20.1显示信息:Type escape sequence to abort.Tracing the route to 192.168.20.11 192.168.1.6 8 msec 8 msec *6查看 OSPF 协议的路由、邻居和接口等信息sho ip route 显示信息:Codes: C - connected, S - static, I - IGRP, R - RIP, M - mob

8、ile, 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-

9、user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setO 192.168.10.0/24 110/65 via 192.168.1.1, 02:37:18, Serial0/0O 192.168.20.0/24 110/65 via 192.168.1.6, 02:37:18, Serial0/1C 192.168.1.0/24 is directly connected, Serial0/0is directly connected, Serial0/1上述

10、110/65中110表示:OSPF的缺省管理距离,65表示本条路由的费用。 sho ip route显示信息:O 192.168.10.0/24 110/129 via 192.168.1.2, 02:33:21, Serial0/0C 192.168.20.0/24 is directly connected, FastEthernet0/0C 192.168.1.0/24 is directly connected, Serial0/0 sho ip route显示信息:C 192.168.10.0/24 is directly connected, FastEthernet0/0O 19

11、2.168.20.0/24 110/129 via 192.168.1.5, 02:27:13, Serial0/0 C 192.168.1.0/24 is directly connected, Serial0/0 sho ip route ospf显示信息:O 192.168.10.0/24 110/65 via 192.168.1.1, 02:49:43, Serial0/0O 192.168.20.0/24 110/65 via 192.168.1.6, 02:49:43, Serial0/1 sho ip route ospf显示信息:O 192.168.10.0/24 110/12

12、9 via 192.168.1.2, 04:17:05, Serial0/0 sho ip route ospf显示信息:O 192.168.20.0/24 110/129 via 192.168.1.5, 04:10:08, Serial0/0 sho ip protocol显示信息:Routing Protocol is "ospf 100"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setRo

13、uter ID 192.168.1.5Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4Routing for Networks:192.168.1.2 0.0.0.0 area 0192.168.1.5 0.0.0.0 area 0Routing Information Sources:Gateway Distance Last Update192.168.10.1 110 04:04:03192.168.1.5 110 04:04:03192.168.20.1 110 04:04:03Dis

14、tance: (default is 110) sho ip protocol sho ip ospf neighbor显示信息:Neighbor ID Pri State Dead Time Address Interface192.168.10.1 1 FULL/ - 00:00:39 192.168.1.1 Serial0/0192.168.20.1 1 FULL/ - 00:00:34 192.168.1.6 Serial0/1R1#sho ip ospf neighbor / 查看路由器 R1 当前的邻居 / Neighbor ID Pri State Dead Time Addre

15、ss Interface192.168.1.5 1 FULL/ - 00:00:37 192.168.1.2 Serial0/0R2#sho ip ospf neighbor / 查看路由器 R2 当前的邻居 / Neighbor ID Pri State Dead Time Address Interface192.168.1.5 1 FULL/ - 00:00:36 192.168.1.5 Serial0/0 sho ip ospf neighbor detail sho ip ospf interface s0/0 显示信息:Serial0/0 is up, line protocol

16、is upInternet Address 192.168.1.5/24, Area 0Process ID 100, Router ID 192.168.1.5, Network Type POINT_TO_POINT, Cost: 64 Transmit Delay is 1 sec, State POINT_TO_POINT,Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5Hello due in 00:00:00Index 2/2, flood queue length 0Next 0x0(0)/0

17、x0(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 1Adjacent with neighbor 192.168.10.1 Suppress hello for 0 neighbor(s) sho ip ospf interface s0/1 sho ip ospf interface s0/0sho ip ospf database显示信息:OSPF Router with ID (192.168.1.5) (Process ID 100)Router Link States (Area 0)Link ID ADV Router Age Seq# Checksum Link count192.168.1.5 192.168.1.5 1130 0x80000008 0x6319 4192.168.10.1 192.168.10.1 1151 0x80000007 0x11DA 3192.168.20.1 192.168.20.1 1154 0x80000007 0x398F 3

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1