OSPF-3

一、sub Area特点

1.过滤4类和5类路由,但如果这样外部路由就会不可达(R4流量到不了R5),这时的解决方法是,配置了sub的区域,ABR(R2)会自动生成默认路由并下发

注意:Hello包必须匹配才能建立邻接:hello间隔周期、区域号、认证、stub号

2.stub区域内的所有路由器都要配置stub

3.stub区域内不能出现ASBR

4.area 0不能配置为sub区域

5.配置为stub的区域不能再外挂区域(此区域未与area 0区域直接相连)

二、Totally stub area

通过R4上可以看出,配置为stub区域后,ABR自动生成一条默认路由下发给了R4,如果有了这条默认路由,上面4条O IA路由(通过3类LSA传过来)就没用了,这时就用到了totally stub area

配置:只需在sutb区域基础上,在ABR上添加一条命令:R2(config-router)#area 1 stub no-summary

totally stub area作用:

1.过滤3、4、5类LSA

R4#sh ip route ospf 
O*IA 0.0.0.0/0 [110/65] via 24.1.1.2, 00:00:15, Serial2/0

现在R4上只有这条默认路由了  

三、Not-So-Stubby Areas(NSSA)

1.NSSA作用:过滤4类和5类

2.Stub区域中不能存在ASBR,但NSSA区域中可以存在ASBR

3.NSSA中存在7类LSA

a.如果在area 2中做了NSSA,rip重分布进来是通过5类LSA,而NSSA区域是过滤4类和5类的,这样R4、R2就收不到rip路由信息,这样才产生了7类LSA,让重发布进来的外部路由能进来,NSSA更多应用场景是类似上面拓扑,俩边都有外部路由重发布进来

b.7类LSA其实相当于5类LSA,从R3进来形成7类LSA,到R1再由7类LSA转变为5类LSA

4.配置完NSSA区域后不会像stub区域一样会自动形成一条默认路由,需要手动去配置

R1(config-router)#area 2 nssa default-information-originate

此时R3路由表如下:

R3#sh ip route 
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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 13.1.1.1 to network 0.0.0.0

     1.0.0.0/32 is subnetted, 1 subnets
O IA    1.1.1.1 [110/65] via 13.1.1.1, 00:03:27, Serial2/1
     35.0.0.0/24 is subnetted, 1 subnets
C       35.1.1.0 is directly connected, Serial2/0
     2.0.0.0/32 is subnetted, 1 subnets
O IA    2.2.2.2 [110/129] via 13.1.1.1, 00:03:27, Serial2/1
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
     4.0.0.0/32 is subnetted, 1 subnets
O IA    4.4.4.4 [110/193] via 13.1.1.1, 00:03:27, Serial2/1
     5.0.0.0/24 is subnetted, 1 subnets
R       5.5.5.0 [120/1] via 35.1.1.5, 00:00:06, Serial2/0
     24.0.0.0/24 is subnetted, 1 subnets
O IA    24.1.1.0 [110/192] via 13.1.1.1, 00:03:29, Serial2/1
     12.0.0.0/24 is subnetted, 1 subnets
O IA    12.1.1.0 [110/128] via 13.1.1.1, 00:03:29, Serial2/1
     13.0.0.0/24 is subnetted, 1 subnets
C       13.1.1.0 is directly connected, Serial2/1
O*N2 0.0.0.0/0 [110/1] via 13.1.1.1, 00:00:22, Serial2/1

  

猜你喜欢

转载自www.cnblogs.com/sgbeef/p/9573205.html