BSCI—8-(2):OSPF的特殊区域类型与配置

本文涉及的产品
云数据库 Tair(兼容Redis),内存型 2GB
Redis 开源版,标准版 2GB
推荐场景:
搭建游戏排行榜
简介:
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 一、NSSA区域:
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">
1.只有NSSA区域中才会现LSA7,可以存在ASBR,阻止LSA4/5
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">
2.ABR将LSA7转成LSA5,传播到其他区域,这时,ABR也成为了ASBR,因为它也引入了LSA5,其它路由器看到LSA5的通告路由器是ABR。
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 二、实验拓扑如下:R1到R2属区域0,R2到R3属区域1并配置为NSSA区域,R1与R3分别运行RIP与EIGRP模拟OSPF外部路由,接口与IP地址信息如下所示.
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 步骤一:配置3台路由器及路由协议,并如图发布网段.
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">  
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">R1:
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">Router>
Router>en
Router#conf t
Router(config)#hostname R1
R1(config-line)#exit
R1(config)#interface f0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#interface loopback 0
R1(config-if)#ip address 1.1.1.1 255.255.255.0
R1(config-if)#ip ospf network point-to-point     //防止学习32位的主机路由
R1(config-if)#int lo1
R1(config-if)#ip address 1.1.2.1 255.255.255.0
R1(config-if)#ip ospf network point-to-point     //防止学习32位的主机路由
R1(config-if)#exit
R1(config)#router ospf 1         //启用OSPF路由协议
R1(config-router)#router-id 1.1.1.1     //指定ROUTE-ID
R1(config-router)#network 192.168.1.1 0.0.0.0 area 0     //发布网段到区域0
R1(config-router)#exit
R1(config)#router rip      //启用RIP路由协议
R1(config-router)#version 2      //指定版本2
R1(config-router)#no auto-summary      //不要自动汇总
R1(config-router)#network 1.1.1.0     //发布网段
R1(config-router)#network 1.1.2.0     //同上
R1(config-router)#end
R1#
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">
R2:
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">start
Router>
Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#interface f0/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#interface f0/1
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#interface loopback 0
R2(config-if)#ip address 2.2.1.1 255.255.255.0
R2(config-if)#ip ospf network point-to-point 
R2(config-if)#int lo1
R2(config-if)#ip address 2.2.2.1 255.255.255.0
R2(config-if)#ip ospf network point-to-point 
R2(config-if)#exit
R2(config)#router ospf 1      //启用OSPF路由协议
R2(config-router)#router-id 2.2.2.2      //同上
R2(config-router)#network 192.168.1.2 0.0.0.0 area 0
R2(config-router)#network 192.168.2.2 0.0.0.0 area 1
R2(config-router)#network 2.2.1.1 0.0.0.0 area 0    
R2(config-router)#network 2.2.2.1 0.0.0.0 area 0
R2(config-router)#end     
R2#
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">
R3:
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">Router>
Router>en
Router#conf t
Router(config)#hostname R3
R3(config)#interface f0/1
R3(config-if)#ip address 192.168.2.1 255.255.255.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#interface loopback 0
R3(config-if)#ip address 172.16.1.1 255.255.255.0
R3(config-if)#int lo1
R3(config-if)#ip address 172.16.2.1 255.255.255.0
R3(config-if)#exit
R3(config)#router ospf 1      //启用OSPF路由协议
R3(config-router)#router-id 3.3.3.3      //同上
R3(config-router)#network 192.168.2.1 0.0.0.0 area 1
R3(config-router)#exit 
R3(config)#router eigrp 1
R3(config-router)#no auto-summary 
R3(config-router)#network 172.16.1.0 0.0.0.255
R3(config-router)#network 172.16.2.0 0.0.0.255
R3(config-router)#end
R3#
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 步骤二:在R1与R3上进行路由的重发布,使得路由器能够互相学习外部路由.
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">  
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">R1(config)#router ospf 1
R1(config-router)#redistribute rip subnets     //将RIP重发布进OSPF
R1(config-router)#exit
R1(config)#router rip
R1(config-router)#redistribute ospf 1 metric 1      //将OSPF重发布进RIP度量为1
R1(config-router)#end
R1#
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">R3(config)#router ospf 1
R3(config-router)#redistribute eigrp 1 subnets      //将EIGRP重发布进OSPF
R3(config-router)#exit
R3(config)#router eigrp 1
R3(config-router)#redistribute ospf 1 metric 100000 5 255 1 1500
//将OSPF重发布进EIGRP,带宽=100000KM 廷迟=5 可靠性=255 负载=1 最大传输单元=1500
R3(config-router)#end
R3#
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">
步骤三:将区域1配置为NSSA区域.
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">  
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">R2(config)#router ospf 1
R2(config-router)#area 1 nssa      //将区域1配置为NSSA
R2(config-router)#end
R2#
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">R3(config)#router ospf 1
R3(config-router)#area 1 nssa      //将区域1配置为NSSA
R3(config-router)#end
R3#
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">
步骤四:在R1,R2与R3上分别验证
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">  
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 查看R1路由表:
R1#show ip route 
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       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
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">Gateway of last resort is not set
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">     1.0.0.0/24 is subnetted, 2 subnets
C       1.1.1.0 is directly connected, Loopback0
C       1.1.2.0 is directly connected, Loopback1
     2.0.0.0/24 is subnetted, 2 subnets
