各路由器的配置如上图,外部路由均注入ospf
area23为普通区域时,R1、R2、R3的路由表中有所有网段的路由
Area23配置为total nssa区域时
R2:router eigrp 50
network 25.0.0.0
auto-summary
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
area 23 nssa no-summary
redistribute eigrp 50 subnets
network 12.12.12.0 0.0.0.255 area 0
network 23.23.23.0 0.0.0.255 area 23 |
R3:router ospf 1
router-id 3.3.3.3
log-adjacency-changes
area 23 nssa
redistribute rip subnets
network 23.23.23.0 0.0.0.255 area 23
!
router rip
version 2
passive-interface Serial1/2
network 34.0.0.0 |
注意观察R1、R2、R3的路由表
R1: 34.0.0.0/24 is subnetted, 1 subnets
O E2 34.34.34.0 [110/20] via 12.12.12.2, 00:01:41, Serial1/0 nssa产生类型7转换5通告路由
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback1
50.0.0.0/32 is subnetted, 1 subnets
O E2 50.50.50.5 [110/20] via 12.12.12.2, 00:02:05, Serial1/0 nssa产生类型7转换5通告路由
156.26.0.0/24 is subnetted, 2 subnets
O E2 156.26.32.0 [110/20] via 12.12.12.2, 00:01:41, Serial1/0 nssa产生类型7转换5通告路由
O E2 156.26.33.0 [110/20] via 12.12.12.2, 00:01:41, Serial1/0 nssa产生类型7转换5通告路由
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/128] via 12.12.12.2, 00:07:03, Serial1/0区域间类型3LSA通告路由
25.0.0.0/24 is subnetted, 1 subnets
O E2 25.25.25.0 [110/20] via 12.12.12.2, 00:02:05, Serial1/0 nssa产生类型7转换5通告路由
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, Serial1/0
----------------------------------------------------------------------------------------------------------------------------------
R2: 34.0.0.0/24 is subnetted, 1 subnets
O N2 34.34.34.0 [110/20] via 23.23.23.3, 00:03:20, Serial1/0 nssa产生类型7通告路由
1.0.0.0/32 is subnetted, 1 subnets
O E2 1.1.1.1 [110/20] via 12.12.12.1, 00:03:20, Serial1/2 AS外部类型5LSA通告路由
50.0.0.0/32 is subnetted, 1 subnets
D 50.50.50.5 [90/156160] via 25.25.25.5, 00:59:47, FastEthernet0/0
156.26.0.0/24 is subnetted, 2 subnets
O N2 156.26.32.0 [110/20] via 23.23.23.3, 00:03:20, Serial1/0 nssa产生类型7通告路由
O N2 156.26.33.0 [110/20] via 23.23.23.3, 00:03:20, Serial1/0 nssa产生类型7通告路由
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, Serial1/0
25.0.0.0/24 is subnetted, 1 subnets
C 25.25.25.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, Serial1/2
----------------------------------------------------------------------------------------------------------------------------------
R3: 34.0.0.0/24 is subnetted, 1 subnets
C 34.34.34.0 is directly connected, Serial1/0
50.0.0.0/32 is subnetted, 1 subnets
O N2 50.50.50.5 [110/20] via 23.23.23.2, 01:07:47, Serial1/2 nssa产生类型7通告路由
156.26.0.0/24 is subnetted, 2 subnets
R 156.26.32.0 [120/1] via 34.34.34.4, 00:00:06, Serial1/0
R 156.26.33.0 [120/1] via 34.34.34.4, 00:00:06, Serial1/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, Serial1/2
25.0.0.0/24 is subnetted, 1 subnets
O N2 25.25.25.0 [110/20] via 23.23.23.2, 01:07:47, Serial1/2 nssa产生类型7通告路由
O*IA 0.0.0.0/0 [110/65] via 23.23.23.2, 00:05:20, Serial1/2 total nssa区域默认产生类型3缺省路由
注意此时没有了到12.0.0.0/24的区域间路由
Total nssa中只有缺省路由