目录
一、实验要求与拓扑搭建
二、实验过程
2.1 IP地址划分
192.168.1.0/24
192.168.1.0/25 区域0(area 0)
192.168.1.0/27 点到点的骨干/30 192.168.1.32 /27 MA的骨干/29
192.168.1.64/27 192.168.1.64/28 192.168.1.80/28
192.168.1.96/27 192.168.1.96/28 192.168.1.112/28
192.168.1.128/25 区域1(area 1)
192.168.1.128/27 点到点的骨干/30
192.168.1.160/27 MA的骨干/29
192.168.1.192/27
192.168.1.2244/27
2.2 IP与环回地址的配置
2.3 开启OSPF进行宣告
注意:在宣告IP时,掩码必须使用反掩码来进行宣告
2.4 使R1与R2放弃选举
路由器状态默认为DR,放弃选举即没有BDR
R2操作与R1相同,display ospf peer 查看选举状态
2.5 R4上添加缺省,实现全网可达
2.6 在接口之间进行加密,保障更新安全
[r1-GigabitEthernet0/0/0] ospf authentication-mode md5 1 cipher 123456
[r2-GigabitEthernet0/0/0] ospf authentication-mode md5 1 cipher 123456
[r3-GigabitEthernet0/0/0] ospf authentication-mode md5 1 cipher 123456
[r3-GigabitEthernet0/0/1] ospf authentication-mode md5 1 cipher 123456
[r4-GigabitEthernet0/0/0] ospf authentication-mode md5 1 cipher 123456
2.7 汇总区域1的路由,减少路由条目
2.8 R3上添加空接口,避免环路
实验完成!(若文章中有内容存在错误,敬请各位指出,有什么想法欢迎大家评论区讨论)