O       2.2.1.0 [110/2] via 192.168.1.2, 00:08:29, FastEthernet0/0
O       2.2.2.0 [110/2] via 192.168.1.2, 00:08:29, FastEthernet0/0
     172.16.0.0/24 is subnetted, 2 subnets
O E2    172.16.1.0 [110/20] via 192.168.1.2, 00:07:34, FastEthernet0/0
O E2    172.16.2.0 [110/20] via 192.168.1.2, 00:07:34, FastEthernet0/0
C    192.168.1.0/24 is directly connected, FastEthernet0/0
O IA 192.168.2.0/24 [110/2] via 192.168.1.2, 00:08:04, FastEthernet0/0
R1#     
//R1上可以学习到所有路由,因为它是正常区域,没有做任何配置,可以学习所以类型的LSA
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">
查看R2路由表:
R2#show ip route 
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       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
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">Gateway of last resort is not set
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">     1.0.0.0/24 is subnetted, 2 subnets
O E2    1.1.1.0 [110/20] via 192.168.1.1, 00:04:19, FastEthernet0/0
O E2    1.1.2.0 [110/20] via 192.168.1.1, 00:04:19, FastEthernet0/0
     2.0.0.0/24 is subnetted, 2 subnets
C       2.2.1.0 is directly connected, Loopback0
C       2.2.2.0 is directly connected, Loopback1
     172.16.0.0/24 is subnetted, 2 subnets
O N2    172.16.1.0 [110/20] via 192.168.2.1, 00:04:19, FastEthernet0/1
O N2    172.16.2.0 [110/20] via 192.168.2.1, 00:04:19, FastEthernet0/1
C    192.168.1.0/24 is directly connected, FastEthernet0/0
C    192.168.2.0/24 is directly connected, FastEthernet0/1
R2#
//有人肯定会说NSSA区域不是不会学习5类LSA吗,怎么多了2条E2的路由?
因为R2是NSSA的ABR,它所要做的事情就是将7类型LSA转成5类LSA并传播到区域间每个路由器,还有NSSA区域可以学习本区域引入的外部路由,上面两条N2的路由为从R3上EIGRP所学的外部路由.
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">
查看R3路由表:
R3#show ip route 
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       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
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">Gateway of last resort is not set
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">     2.0.0.0/24 is subnetted, 2 subnets
O IA    2.2.1.0 [110/2] via 192.168.2.2, 00:13:21, FastEthernet0/1
O IA    2.2.2.0 [110/2] via 192.168.2.2, 00:13:21, FastEthernet0/1
     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, Loopback0
