19-高级路由:OSPF区域类型:Totally Not-So-Stubby

一、实验拓扑:
19-高级路由:OSPF区域类型:Totally Not-So-Stubby
二、命令部署:
R1(config)#router ospf 110
R1(config-router)#area 1 nssa no-summary 部署完全非纯末节才可以

R3(config)#router ospf 110
R3(config-router)#area 1 nssa no-summary

1、R3、R5部署OSPF Area 35:
R3(config)#router ospf 35
R3(config-router)#network 35.1.1.0 0.0.0.255 area 35

R5(config)#router ospf 35
R5(config-router)#network 5.5.5.0 0.0.0.255 area 35
R5(config-router)#network 35.1.1.0 0.0.0.255 area 35

2、R3上重分发 OSPF 35到OSPF 110:
R3(config)#router ospf 110
R3(config-router)#redistribute ospf 35 subnets

3、R3上重分发 OSPF 110到OSPF 35:
R3(config)#router ospf 35
R3(config-router)#redistribute ospf 110 subnets

4、先把上个实验命令删除:
R1(config)#router ospf 110
R1(config-router)#no area 1 nssa no-redistribution 删除重分发路由
R1(config-router)#no area 1 nssa default-information-originate 删除默认路由语句
三、验证:
1、NSSA区域有外部OSPF区域路由条目,其它区域没有:
R2#show ip route ospf
1.0.0.0/24 is subnetted, 1 subnets
O 1.1.1.0 [110/2] via 12.1.1.1, 00:00:16, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/3] via 12.1.1.1, 00:00:16, FastEthernet0/0
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/2] via 24.1.1.4, 00:00:16, FastEthernet1/0
O 202.100.10.0/24 [110/2] via 12.1.1.1, 00:00:16, FastEthernet0/0
O 202.100.11.0/24 [110/2] via 12.1.1.1, 00:00:16, FastEthernet0/0
13.0.0.0/24 is subnetted, 1 subnets
O IA 13.1.1.0 [110/2] via 12.1.1.1, 00:00:16, FastEthernet0/0
O 202.100.8.0/24 [110/2] via 12.1.1.1, 00:00:16, FastEthernet0/0
O 202.100.9.0/24 [110/2] via 12.1.1.1, 00:00:16, FastEthernet0/0

2、反向:R5也没有内部区域的路由条目:
R5#show ip route ospf
3.0.0.0/24 is subnetted, 1 subnets
O E2 3.3.3.0 [110/1] via 35.1.1.3, 00:10:41, FastEthernet0/0
13.0.0.0/24 is subnetted, 1 subnets
O E2 13.1.1.0 [110/1] via 35.1.1.3, 00:10:41, FastEthernet0/0

猜你喜欢

转载自blog.51cto.com/13856092/2137520
今日推荐