1、子网划分与ip配置
R1配置:
R2配置:
R3配置:
R4配置:
2、修改选举优先级
进入接口修改:
[R1-GigabitEthernet0/0/0]ospf dr-priority 0
检测R1、R3:display ospf peer
3,4、子网划分、汇总,手工认证
R3作为缺省路由机与黑洞机:
[R3-ospf-1-area-0.0.0.0]abr-summary 192.168.1.0 255.255.255.128(缺省路由配置)
[R3]ip route-static 192.168.1.0 25 null 0(空接口配置)
手工认证:
[R3-GigabitEthernet0/0/1]ospf authentication-mode md5 1 cipher 1(keyid相同,密码相同)
检测:
R4路由表: