一、题目![](https://i-blog.csdnimg.cn/blog_migrate/3ec26fda6562d0098800efd07aff0d8d.jpeg)
二、步骤
1、创建环回接口
R1
R2
R3
R4
R5 (只有一个环回接口)
2、给端口配置IP地址
R1
R2
R3
R4
R5
3、配置到达AR5的缺省路由
R1
[r1]ip route-static 0.0.0.0 0.0.0.0 192.168.1.130
[r1]ip route-static 0.0.0.0 0.0.0.0 192.168.1.162
R2
[r2]ip route-static 0.0.0.0 0.0.0.0 192.168.1.146
R3
[r3]ip route-static 0.0.0.0 0.0.0.0 192.168.1.178
R4
[r4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.194
[r4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.210
4、配置静态路由
R1
R2
R3
R4
R5
5、设置浮动静态
[r5]ip route-static 192.168.1.96 27 192.168.1.193 preference 61
[r5]ip route-static 192.168.1.96 27 192.168.1.209 preference 61
测试:
总结
静态路由不会覆盖,发现写错一定要删,确定每一步的思路及作用非常重要,避免许多麻烦,对于一台路由器上的多个网段,一开始就考虑汇总可以节省路由条目,先完成小网可达再逐渐实现全网可达,每一步都要小心!!!