浮动路由配置实验:
企业浮动路由可以增加企业网络的可靠性,当一条线路出现故障时,隐藏的浮动路由便会出现在路由条目中,保证网络的可靠性。
如上图所示
R1上配置如下:
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.2.1 24
[R1]interface g0/0/2
[R1-GigabitEthernet0/0/2]ip address 192.168.3.1 24
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24
[R1]ip route-static 192.168.4.0 255.255.255.0 192.168.2.2 preference 80
[R1]ip route-static 192.168.4.0 255.255.255.0 192.168.3.2 preference 90
R2上配置如下:
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]ip address 192.168.2.2 24
[R2]interface g0/0/2
[R2-GigabitEthernet0/0/2]ip address 192.168.3.2 24
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.4.254 24
[R2]ip route-static 192.168.1.0 255.255.255.0 192.168.2.1 preference 80
[R2]ip route-static 192.168.1.0 255.255.255.0 192.168.3.1 preference 90
如上图所示,上面线路(g0/0/1)是主线路,当主线路故障时,数据将会走下面线路(g0/0/2)。
原文地址:http://blog.51cto.com/11806823/2164311