路由协议重分发(RIPOSPFEIGRP)

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

路由协议重分发设备接口Ip地址子网掩码R1F0/0192.168.1.1255.255.255.0Loopback01.1.1.1255.255.255.0R2F1/0192.168.2.1255.255.255.0Loopback02.2.2.2255.255.255.0R3F0/0192.168.3.1255.255.255.0Loopback03.3.3.3255.255.255.0R4F0/0192.168.1.2255.255.255.0F1/0192.168.2.2255.255.255.0F6/0192.168.3.2255.255.255.01.路由器的基本配置R1RouterRouterenableRouter#conftRouter(config)#hostnameR1R1(config)#intf0/0R1(config-if)#ipadd192.168.1.1255.255.255.0R1(config-if)#noshutR1(config-if)#exitR1(config)#intlR1(config)#intloopback0R1(config-if)#ipadd1.1.1.1255.255.255.0R1(config-if)#noshutR1(config-if)#exitR1(config)#R2RouterRouterenableRouter#conftRouter(config)#hostnameR2R2(config)#intf1/0R2(config-if)#ipadd192.168.2.1255.255.255.0R2(config-if)#noshutR2(config-if)#exitR2(config)#intloopback0R2(config-if)#ipadd2.2.2.2255.255.255.0R2(config)#R3RouterenableRouter#conftRouter(config)#hostnameR3R3(config)#intf0/0R3(config-if)#ipadd192.168.3.1255.255.255.0R3(config-if)#noshutR3(config-if)#exitR3(config)#intlR3(config)#intloopback0R3(config-if)#ipadd3.3.3.3255.255.255.0R3(config-if)#exitR3(config)#R4RouterenableRouter#conftRouter(config)#hostnameR4R4(config)#intf0/0R4(config-if)#ipad192.168.1.2255.255.255.0R4(config-if)#noshutR4(config-if)#exitR4(config)#intf1/0R4(config-if)#ipadd192.168.2.2255.255.255.0R4(config-if)#noshutR4(config-if)#exitR4(config)#intf6/0R4(config-if)#ipadd192.168.3.2255.255.255.0R4(config-if)#noshutR4(config-if)#exitR4(config)#2.配置路由器协议R1:RIP协议R1(config)#routerripR1(config-router)#version2R1(config-router)#noauto-summaryR1(config-router)#net192.168.1.0R1(config-router)#net1.1.1.1R1(config-router)#exitR2:OSPF协议R2(config)#routerospf1R2(config-router)#network192.168.2.00.0.0.255area0R2(config-router)#network2.2.2.00.0.0.255area0R2(config-router)#exitR3:EIGRP协议R3(config)#routereigrp1R3(config-router)#noauto-summaryR3(config-router)#network192.168.3.0R3(config-router)#network3.3.3.0R3(config-router)#exitR4:RIPR4(config)#routerripR4(config-router)#version2R4(config-router)#noauto-summaryR4(config-router)#network192.168.1.0R4(config-router)#exitOSPFR4(config)#routerospf1R4(config-router)#net192.168.2.00.0.0.255aR4(config-router)#net192.168.2.00.0.0.255area0R4(config-router)#exitEIGRPR4(config)#routereigrp1R4(config-router)#noauto-summaryR4(config-router)#network192.168.3.0R4(config-router)#exitR4(config)#测试R4#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotset1.0.0.0/24issubnetted,1subnetsR1.1.1.0[120/1]via192.168.1.1,00:00:02,FastEthernet0/02.0.0.0/32issubnetted,1subnetsO2.2.2.2[110/2]via192.168.2.1,00:01:10,FastEthernet1/03.0.0.0/24issubnetted,1subnetsD3.3.3.0[90/156160]via192.168.3.1,00:00:55,FastEthernet6/0C192.168.1.0/24isdirectlyconnected,FastEthernet0/0C192.168.2.0/24isdirectlyconnected,FastEthernet1/0C192.168.3.0/24isdirectlyconnected,FastEthernet6/0R4#配置路由协议重分发RIPR4(config)#routerripR4(config-router)#redistributeospf1metric3R4(config-router)#redistributeeigrp1metric3R4(config-router)#exitR1#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotset1.0.0.0/24issubnetted,1subnetsC1.1.1.0isdirectlyconnected,Loopback02.0.0.0/32issubnetted,1subnetsR2.2.2.2[120/3]via192.168.1.2,00:00:11,FastEthernet0/03.0.0.0/24issubnetted,1subnetsR3.3.3.0[120/3]via192.168.1.2,00:00:11,FastEthernet0/0C192.168.1.0/24isdirectlyconnected,FastEthernet0/0R192.168.2.0/24[120/3]via192.168.1.2,00:00:11,FastEthernet0/0R192.168.3.0/24[120/3]via192.168.1.2,00:00:11,FastEthernet0/0R1#OSPFR4(config)#routerospf1R4(config-router)#redistributeripsubnetsR4(config-router)#redistributeeigrp1subnetsR4(config-router)#R2#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotset1.0.0.0/24issubnetted,1subnetsOE21.1.1.0[110/20]via192.168.2.2,00:00:40,FastEthernet1/02.0.0.0/24issubnetted,1subnetsC2.2.2.0isdirectlyconnected,Loopback03.0.0.0/24issubnetted,1subnetsOE23.3.3.0[110/20]via192.168.2.2,00:00:29,FastEthernet1/0OE2192.168.1.0/24[110/20]via192.168.2.2,00:00:40,FastEthernet1/0C192.168.2.0/24isdirectlyconnected,FastEthernet1/0OE2192.168.3.0/24[110/20]via192.168.2.2,00:00:29,FastEthernet1/0EIGRPR4(config)#routereigrp1R4(config-router)#redistributeripmet

1 / 7
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功