summary-address命令是用来汇总重分发进ospf区域的路由,在ASBR上使用;ospf区域间汇总使用area range; 如下例子:R3宣告192.168.16~19.0的网络,R2上将rip路由重分发进ospf区域,并使用summary-address做路由汇总,路由汇总目的将192.168.16.0/24与192.168.17.0/24汇总成192.168.16.0/23,192.168.18.0/24与192.168.19.0/24汇总成192.168.18.0/24, 然后在R1上查看所学习到的路由是否为汇总路由;
主要配置信息如下: R1: router ospf 110 router-id 1.1.1.1 network 12.1.1.1 0.0.0.0 area 0 R2: router ospf 110 router-id 2.2.2.2 summary-address 192.168.16.0 255.255.254.0 summary-address 192.168.18.0 255.255.254.0 redistribute rip subnets router rip version 2 network 23.0.0.0 no auto-summary R3: router rip version 2 network 23.0.0.0 network 192.168.16.0 network 192.168.17.0 network 192.168.18.0 network 192.168.19.0 no auto-summary 在R1上查看路由信息:
实验完成! |
不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流
GMT+8, 2025-4-30 21:02 , Processed in 0.167309 second(s), 15 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.