应该是CCNP的新增内容。cisco的nssa在我印象中是没有total nssa的概念的,因为nssa本来是被定义为一个临时的、属于过渡性质的区域。在ospf里,任何不属于backbone(area 0)的区域都应该尽可能的被stub化,或者total stub化。当然,有了一个total nssa的概念,可以减少非backbone的路由器中路由表的数量,对于相对性能较差的路由器的确是个好命令。
配置上,非abr的路由器,其total nssa的配置与普通nssa配置一致。只是在abr上(这里注意的是,有差别的配置是在abr上,而非asbr上)增加了no-summary参数。因为以前我是在netsim上做试验的,没有dynamips的命令齐全,不知道是否有该命令。从show ip ospf database上看,nssa里面的路由器减少了3类和5类的lsa。
Gateway of last resort is 172.16.255.2 to network 0.0.0.0 172.16.0.0/30 is subnetted, 2 subnets
C 172.16.255.0 is directly connected, Serial1/1
O 172.16.255.4 [110/128] via 172.16.255.2, 00:01:44, Serial1/1
131.131.0.0/24 is subnetted, 2 subnets
R 131.131.1.0 [120/1] via 131.131.2.2, 00:00:20, Serial1/0
C 131.131.2.0 is directly connected, Serial1/0
O*IA 0.0.0.0/0 [110/129] via 172.16.255.2, 00:01:44, Serial1/1 Gateway of last resort is not set
172.16.0.0/30 is subnetted, 3 subnets
O 172.16.255.0 [110/128] via 172.16.255.5, 00:01:41, Serial1/0
C 172.16.255.4 is directly connected, Serial1/0
C 172.16.255.8 is directly connected, Serial1/1
131.131.0.0/24 is subnetted, 2 subnets
O N1 131.131.1.0 [110/228] via 172.16.255.5, 00:01:41, Serial1/0 O N1 131.131.2.0 [110/228] via 172.16.255.5, 00:01:41, Serial1/0 O E1 192.168.1.0/24 [110/164] via 172.16.255.10, 00:01:41, Serial1/1
O E1 192.168.2.0/24 [110/164] via 172.16.255.10, 00:01:41, Serial1/1
router ospf 100
router-id 4.4.4.4
log-adjacency-changes
area 0 authentication message-digest
area 1 authentication message-digest
area 1 nssa no-summary network 172.16.255.4 0.0.0.3 area 1
network 172.16.255.8 0.0.0.3 area 0
从上述路由表及配置上看出,ABR配置了totally nssa后,自动产生了一条到本身的默认路由(若不使用totally nssa,可配置default-imformation originate),并通告到totally nssa中。同时ABR使用LSA 7表示到被转换目标的路由,而非转化后的LSA 5。
本文转自 gole_huang 51CTO博客,原文链接:http://blog.51cto.com/golehuang/73781