拓扑图
要求
- 整个网络ip地址为192.168.1.0/24
- area 0区域手工设置R1为DR、R2为BDR
- R3-R5之间使用密文认证方式
- R1、R2、R5上配置回环接口,但是R5回环接口不能宣告OSPF
- 全网可达
思路
- 划分192.168.1.0/24,一个骨干,三个环回
- 启动OSPF,注意区域划分
- 设置DR/BDR
- 认证 测试
配置IP及环回地址
R1
R2
R3
R4
R5
启动OSPF
手工设置DR、BDR
密文认证
[R3]int g0/0/1
[R3-GigabitEthernet0/0/1]ospf authentication-mode md5 1 cipher 123456
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
[R4-GigabitEthernet0/0/0]q
[R4]int g0/0/1
[R4-GigabitEthernet0/0/1]ospf authentication-mode md5 1 cipher 123456
[R5]int g 0/0/0
[R5-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
Test