要求:
1.整个网络IP地址为192.168.1.0/24,自己规划
2、area 0区域手工设置R1为DR、R2为BDR
3.R3-R5之间使用密文认证方式
4.R1、R2、R5上配置环回接口,但是R5环回接口不能宣告进OSPF
5.全网可达
分析
1.由图可知,共有3个广播域。规划4个网段,三个环回一个,主干道一个
2.手工配置R1的RID>R2的RID
3.3-5之间使用加密认证
4.需要配置缺省路由,配置环回
5.可以ping通
子网划分
分为4个子网
192.168.1.0/26 ------主干道
----192.168.1.64/26
----192.168.1.128/26
----192.168.1.192/26
配置
进入接口配IP
启动OSPF,并进行宣告
修改R1,R2优先级
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ospf dr-priority 3
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ospf dr-priority 2
<R1>reset ospf process
加密认证
[r3]int g 0/0/1
[r3-GigabitEthernet0/0/1]ospf authentication-mode md5 1 cipher 123456
[r3-GigabitEthernet0/0/1]
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
[r4-GigabitEthernet0/0/0]q
[r4]int g 0/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
最后测试:
全网可达。
实验结束!!!