要求如下
首先分配ip,我做这道题目的时候ip分配得不是很合理,因为IP很充足我就随便分配了,IP分配如下
然后进路由器端口进行IP配置,这个命令找不到了我就不粘贴了
接下来开始配置ospf,然后分区域,宣告
然后因为r4不能直接宣告,但是又要全网可达,所以肯定要配置缺省路由
[r4-ospf-1]default-route-advertise always
现在已经全网可达了,最后因为安全性配置一下ospf认证就好啦
[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