C       172.16.2.0 is directly connected, Loopback1
O IA 192.168.1.0/24 [110/2] via 192.168.2.2, 00:13:21, FastEthernet0/1
C    192.168.2.0/24 is directly connected, FastEthernet0/1
R3#
//R3属于NSSA区域内,而非NSSA区域ABR,所以它就验证了NSSA区域不能学习其它区域引入的外部路由。
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">  
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">  
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 疑问:为什么在R2上面会发生7类LSA转5类LSA?
我们来看看R2的OSPF链路状态数据库:
R2#show ip ospf database
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">                Type-7 AS External Link States (Area 1)
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">Link ID         ADV Router      Age         Seq#       Checksum Tag
172.16.1.0      3.3.3.3         1501        0x80000001 0x00C09F 0
172.16.2.0      3.3.3.3         1501        0x80000001 0x00B5A9 0
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">                Type-5 AS External Link States
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">Link ID         ADV Router      Age         Seq#       Checksum Tag
1.1.1.0         1.1.1.1         483         0x80000002 0x00A3F4 0
1.1.2.0         1.1.1.1         484         0x80000002 0x0098FE 0
172.16.1.0      2.2.2.2         1495        0x80000001 0x0073FA 0
172.16.2.0      2.2.2.2         1495        0x80000001 0x006805 0
R2#
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">
注:前面说过,只有NSSA区域存放7类LSA,所以7类LSA传播到其它区域根本就不识别,仔细看R2上5类与7类LSA的摘要,都存放了172.16.1.0与172.16.2.0,所以这就7类变5类LSA的转折点.
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">  
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">  
<="" style="font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif; margin: 0px; padding: 0px; max-width: 100%; font-size: 16px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);"> 总结:相信通过这两篇文章,大家对OSPF的特殊区域有个比较好的认识与掌握.









本文转自 meiyanaa 51CTO博客,原文链接:http://blog.51cto.com/justim/271764,如需转载请自行联系原作者
相关实践学习
基于Redis实现在线游戏积分排行榜
本场景将介绍如何基于Redis数据库实现在线游戏中的游戏玩家积分排行榜功能。
云数据库 Redis 版使用教程
云数据库Redis版是兼容Redis协议标准的、提供持久化的内存数据库服务,基于高可靠双机热备架构及可无缝扩展的集群架构,满足高读写性能场景及容量需弹性变配的业务需求。 产品详情:https://www.aliyun.com/product/kvstore &nbsp; &nbsp; ------------------------------------------------------------------------- 阿里云数据库体验:数据库上云实战 开发者云会免费提供一台带自建MySQL的源数据库&nbsp;ECS 实例和一台目标数据库&nbsp;RDS实例。跟着指引,您可以一步步实现将ECS自建数据库迁移到目标数据库RDS。 点击下方链接,领取免费ECS&amp;RDS资源,30分钟完成数据库上云实战!https://developer.aliyun.com/adc/scenario/51eefbd1894e42f6bb9acacadd3f9121?spm=a2c6h.13788135.J_3257954370.9.4ba85f24utseFl
目录
相关文章
|
9天前
|
网络协议 网络架构
网络工程师必知:什么是OSPF多区域?如何配置?
网络工程师必知:什么是OSPF多区域?如何配置?
22 2
网络工程师必知:什么是OSPF多区域?如何配置?
|
13天前
|
网络协议 算法 数据库
OSPF中的标准区域详解
OSPF中的标准区域详解
21 0
|
13天前
|
监控 网络协议 数据库
OSPF的区域类型介绍
OSPF的区域类型介绍
25 0
|
4月前
|
网络协议 网络架构
配置思科多区域 OSPF
【8月更文挑战第31天】
94 0
配置思科多区域 OSPF
|
7月前
|
网络协议 数据库 网络架构
ENSP中OSPF多区域管理 (原理和配置)
OSPF 多区域的主要作用是缩小链路状态数据库和路由表的规模,减少路由更新的频率,提高网络的可扩展性,实现路由过滤和路由汇总,从而提高网络的性能、稳定性、安全性和可管理性。OSPF 多区域的主要作用如下ABR的摘要 配置命令
239 0
ENSP中OSPF多区域管理 (原理和配置)
|
网络协议 Shell 网络架构
【锐捷】OSPF 多区域配置
【锐捷】OSPF 多区域配置
107 0
|
负载均衡 网络协议 网络架构
|
负载均衡 网络协议 网络架构
|
网络协议 数据安全/隐私保护 网络架构
多区域的OSPF实战配置
多区域的OSPF实战配置
77 0