通过浮动的静态路由实现链路备份

上传人:ji****72 文档编号:39567298 上传时间:2018-05-17 格式:DOC 页数:7 大小:92.50KB
返回 下载 相关 举报
通过浮动的静态路由实现链路备份_第1页
第1页 / 共7页
通过浮动的静态路由实现链路备份_第2页
第2页 / 共7页
通过浮动的静态路由实现链路备份_第3页
第3页 / 共7页
通过浮动的静态路由实现链路备份_第4页
第4页 / 共7页
通过浮动的静态路由实现链路备份_第5页
第5页 / 共7页
点击查看更多>>
资源描述

《通过浮动的静态路由实现链路备份》由会员分享,可在线阅读,更多相关《通过浮动的静态路由实现链路备份(7页珍藏版)》请在金锄头文库上搜索。

1、通过浮动的静态路由实现链路备份通过浮动的静态路由实现链路备份【实验名称实验名称】 通过浮动的静态路由实现链路备份【实验目的实验目的】 掌握通过改变静态路由的管理距离值来实现浮动的静态路由。【背景描述背景描述】 你是公司高级网络管理员,公司内部有一个很重要的服务器所在网段为 192.168.12.0/24,平常访问通过 R1,R3 的 OSPF 路由协议,为了保证该网段随时能够访问, 不能因为链路故障出问题,要求你实现一个备份冗余的功能,请给予支持。【实现功能实现功能】 保证在拥有冗余链路的时候,主链路失效,备份链路工作。【实验拓扑实验拓扑】 【实验设备实验设备】 R2624(3 台) V35D

2、CE(2 根) 、V35DTE(2 根)【实验步骤实验步骤】 第一步:第一步:基本配置 Red-Giant(config)#hos R3 R3(config)#int s0 R3(config-if)#ip add 192.168.13.3 255.255.255.0 R3(config-if)#clock rate 64000 R3(config-if)#no sh R3(config-if)#int f0 R3(config-if)#ip add 192.168.4.1 255.255.255.0 R3(config-if)#no sh R3(config)#int f1 R3(confi

3、g-if)#ip add 192.168.3.1 255.255.255.0 R3(config-if)#no sh R3(config)#int s1 R3(config-if)#ip add 192.168.23.3 255.255.255.0 R3(config-if)#cl ra 64000 R3(config-if)#no sh R3(config-if)#end Red-Giant(config)# Red-Giant(config)# hos R2 R2(config)#int s0 R2(config-if)# int s0 R2(config-if)#ip add 192.1

4、68.23.2 255.255.255.0 R2(config-if)#no sh R2(config-if)#int f0 R2(config-if)#ip add 192.168.12.2 255.255.255.0 R2(config-if)#no sh R2(config-if)#end Red-Giant(config)#hos R1 R1(config)#int s0 R1(config-if)#ip add 192.168.12.1 255.255.255.0 R1(config-if)#no sh R1(config-if)#int s0 R1(config-if)#no sh

5、 R1(config-if)#end R1#conf t R1(config)#int f0 R1(config-if)#ip add 192.168.12.1 255.255.255.0 R1(config-if)#no sh验证测试:验证测试:R1#ping 192.168.13.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echoes to 192.168.13.3, timeout is 2 seconds: ! R2#ping 192.168.23.3Type escape sequence to abort. Se

6、nding 5, 100-byte ICMP Echoes to 192.168.23.3, timeout is 2 seconds: !第二步:第二步:配置主链路路由以及备份链路路由 R1(config)#router os 1 R1(config-router)#net 192.168.13.0 0.0.0.255 area 0 R1(config-router)#net 192.168.12.0 0.0.0.255 area 2 R3(config)#router os 1 R3(config-router)#net 192.168.13.0 0.0.0.255 area 0 R3(c

7、onfig-router)#net 192.168.4.0 0.0.0.255 area 1 R3(config-router)#net 192.168.3.0 0.0.0.255 area1R3(config)#ip route 192.168.12.0 255.255.255.0 serial 1 150 ! 配置备份路由的管理距离必须大 于主路由的管理距离 验证测试:验证测试: R3#sh ip ro Codes: C - connected, S - static, R - RIPO - OSPF, IA - OSPF inter area E1 - OSPF external typ

8、e 1, E2 - OSPF external type 2Gateway of last resort is not setO IA 192.168.12.0/24 110/49 via 192.168.13.1, 00:00:42, Serial0 C 192.168.13.0/24 is directly connected, Serial0 C 192.168.3.0/24 is directly connected, FastEthernet1 C 192.168.4.0/24 is directly connected, FastEthernet0 C 192.168.23.0/2

9、4 is directly connected, Serial1第三步:第三步:当主链路 down 的时候,可以通过备份链路通信 R3(config)#int s0 R3(config-if)#shut R3(config-if)# %UPDOWN: Line protocol on Interface Serial0, changed state to downend R3# %CHANGED: Interface Serial0, changed state to administratively down R3#sh ip ro Codes: C - connected, S - sta

10、tic, R - RIPO - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2Gateway of last resort is not set S 192.168.12.0/24 is directly connected, Serial1 C 192.168.3.0/24 is directly connected, FastEthernet1 C 192.168.4.0/24 is directly connected, FastEthernet0 C 192.168.23.0

11、/24 is directly connected, Serial1第四步:第四步:当主链路 up 的时候,仍然用主链路通信 R3(config)#int s0 R3(config-if)#no sh R3#sh ip ro Codes: C - connected, S - static, R - RIPO - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2Gateway of last resort is not setO IA 192.168.12.0/24 110/49 via

12、 192.168.13.1, 00:14:45, Serial0 C 192.168.13.0/24 is directly connected, Serial0 C 192.168.3.0/24 is directly connected, FastEthernet1 C 192.168.4.0/24 is directly connected, FastEthernet0 C 192.168.23.0/24 is directly connected, Serial1 【注意事项注意事项】 配置备份路由的管理距离必须大于主路由的管理距离。【参考配置参考配置】R3#sh run Curren

13、t configuration: ! version 6.14(2) ! hostname “R3“ ! ip subnet-zero ! interface FastEthernet0ip address 192.168.4.1 255.255.255.0 ! interface FastEthernet1ip address 192.168.3.1 255.255.255.0 ! interface FastEthernet2no ip addressshutdown ! interface FastEthernet3no ip addressshutdown ! interface Se

14、rial0ip address 192.168.13.3 255.255.255.0clock rate 64000 ! interface Serial1ip address 192.168.23.3 255.255.255.0clock rate 64000 ! router ospf 1network 192.168.13.0 0.0.0.255 area 0network 192.168.4.0 0.0.0.255 area 1network 192.168.3.0 0.0.0.255 area 1 ! ip classless ip route 192.168.12.0 255.25

15、5.255.0 Serial1 150 ! line con 0 line aux 0 line vty 0 4login ! endR1#sh run Current configuration: ! version 6.14(2) ! hostname “R1“ ! ip subnet-zero ! interface FastEthernet0ip address 192.168.12.1 255.255.255.0 ! interface FastEthernet1no ip addressshutdown! interface FastEthernet2no ip address s

16、hutdown ! interface FastEthernet3no ip addressshutdown ! interface Serial0ip address 192.168.13.1 255.255.255.0 ! interface Serial1no ip addressshutdown ! router ospf 1network 192.168.13.0 0.0.0.255 area 0network 192.168.12.0 0.0.0.255 area 2 ! ip classless ! line con 0 line aux 0 line vty 0 4no login ! endR2#sh run Current configuration: ! version 6.14(2) ! hostname “R2“ ! ip subnet-zero ! interface FastEthernet

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号