您的位置:首页 > 其它

实验二十九、OSPF 路由汇总配置

2010-10-13 21:32 260 查看
实验二十九、OSPF 路由汇总配置
一、 实验目的
1. 掌握OSPF 的配置
2. 理解OSPF 路由汇总的意义
二、 应用环境
在大规模网络中,路由表的非常庞大,降低了转发速度,通常在子网边界做汇总,这
样可以减少路由表的长度
三、 实验设备
1. DCR-1751 三台
2. CR-V35MT 一条
3. CR-V35FC 一条
四、 实验拓扑



五、 实验要求
配置表
Router-A Router-B Router-C
S1/1(DCE) 10.10.11.1/24 S/1/0(DTE) 10.10.11. 2/24 F0/0 192.168.2.2/24
F0/0 10.10.10.1/24 F0/0 192.168.2.1/24 E1/0 192.168.3.1/24
路由器B 为ABR
六、 实验步骤
第一步:参照实验三和上表配置各接口地址,并测试连通性
第二步:路由器A 的配置
Router-A#conf Router-A_config#router ospf 100
Router-A_config_ospf_100#network 10.10.10.0 255.255.255.0 area 1
Router-A_config_ospf_100#network 10.10.11.0 255.255.255.0 area 1
Router-A_config_ospf_100#^Z
第三步:路由器B 的配置
Router-B#conf
Router-B_config#router ospf 100
Router-B_config_ospf_100#network 10.10.11.0 255.255.255.0 area 1
!注意区域的划分在接口上
Router-B_config_ospf_100#network 192.168.2.0 255.255.255.0 area 0
Router-B_config_ospf_100#^Z
第四步:路由器C 的配置
Router-C#conf
Router-C_config#router ospf 100
Router-C_config_ospf_100#network 192.168.2.0 255.255.255.0 area 0
Router-C_config_ospf_100#network 192.168.3.0 255.255.255.0 area 0
Router-C_config_ospf_100#^Z
第五步:查看路由表
Router-A#sh ip route
Codes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected
D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area
ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2
OE1 - OSPF external type 1, OE2 - OSPF external type 2
DHCP - DHCP type
VRF ID: 0
C 10.10.10.0/24 is directly connected, FastEthernet0/0
C 10.10.11.0/24 is directly connected, Serial1/1
O IA 192.168.2.0/24 [110,1601] via 192.168.1.2(on Serial1/1)
O IA 192.168.3.0/24 [110,1611] via 192.168.1.2(on Serial1/1) !区域间的路由
Router-B#sh ip route
Codes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected
D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area
ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2
OE1 - OSPF external type 1, OE2 - OSPF external type 2
DHCP - DHCP type
VRF ID: 0 O 10.10.10.0/24 [110,1601] via 192.168.1.1(on Serial1/0)
C 10.10.11.0/24 is directly connected, Serial1/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0
O 192.168.3.0/24 [110,11] via 192.168.2.2(on FastEthernet0/0)
!对ABR 来说是区域内的路由
Router-C#sh ip route
Codes: C - connected, S - static, R - RIP, B - BGP
D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area
ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2
OE1 - OSPF external type 1, OE2 - OSPF external type 2
O IA 10.10.10.0/24 [110,1602] via 192.168.2.1(on FastEthernet0/0)
O IA 10.10.11.1/32 [110,1601] via 192.168.2.1(on FastEthernet0/0)
O IA 10.10.11.2/32 [110,3201] via 192.168.2.1(on FastEthernet0/0) !区域间的路由
C 192.168.2.0/24 is directly connected, FastEthernet0/0
C 192.168.3.0/24 is directly connected, Ethernet1/0
第六步:在路由器B 上做路由汇总
Router-B#conf
Router-B_config#router ospf 100
Router-B_config_ospf_100#area 1 range 10.10.0.0 255.255.0.0
Router-B_config_ospf_100#network 192.168.2.0 255.255.255.0 area 0
Router-B_config_ospf_100#^Z
第七步:再次查看路由器C 上的路由表
Router-C#sh ip route
Codes: C - connected, S - static, R - RIP, B - BGP
D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area
ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2
OE1 - OSPF external type 1, OE2 - OSPF external type 2
O IA 10.10.0.0/16 [110,1602] via 192.168.2.1(on FastEthernet0/0) !注意新的掩码
C 192.168.2.0/24 is directly connected, FastEthernet0/0
C 192.168.3.0/24 is directly connected, Ethernet1/0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息