1、192.168.1.0/24子网划分
192.168.1.0/26 骨干 192.168.1.0/30 ..........192.168.1.60/30 借了4位,即16个网段(中间省略)
192.168.1.64/26 R1 192.168.1.61/27 192.168.1.96/27 环回地址
192.168.1.128/26 R2 192.168.1.128/27 192.168.1.160/27 环回地址
192.168.1.192/26 备用地址
2、配置R1、R2、R3的环回地址及骨干IP地址
3、RIP宣告(宣告主类)
[r1] rip
[r1-rip-1] version 2
[r1-rip-1] undo summary
[r1-rip-1] network 192.168.1.0
[r2] rip
[r2-rip-1] version 2
[r2-rip-1] undo summary
[r2-rip-1] network 192.168.1.0
[r3] rip
[r3-rip-1] version 2
[r3-rip-1] undo summary
[r3-rip-1] network 192.168.1.0
以R1为例:(R2、R3操作相同)
4、在R3的RIP上添加缺省,实现全网可达
[r3] rip
[r3-rip-1]default-route originate
5、在R1与R2,R2与R3之间进行加密,实现保障更新安全
[r1]interface G0/0/0
[r1-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123456(密码自设,两端必须一致)
[r2]interface G0/0/1
[r2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123456
[r3]interface G0/0/0
[r3-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123456
6、进行rip的环回汇总,减少路由条目
[r1]interface G0/0/0
[r1-GigabitEthernet0/0/0]rip summary-address 192.168.1.64 255.255.255.192
[r2]interface G0/0/0
[r2-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192
[r2]interface G0/0/1
[r2-GigabitEthernet0/0/1]rip summary-address 192.168.1.128 255.255.255.192
7、添加空接口,实现避免环路
[r1]ip route-static 192.168.1.64 26 NULL0
[r2]ip route-static 192.168.1.128 26 NULL0
最后在各自的路由器上ping其他网段的IP,检验是否全网可达