实验17 OSPF单区域
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
OSPF单区域1 实验目的:
能够在单区域环境中配置OSPF路由协议。
2 网络拓扑
3 试验环境:
网络中计算机和路由器的IP地址已经如图配置完成。
4 试验要求
✓在Area0配置OSPF。
✓查看路由表。
✓检查OSPF协议的收敛速度。
5 基本配置步骤
5.1在Router2上
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 1
Router(config-router)#network 192.168.0.0 0.0.0.3 area 0
Router(config-router)#network 172.16.0.0 0.0.255.255 area 0
Router(config-router)#
OR
Router(config)#router ospf 1
Router(config-router)#network 192.168.0.1 0.0.0.0 area 0
Router(config-router)#network 172.16.0.1 0.0.0.0 area 0
Router(config-router)#
5.2在Route0上
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 1
Router(config-router)#network 192.168.0.0 0.0.0.3 area 0
Router(config-router)#network 192.168.0.4 0.0.0.3 area 0
Router(config-router)#network 192.168.0.12 0.0.0.3 area 0
Router(config-router)#ex
5.3在Router1上
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 1
Router(config-router)#network 192.168.0.0 0.0.0.255 area 0
5.4在Router4上
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 1
Router(config-router)#network 192.168.0.0 0.0.0.255 area 0
Router(config-router)#network 172.18.0.0 0.0.255.255 area 0
5.5在Router3上
Router>en
Router#config t
Router(config)#router ospf 1
Router(config-router)#network 192.168.0.0 0.0.0.255 area 0
Router(config-router)#network 172.17.0.0 0.0.255.255 area 0
Router(config-router)#
6 检查路由表
6.1在Router3上
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is not set
O 172.16.0.0/16 [110/1563] via 192.168.0.13, 00:01:15, Serial2/0
C 172.17.0.0/16 is directly connected, FastEthernet0/0
O 172.18.0.0/16 [110/782] via 192.168.0.17, 00:01:15, Serial3/0
192.168.0.0/30 is subnetted, 5 subnets
O 192.168.0.0 [110/1562] via 192.168.0.13, 00:01:15, Serial2/0
O 192.168.0.4 [110/1562] via 192.168.0.13, 00:01:15, Serial2/0
O 192.168.0.8 [110/1562] via 192.168.0.17, 00:01:15, Serial3/0
C 192.168.0.12 is directly connected, Serial2/0
C 192.168.0.16 is directly connected, Serial3/0
Router#
6.2查看OSPF邻居
Router#show ip ospf neighbor
Neighbor 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 database
OSPF Router with ID (192.168.0.18) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count