实验二十三、多区域OSPF 配置

实验二十三、多区域OSPF 配置

一、 实验目的

1. 掌握多区域OSPF 的配置

2. 理解OSPF 区域的意义

二、 应用环境

在大规模网络中,我们通常划分区域减少资源消耗,并将拓扑的变化本地化。

三、 实验设备

1. DCR-1751 三台

2. CR-V35MT 一条

3. CR-V35FC 一条

四、 实验拓扑

clip_image002

五、 实验要求

配置表

Router-A Router-B Router-C

S1/1(DCE) 192.168.1.1 S/1/0(DTE) 192.168.1.2 F0/0 192.168.2.2

F0/0 192.168.0.1 F0/0 192.168.2.1 E1/0 192.168.3.1

路由器B 为ABR

六、 实验步骤

第一步:参照实验三和上表配置各接口地址,并测试连通性

第二步:路由器A 的配置

Router-A#conf

Router-A_config#router ospf 100 Router-A_config_ospf_100#network 192.168.0.0 255.255.255.0 area 1

Router-A_config_ospf_100#network 192.168.1.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 192.168.1.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 192.168.0.0/24 is directly connected, FastEthernet0/0

C 192.168.1.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 192.168.0.0/24 [110,1601] via 192.168.1.1(on Serial1/0) C 192.168.1.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 192.168.0.0/24 [110,1602] via 192.168.2.1(on FastEthernet0/0)

O IA 192.168.1.1/32 [110,1601] via 192.168.2.1(on FastEthernet0/0)

O IA 192.168.1.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

你可能感兴趣的:(职场,休闲,区域,实验,ospf)