15-高级路由:OSPF区域间区域×××总
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了15-高级路由:OSPF区域间区域×××总相关的知识,希望对你有一定的参考价值。
一、实验拓扑:
二、命令部署:
1、区域间汇总命令:
①基本汇总:
R1(config)#router ospf 110
R1(config-router)#area 0 range 202.100.8.0 255.255.252.0
R2(config)#router ospf 110
R2(config-router)#area 0 range 202.100.8.0 255.255.252.0
②拓展知识Advertise、cost:
R1(config)#router ospf 110
R1(config-router)#area 0 range 202.100.8.0 255.255.252.0 not-advertise //R3上看不到汇总条目
R1(config-router)#area 0 range 202.100.8.0 255.255.252.0 cost 10 //默认cost值变为10
2、域×××总命令:
①基本汇总:
R3(config)#router ospf 110
R3(config-router)#summary-address 192.168.8.0 255.255.252.0
②拓展知识Tag、not-advertise:
R3(config)#router ospf 110
R3(config-router)#summary-address 192.168.8.0 255.255.252.0 tag 2018 打标签,效果要看详细路由才可以看到。
R2(config)#router ospf 110
R2(config-router)#route-map abc permit 10
R2(config-route-map)#match tag 2018
R2(config-route-map)#set metric 100 (没有做出效果???)
3、修改OSPF带宽计算分子值
R4(config)#router ospf 100
R4(config-router)#auto-cost reference-bandwidth 10000 将计算分子值改为10000
4、修改接口带宽值(逻辑上)
R4(config)#int f0/0
R4(config-if)#bandwidth 10000
三、验证:
1、区域间汇总查看:
①R2查看域间汇总后效果:根据路由加表原则,选择更精细的24位加表
R2#show ip route
O 202.100.8.0/24 [110/2] via 12.1.1.1, 00:41:31, FastEthernet0/0
O 202.100.9.0/24 [110/2] via 12.1.1.1, 00:41:31, FastEthernet0/0
O 202.100.10.0/24 [110/2] via 12.1.1.1, 00:41:21, FastEthernet0/0
O 202.100.11.0/24 [110/2] via 12.1.1.1, 00:41:30, FastEthernet0/0
②R3查看域间汇总后效果:R3有3类的LSA,O IA
R3#show ip route
O IA 202.100.8.0/22 [110/2] via 13.1.1.1, 00:00:36, FastEthernet0/0
③R4查看域间汇总后效果:
因为R2未做汇总,所以显示所有路由条目。
R4#show ip route ospf
O IA 202.100.10.0/24 [110/3] via 24.1.1.2, 00:05:03, FastEthernet0/0
O IA 202.100.11.0/24 [110/3] via 24.1.1.2, 00:05:03, FastEthernet0/0
O IA 202.100.8.0/24 [110/3] via 24.1.1.2, 00:05:03, FastEthernet0/0
O IA 202.100.9.0/24 [110/3] via 24.1.1.2, 00:05:03, FastEthernet0/0
R2做汇总以后,R4的效果:
R4#show ip route ospf
O IA 202.100.8.0/22 [110/3] via 24.1.1.2, 00:00:26, FastEthernet0/0
2、域×××总查看:
①R3未做汇总前:R4上有明细的O E1的明细条目,同理R1、R2也有。
R4#show ip route ospf
O E1 192.168.8.0/24 [110/4] via 24.1.1.2, 00:00:14, FastEthernet0/0
O E1 192.168.9.0/24 [110/4] via 24.1.1.2, 00:00:14, FastEthernet0/0
O E1 192.168.10.0/24 [110/4] via 24.1.1.2, 00:00:14, FastEthernet0/0
O E1 192.168.11.0/24 [110/4] via 24.1.1.2, 00:00:14, FastEthernet0/0
②R3做汇总后:R4上只有1条O E1汇总路由
R4#show ip route ospf
O E1 192.168.8.0/22 [110/4] via 24.1.1.2, 00:00:24, FastEthernet0/0
3、域间汇总拓展
R3#show ip route ospf
O IA 202.100.8.0/22 [110/11] via 13.1.1.1, 00:00:14, FastEthernet0/0
4、域×××总拓展
①给域×××总路由打标签:
R4#show ip route 192.168.8.0
Routing entry for 192.168.8.0/22, supernet
Known via "ospf 110", distance 110, metric 4
Tag 2018, type extern 1
Last update from 24.1.1.2 on FastEthernet0/0, 00:01:50 ago
Routing Descriptor Blocks:
- 24.1.1.2, from 3.3.3.3, 00:01:50 ago, via FastEthernet0/0
Route metric is 4, traffic share count is 1
Route tag 2018
②利用标签抓取流量,增加Metric
该实验貌似博主没做出效果
以上是关于15-高级路由:OSPF区域间区域×××总的主要内容,如果未能解决你的问题,请参考以下文章