扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
实验:OSPF高级配置(三)绝对末节区域
本篇只介绍绝对末节区域的配置,及实验结果显示。如需查看之前配置,可参看本专题前两篇文章实验:OSPF高级配置(一)连通性目标实现、实验:OSPF高级配置(二)路由汇总 。
拓扑图:
将区域1配置为绝对末节区域,要R2、R3、R4均设置为末节路由器,并且R2不能转发汇总信息到区域1内(只通告给R3、R4默认路由)。
路由器配置:
R2:
R2(config)#router ospf 1
R2(config-router)#area 1 stub no-summary
R3:
R3(config)#router ospf 1
R3(config-router)#area 1 stub
R4:
R4(config)#router ospf 1
R4(config-router)#area 1 stub
查看末节区域内的路由表:
R3#sh ip route
Codes: C - connected, S - static, 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
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
Gateway of last resort is 192.168.17.1 to network 0.0.0.0
C 192.168.30.0/24 is directly connected, FastEthernet1/0
C 192.168.17.0/24 is directly connected, FastEthernet0/0
O*IA 0.0.0.0/0 [110/2] via 192.168.17.1, 00:06:56, FastEthernet0/0
R4#sh ip route
Codes: C - connected, S - static, 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
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
Gateway of last resort is 192.168.30.1 to network 0.0.0.0
C 192.168.30.0/24 is directly connected, FastEthernet0/0
O 192.168.17.0/24 [110/2] via 192.168.30.1, 00:07:13, FastEthernet0/0
O*IA 0.0.0.0/0 [110/3] via 192.168.30.1, 00:07:13, FastEthernet0/0
文章来源:http://tiger506.blog.51cto.com/318536/169925本文出自 51CTO.COM技术博客
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者