末梢区域
只有一个默认路由,作为区域的出口
区域不能作为虚链路的穿越区域(非骨干区域连接骨干区不能直连的情况下,需要穿越某个区域,配置虚链路)
末梢区域里面没有自治系统边界路由器ASBR
不是骨干区域0
特征
末梢区域里没有LSA4、5、7
完全末梢区域
除了一条默认路由外的LSA3 的通告,没有LSA3、4、5、7
目的:减少区域内的链路状态通告
配置末梢路由,在路由器2/3会自动生成一条默认路由
在区域间ABR路由器上关闭路由状态汇总信息
Conf t
Router ospf 10
Area 2 stub no-summary 每个area 2的路由器都需要配置此命令才行
表示配置成完全末梢区域,、就不会学习到区域间AI 的路由信息
总结思路:
建立拓扑,为各个接口,划分网段、配置IP
为各个路由宣告网段,设置区域、关闭路由汇总
路由器0
Router(config)#router ospf 10
Router(config-router)#network 192.168.10.0 0.0.0.255 area 0
路由器1
Router(config)#router ospf 10
Router(config-router)#network 192.168.10.0 0.0.0.255 area 0
Router(config-router)#network 192.168.10.0 0.0.0.255 area 2
Router(config-router)#area 2 stub
Router(config-router)#area 2 stub no-summary //关闭路由汇总,配置完全末梢区域
路由器2
Router(config)#router ospf 10
Router(config-router)#network 192.168.30.0 0.0.0.255 area 2
Router(config-router)#area 2 stub
Router(config-router)#area 2 stub no-summary //关闭路由汇总,配置完全末梢区域
路由器3
Router(config)#router ospf 10
Router(config-router)#network 192.168.40.0 0.0.0.255 area 2
Router(config-router)#area 2 stub
Router(config-router)#area 2 stub no-summary //关闭路由汇总,配置完全末梢区域