天天看點

21、OSPF配置實驗之特殊區域totally stub

1、特殊區域totally stub解析

區域類型

作用

預設路由

備注

指令

stub

過濾LSA4、LSA5

ABR預設下發3類預設路由,seed cost值為1

本區域所有路由器都必須配置成stub,否則鄰居起不來,且不能包含ASBR

area 2 stub

area 2 default-cost x

totally stub

過濾LSA3、LSA4、LSA5

area 2 stub no-summary

2、實驗拓撲

<a href="http://s5.51cto.com/wyfs02/M02/76/C6/wKioL1ZcHs_hy9CUAABHUUOfk9U909.png" target="_blank"></a>

3、實驗配置

R1配置

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

interface Serial0/0

 ip address 12.1.1.1 255.255.255.0

router ospf 110

 router-id 1.1.1.1

 network 12.1.1.0 0.0.0.255 area 2

R2配置

 ip address 2.2.2.2 255.255.255.0

 ip address 12.1.1.2 255.255.255.0

interface Serial0/1

 ip address 23.1.1.2 255.255.255.0router ospf 110

 router-id 2.2.2.2

 network 23.1.1.0 0.0.0.255 area 0

R3配置

 ip address 3.3.3.3 255.255.255.0

 ip address 34.1.1.3 255.255.255.0

 ip address 23.1.1.3 255.255.255.0router ospf 110

 router-id 3.3.3.3

 network 34.1.1.0 0.0.0.255 area 1

R4配置

 ip address 4.4.4.4 255.255.255.0

 ip address 34.1.1.4 255.255.255.0

 ip address 45.1.1.4 255.255.255.0

 router-id 4.4.4.4

 redistribute rip subnets

R5配置

 ip address 5.5.5.5 255.255.255.0

 ip address 45.1.1.5 255.255.255.0

 serial restart-delay 0

router rip

 version 2

 network 5.0.0.0

 network 45.0.0.0

 no auto-summary

4、實驗驗證

過濾LSA3、LSA4、LSA4

配置totally stub前

<a href="http://s1.51cto.com/wyfs02/M00/76/CF/wKiom1ZdCCfxHeuQAAAQDcd-P9c403.png" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M02/76/CF/wKiom1ZdCCeidW9BAAASs-wfrx0739.png" target="_blank"></a>

<a href="http://s1.51cto.com/wyfs02/M01/76/CE/wKioL1ZdCI2QMe2VAAAuUCe8DmI566.png" target="_blank"></a>

ABR下放3類預設路由

<a href="http://s1.51cto.com/wyfs02/M01/76/CE/wKioL1ZdCKyCH5cjAABOz8XGu-w730.png" target="_blank"></a>

配置totally stub後

<a href="http://s4.51cto.com/wyfs02/M02/76/CE/wKioL1ZdCK2SKxy9AABDiRSthGg567.png" target="_blank"></a>

      本文轉自開源殿堂 51CTO部落格,原文連結:http://blog.51cto.com/kaiyuandiantang/1718411,如需轉載請自行聯系原作者

繼續閱讀