频道栏目
首页 > 资讯 > CCNA > 正文

菜鸟学习CCNA-浮动路由

11-07-09        来源:[db:作者]  
收藏   我要投稿

浮动静态路由是一种特殊的静态路由,通过配置一个比主路由的管理距离更大的静态路由,保证网络中主路由失效的情况下,提供备份路由。但在主路由存在的情况下它不会出现在路由表中;浮动静态路由主要用于拔号备份。
网络拓扑图:
 

具体配置:
R1(config)#ip route 2.2.2.0 255.255.255.0 192.168.12.2  130
// 将静态路由的管理距离设置为130;,因为RIP 的管理距离为120,小于在静态路由中设定的130,而静态路由处于备份的地位
R1(config)#route rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 1.0.0.0
R1(config-router)#network 192.168.23.0
 
R1(config)#ip route 2.2.2.0 255.255.255.0 192.168.12.2  130
R2(config)#route rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 192.168.23.0
R2(config-router)#network 2.0.0.0
 
路由检测:
R1# show ip route
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, FastEthernet0/1
     2.0.0.0/24 is subnetted, 1 subnets
R       2.2.2.0 [120/1] via 192.168.23.2, 00:00:26, Serial0/0/0
C    192.168.12.0/24 is directly connected, FastEthernet0/0
C    192.168.23.0/24 is directly connected, Serial0/0/0
IP 的管理距离为120,小于在静态路由中设定的130,而静态路由处于备份的地位;
 
进入路由器接口模式关闭端口f0/0;进行查看:
R1#config terminal
R1#intS0/0/0
R1# shutdown
R1#show ip route
 1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, FastEthernet0/1
     2.0.0.0/24 is subnetted, 1 subnets
S       2.2.2.0 [130/0] via 192.168.12.2
C    192.168.12.0/24 is directly connected, FastEthernet0/0

相关TAG标签
上一篇:菜鸟学习CCNA-RIP协议
下一篇:配置单区域OSPF认证
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站