17-高级路由:OSPF区域类型:Stub、Totally Stubby

一、实验拓扑:

二、命令部署:

1、将Area 2变为:Stub区域
R2(config)#router osp 110
R2(config-router)#area 2 stub

R4(config)#router ospf 110
R4(config-router)#area 2 stub
Note:R2先部署Stub,R2、R4邻居关系会Down掉,直至R4也部署Stub,邻居才会重新建立。

2、将O IA默认路由cost调为100
R2(config)#router ospf 110
R2(config-router)#area 2 default-cost 100

3、将Area 2变为:Totally Stubby区域
R2(config)#router ospf 110
R2(config-router)#area 2 stub no-summary

R4(config)#router ospf 110
R4(config-router)#area 2 stub no-summary

三、验证:
1、将Area 2 变为Stub区域:R4无O E1、 OE2路由,增加1条O IA默认路由。
R4#show ip route ospf
O*IA 0.0.0.0/0 [110/2] via 24.1.1.2, 00:01:47, FastEthernet0/0

2、将O IA默认路由cost调为100
R4#show ip route ospf
O*IA 0.0.0.0/0 [110/101] via 24.1.1.2, 00:01:09, FastEthernet0/0

3、将Area 2变为:Totally Stubby区域:R4上重新查看路由,是否只有O IA 1条路由。
R4#show ip route ospf
O*IA 0.0.0.0/0 [110/101] via 24.1.1.2, 00:02:10, FastEthernet0/0

17-高级路由:OSPF区域类型:Stub、Totally Stubby

猜你喜欢

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