您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > 通过动态路由协议实现链路备份
通过动态路由协议实现链路备份【实验名称】通过动态路由协议实现链路备份【实验目的】掌握通过在不同链路上配置不同的路由协议实现链路备份。【背景描述】你是公司高级网络管理员,公司内部有一个很重要的服务器所在网段为192.168.12.0/24,平常访问通过R1,R3的OSPF路由协议,为了保证该网段随时能够访问,不能因为链路故障出问题,要求你实现一个备份冗余的功能,请给予支持。【实现功能】保证在拥有冗余链路的时候,主链路失效,备份链路工作。【实验拓扑】【实验设备】R2624(3台)V35DCE(2根)、V35DTE(2根)【实验步骤】第一步:基本配置Red-Giant(config)#hosR3R3(config)#ints0R3(config-if)#ipadd192.168.13.3255.255.255.0R3(config-if)#clockrate64000R3(config-if)#noshR3(config-if)#intf0R3(config-if)#ipadd192.168.4.1255.255.255.0R3(config-if)#noshR3(config)#intf1R3(config-if)#ipadd192.168.3.1255.255.255.0R3(config-if)#noshR3(config)#ints1R3(config-if)#ipadd192.168.23.3255.255.255.0R3(config-if)#clra64000R3(config-if)#noshR3(config-if)#endRed-Giant(config)#Red-Giant(config)#hosR2R2(config)#ints0R2(config-if)#ints0R2(config-if)#ipadd192.168.23.2255.255.255.0R2(config-if)#noshR2(config-if)#intf0R2(config-if)#ipadd192.168.12.2255.255.255.0R2(config-if)#noshR2(config-if)#endRed-Giant(config)#hosR1R1(config)#ints0R1(config-if)#ipadd192.168.12.1255.255.255.0R1(config-if)#noshR1(config-if)#ints0R1(config-if)#noshR1(config-if)#endR1#conftR1(config)#intf0R1(config-if)#ipadd192.168.12.1255.255.255.0R1(config-if)#nosh验证测试:R1#ping192.168.13.3Typeescapesequencetoabort.Sending5,100-byteICMPEchoesto192.168.13.3,timeoutis2seconds:!!!!!R2#ping192.168.23.3Typeescapesequencetoabort.Sending5,100-byteICMPEchoesto192.168.23.3,timeoutis2seconds:!!!!!第二步:配置主链路路由以及备份链路路由R1(config)#routeros1R1(config-router)#net192.168.13.00.0.0.255area0R1(config-router)#net192.168.12.00.0.0.255area2R3(config)#routeros1R3(config-router)#net192.168.13.00.0.0.255area0R3(config-router)#net192.168.4.00.0.0.255area1R3(config-router)#net192.168.3.00.0.0.255area1R3(config)#routerrip!配置RIP协议作为备份,RIP协议管理距离大于OSPF,OSPF自动成为主路由协议R3(config-router)#ver2R3(config-router)#net192.168.23.0R3(config-router)#noauto-summaryR2(config)#routerripR2(config-router)#version2R2(config-router)#net192.168.23.0R2(config-router)#net192.168.12.0R2(config-router)#noauto-summary验证测试:R3#shiproCodes:C-connected,S-static,R-RIPO-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2GatewayoflastresortisnotsetOIA192.168.12.0/24[110/49]via192.168.13.1,00:00:42,Serial0C192.168.13.0/24isdirectlyconnected,Serial0C192.168.3.0/24isdirectlyconnected,FastEthernet1C192.168.4.0/24isdirectlyconnected,FastEthernet0C192.168.23.0/24isdirectlyconnected,Serial1第三步:当主链路down的时候,可以通过备份链路通信R3(config)#ints0R3(config-if)#shutR3#shiproCodes:C-connected,S-static,R-RIPO-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2GatewayoflastresortisnotsetR192.168.12.0/24[120/1]via192.168.23.2,00:00:13,Serial1C192.168.3.0/24isdirectlyconnected,FastEthernet1C192.168.4.0/24isdirectlyconnected,FastEthernet0C192.168.23.0/24isdirectlyconnected,Serial1第四步:当主链路up的时候,仍然用主链路通信R3(config)#ints0R3(config-if)#noshR3#shiproCodes:C-connected,S-static,R-RIPO-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2GatewayoflastresortisnotsetOIA192.168.12.0/24[110/49]via192.168.13.1,00:14:45,Serial0C192.168.13.0/24isdirectlyconnected,Serial0C192.168.3.0/24isdirectlyconnected,FastEthernet1C192.168.4.0/24isdirectlyconnected,FastEthernet0C192.168.23.0/24isdirectlyconnected,Serial1【注意事项】配置备份路由的管理距离必须大于主路由的管理距离。【参考配置】R3#shrunCurrentconfiguration:!version6.14(2)!hostnameR3!ipsubnet-zero!interfaceFastEthernet0ipaddress192.168.4.1255.255.255.0!interfaceFastEthernet1ipaddress192.168.3.1255.255.255.0!interfaceFastEthernet2noipaddressshutdown!interfaceFastEthernet3noipaddressshutdown!interfaceSerial0ipaddress192.168.13.3255.255.255.0clockrate64000!interfaceSerial1ipaddress192.168.23.3255.255.255.0clockrate64000!routerospf1network192.168.13.00.0.0.255area0network192.168.4.00.0.0.255area1network192.168.3.00.0.0.255area1!routerripversion2network192.168.23.0noauto-summary!ipclassless!linecon0lineaux0linevty04login!endR1#shrunCurrentconfiguration:!version6.14(2)!hostnameR1!ipsubnet-zero!interfaceFastEthernet0ipaddress192.168.12.1255.255.255.0!interfaceFastEthernet1noipaddressshutdown!interfaceFastEthernet2noipaddressshutdown!interfaceFastEthernet3noipaddressshutdown!interfaceSerial0ipaddress192.168.13.1255.255.255.0!interfaceSerial1noipaddressshutdown!routerospf1network192.168.13.00.0.0.255area0network192.168.12.00.0.0.255area2!ipclassless!linecon0lineaux0linevty04nologin!endR2#shrunCurrentconfiguration:!version6.14(2)!hostnameR2!ipsubnet-zero!interfaceFastEthernet0ipaddress192.168.12.2255.255.255.0!interfaceFastEthernet1noipaddressshutdown!interfaceFastEthernet2noipaddressnoipaddressshutdown!interfaceFastEthernet3noipaddressshutdown!interfaceSerial0ipaddress192.168.23.2255.255.255.0!interfaceSerial1noipaddressshutdownrouterripversion2network192.168.23.0network192.168.12.0noauto-summary!ipclassless!linecon0lineaux0linevty04loginend
本文标题:通过动态路由协议实现链路备份
链接地址:https://www.777doc.com/doc-2018247 .html