#ospf实验
实验要求
实验分析
-
划分192.168.1.0/24
-
改变优先级,让R1,R2不参与DR,BDR选举
-
R4配置,宣告指向4.4.4.0的缺省路由
-
接口进行手工认证,保障更新安全
-
使用区域路由汇总及建立空接口
实验操作
R1
[R1]interface g0/0/0//进入接口
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 27//配置IP
[R1]interface LoopBack 0//进入环回
[R1-LoopBack0]ip address 192.168.1.33 27//配置IP
[R1]ospf//进入ospf,默认进程为1,RID自选
[R1-ospf-1]area 0//进入区域0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255//宣告
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ospf dr-priority 0//修改优先级
[R1-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456//手工认证
其余配置类似
R3(ABR设备)
[R3-ospf-1]asbr-summary 192.168.1.0 255.255.255.128//区域路由汇总
[R3]ip route-static 192.168.1.0 25 NULL 0//建立空接口
R4
[R4-ospf-1]default-route-advertise always//强制下发缺省路由