OSPF多区域

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

多区域 OSPF

OSPF MultiArea

【实验目的】

了解和掌握ospf的原理,熟悉ospf多域配置步骤。懂得如何配置Vitrul links,Transit area, Stub Area ,Totally Stubby Area, Not-so-stubby area(nssa)。

【实验原理】

了解Internal router,Backbone router,Area Border Router (ABR), Autonomous System Boundary Router (ASBR) 以及各种类型链路通告的不同之处,优化ospf网络。

【实验拓扑】

【实验设备】

路由器五台,

串行线,用于配置路由的主机

【实验内容】

1、按图示配置端口,用ping检查各端口间连通性

(A/B,E/F用于virtul links实验; C的lo地址在用于验证external route

summarization D的lo地址加入area 8,为验证interarea summarization; A/F的lo 地址在nssa时才加入)建议配置好各个neighber的vty,可以用一台终端观察整个拓扑。

(config)#enable password cisco

(config)#line vty 0 4

(config-line)#Login

(config-line)#Password cisco

利用terminal monitor可在telnet上看到debug输出

2、在各个路由器启动ospf进程,注意area的分布

Router(config)#router ospf *

Router(config-router)#network *.*.*.* *.*.*.* area *

查看ABR/ASBR/DR/BDR。

show ip ospf

show ip ospf interface

show ip ospf neighbor

show ip ospf neighbor detail

3、 show ip route查看各router路由表,

注意area 10,area 11没出现在别的router。(loopback地址当主机路由发布)

4、配置Vitrul links,使area 10,area 11可以正常工作。观察路由表项:

(原来没有连接到backbone area的area的具体情况: 可观察到:area运行和工作状态正常,但是就是没有收到其他area的链路状态通告)

C#show ip route

配置在ABR上进行(B/C),(D/E):

(config-router)#area 5 virtual-link (router-id)(router id可通过show ip ospf neighbor查看,互指对端)

观察配置前后不同之处:

A/F#show ip route (show neighbor与debug的话输出和以前一样很正常) C/E#show ip route B/C,E/F#show ip ospf virtual-links

此时area 5,area 1为transit area。

5、在D配置interarea route summarization,观察配置结果

观察未配置时的路由表:

Router#show ip route

配置summarization:

D(config-router)#area 8 range 192.168.64.0 255.255.252.0

观察配置结果:

D#show ip route C 192.168.64.0/24 is directly connected, Loopback0 C

192.168.65.0/24 is directly connected, Loopback1 C 192.168.66.0/24 is directly connected, Loopback4

C 192.168.67.0/24 is directly connected, Loopback8 O 192.168.64.0/22 is a

summary, 00:00:02, Null0

E#show ip route O IA 192.168.64.0/22 [110/129] via 192.168.1.9, 00:00:45, Serial1

原为4项主机路由,变为一项。或者是用命令:

Router#show ip route supernets-only

6、在C添加外部路由,配置重分布并观察配置:

C(config)#ip route 172.16.0.0 255.255.0.0 null 0

Router(config-router)#redistribute static subnets metric-type ? 1 Set OSPF External Type 1 metrics 2 Set OSPF External Type 2 metrics

C(config-router)#redistribute static subsnets (E2,static metrics)

(不加上subnets只重发布classful路由:% Only classful networks will be

redistributed)

观察配置结果:

Router# show ip route

更改配置:

C(config-router)#redistribute static subnets metric-type 1 (E1)

在各个router比较输出的不同(metric值)

router>show ip route

7、验证external route summarization

配置:

C(config)#ip route 172.17.0.0 255.255.0.0 null 0

C(config)#ip route 172.18.0.0 255.255.0.0 null 0

相关文档
最新文档