1. 实验目的:学习RIP浮动静态路由的原理,配置及备份应用
2. 实验拓扑:
3. 实验步骤:
本实验经过修改静态路由的管理距离为130,使得路由器在选路时优先选择RIP,而静态路由做为备份
#int loopback 0
#ip address 1.1.1.1
#int fa0/0
#ip address 192.168.1.1 255.255.255.0
#no shutdown
#int fa0/1
#ip address 192.168.2.1 255.255.255.0
#no shutdown
//配置静态路由及rip
#ip route 2.2.2.0 255.255.255.0 192.168.1.2 130
//上面的静态路由经过192.168.1.2转发,而且管理距离是130,优先级低于RIP的120,因此若是同时存在时,将优先使用RIP
#router rip
#version 2
#no auto-summary
#network 1.1.1.0
#network 192.168.2.0
#int loopback 0
#ip address 2.2.2.2
#int fa0/0
#ip address 192.168.1.2 255.255.255.0
#no shutdown
#int fa0/1
#ip address 192.168.2.2 255.255.255.0
#no shutdown
//配置静态路由及rip
#ip route 1.1.1.0 255.255.255.0 192.168.1.1 130
//上面的静态路由经过192.168.1.1转发,而且管理距离是130,优先级低于RIP的120,因此若是同时存在时,将优先使用RIP
#router rip
#version 2
#no auto-summary
#network 2.2.2.0
#network 192.168.2.0
3.3.1 在R1上查看路由表
上图显示:R1是将RIP路由放入路由表中,因RIP的管理距离是120,小于静态设定的130,因此静态路由处于备份状态
3.3.2 在R1上将fa0/1接口关闭,而后查看路由表
上图显示:当fa0/1的RIP路由中断后,备份的静态路由被放入路由表,从而实现备份链路的做用。