Cisco路由器的ospf多区域动态路由配置

一 实验拓扑图

Cisco路由器的ospf多区域动态路由配置

二 实验目的

通过配置ospf路由协议,实现多区域之间主机的通信。

三 实验环境

GNS3,Windows10操作系统,SecureCRT8.0

四 实验过程

1.对路由器R1,R2,R3,R4进行接口ip配置:
R1:
conf t
int f0/0
ip add 192.168.2.1 255.255.255.0
no sh
ex
int f0/1
ip add 192.168.5.2 255.255.255.0
no sh
ex
int f1/0
ip add 192.168.1.1 255.255.255.0
no sh
end
R2:
conf t
int f0/0
ip add 192.168.2.2 255.255.255.0
no sh
ex
int f0/1
ip add 192.168.3.1 255.255.255.0
no sh
end
R3:
conf t
int f0/0
ip add 192.168.4.1 255.255.255.0
no sh
ex
int f0/1
ip add 192.168.3.2 255.255.255.0
no sh
end
R4:
conf t
int f0/0
ip add 192.168.4.2 255.255.255.0
no shu
ex
int f0/1
ip add 192.168.5.1 255.255.255.0
no shu
end

2.配置R1,R2,R3,R4的环路地址loopback:
R1:
conf t
int lo 0
ip add 1.1.1.1 255.255.255.255
no sh
end
R2:
conf t
int lo 0
ip add 2.2.2.2 255.255.255.255
no sh
end
R3:
conf t
int lo 0
ip add 3.3.3.3 255.255.255.255
no sh
end
R4:
conf t
int lo 0
ip add 4.4.4.4 255.255.255.255
no sh
end

3.对R1,R2,R3,R4的ospf多区域路由配置:
R1:
conf t
router ospf 1
router-id 1.1.1.1
net 192.168.1.0 0.0.0.255 a 0
net 192.168.2.0 0.0.0.255 a 0
net 192.168.5.0 0.0.0.255 a 0
end
R2(ABR):
conf t
router ospf 1
router-id 2.2.2.2
net 192.168.2.0 0.0.0.255 a 0
net 192.168.3.0 0.0.0.255 a 1
end
R3:
conf t
router ospf 1
router-id 3.3.3.3
net 192.168.3.0 0.0.0.255 a 1
net 192.168.4.0 0.0.0.255 a 1
net 192.168.6.0 0.0.0.255 a 1
end
R4(ABR):
conf t
router ospf 1
router-id 4.4.4.4
net 192.168.4.0 0.0.0.255 a 1
net 192.168.5.0 0.0.0.255 a 0
end

3.配置完成之后查看路由表:
sh ip rou
Cisco路由器的ospf多区域动态路由配置
Tips:IA表示不同区域之间路由器学习获得

4.配置PC机上的ip:
PC1:ip 192.168.1.100 192.168.1.1
PC2:ip 192.168.6.100 192.168.6.1

五 实验结果

两机相ping,都能ping通,实验完成。
Cisco路由器的ospf多区域动态路由配置
Cisco路由器的ospf多区域动态路由配置

六 实验总结

OSPF具有以下特点:
1.可适应大规模网络
2.路由变化收敛速度快
3.无路由环
4.可支持可变长子网掩码(VLSM)
5.支持区域划分
6.支持以组播地址发送协议报

OSPF区域类型:
Area 0:骨干区域
Area xxx:非骨干区域包括:标准区域,末梢区域,完全末梢区域,非纯末梢区域

路由类型:
DR(主路由)
BDR(备路由)
otherR(其他路由)
ABR(区域间路由)
ASBR(外部路由)