tcp/ip_ospf案例研究4特殊区域

1.stub区域:区域内所有设备area id stub:abr会通告一条oia(默认cost 1)的默认路由,存在3类lsa不存在4,5类lsa

2.totally stub区域:abr配置no-summary,其他设备配置area id stub;abr会通告一条oia的默认路由;不存在3,4,5类lsa

3.nssa区域:区域内所有设备配置area id nssa;不存在4,5类lsa,存在3,7类lsa;nssa区域的abr负责7转5,通过default-information originate产生O*N20.0.0.0/0默认路由

4.totally nssa区域:区域abr配置area id nssa no-summary,其他设备配置area id nssa;不存在3,4,5类lsa,存在7类lsa;nssa区域的abr负责7转5;生成一条O*IA0.0.0.0/0默认路由

stub区域不接受5类lsa和4类lsa.

totally stub不接受5类4类3类lsa.

只有一个abr,如果有多个abr次优路径会出现.

所有路由器都应该被配置成stub路由器.

该区域不能有asbr.

不能存在区域0

不能有虚链路

所有末梢区域的路由器都会在它们的hello数据包中设置一个标志-就是e-bit位,并将它设置为0.这样,这些末梢区域路由器将不接受其他路由器发送的任何e-bit为1的hello数据包,结果,没有配置成一个末梢区域路由器的任何路由器之间将无法成功建立邻接关系.

虚链路不能再一个末梢区域内进行配置,也不能穿越一个末梢区域.

末梢区域内的路由器不能是asbr路由器,这个限制条件是很容易直观地理解的,因为asbr路由器会产生类型5的lsa通告,而在一个末梢区域内不能存在类型5的lsa通告.

一个末梢区域可以拥有多台abr路由器,但是因为缺省路由的原因,区域内部路由器将不能确定那一台路由器才是到达asbr路由器的最优网关.

stub areas

external lsas are stopped

default route(oia)is advertised into stub area by the abr.

all routers in area 50 must be configured as stub.

r4:

router ospf 110

area 2 stub

r2:

router ospf 110

area 2 stub

r4:

router ospf 110

area 2 default-cost 10(往stub nssa区域通告路由更改cost值)

routera(config-router)#

area area-id stub [no-summary]

this command turns on stub area networking

all routers in a stub area must use the stub command.

routera(config-router)#

area area-id default-cost cost

this command defines the cost of a default route sent into the stub area

the default cost is 1

totally stubby area

r4:

area 2 stub no-summary(在abr上做)

r2:

area 2 stub no-summary

r4:

int lo0

ip ospf 110 area 2

routera(config-router)#

area area-id stub no-summary

the addition of no-summmary on the abr creates a totally stubby area and prevents all summary lsas from entering the stub area.

仅需要在abr上配置area x stub no-summary即可,用以阻止其他区域的三类lsa泛洪到该区域

r2:

router ospf 110

redistribute connected subnets

not-so-stubby areas

nssa breaks stub area rules.

asbr(r1)is allowed in nssa

special lsa type 7 defined,sent by asbr.

abr converts lsa type 7 to lsa type 5.r2同时也是asbr

abr sends default route into nssa instead of external routes from other asbrs.

nssa is an rfc addendum.

r2:

router ospf 110

area 2 nssa

r1:

area 2 nssa

r4:

router ospf 110

area 2 nssa

nssa外部lsa在它的头部有一个称为p-bit的标志,nssa asbr路由器可以设置或清除这个p-bin位,如果一台nssa abr路由器收到一条p-bit设置为1的类型7的lsa数据包,那么它将把这条类型7的lsa转换成类型5的lsa,并且将这条lsa泛洪扩散到其他区域去.

r2:

router ospf 110

red connetcted subnet

r4:

int lo1

ip add 4.4.4.4 255.255.255.0

router ospf 110

redistribute connected subnets

r1:

router ospf 110

area 2 nssa default-information-originate

r4:

router ospf 110

area 2 nssa no-redistribution(asbr重分布的路由不要进入nssa区域)

r1:

router ospf 110

area 2 nssa no-summary

r4:

router ospf 110

area 2 nssa no-summary

stub区域

过滤4,5类lsa(外部路由)

生成3类的lsa默认路由

该区域所有路由器打上area area-id stub

totall stub区域

过滤3,4,5类的lsa(域间路由,外部路由)

生成3类的lsa默认路由

该区域所有路由器都打上area area-id stub

值需要在该区域的abr上打area area-id stub no-summary,该区域其他设备配置area area-id stub

nssa区域

过滤4,5类的lsa(外部路由)

该区域所有路由器都打上area area-id nssa

但是可以引入外部路由lsa7

nssa区域的abr负责把7类lsa转换成5类lsa

totally nssa区域

过滤3,4,5类的lsa(域间路由,外部路由)

生成3类的lsa默认路由

该区域所有路由器都打上area area-id nssa

只需要在该区域的abr上打area area-id nssa no-summary

但是可以引入外部路由

nssa区域的abr负责把7类lsa转换5类lsa

show ip ospf data nssa-external 122.1.1.0-link state id