您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 17.动态路由选择协议rip
Pc的ip地址192.168.1.2;192.168.2.2;192.168.3.2;192.168.4.2;192.168.5.2;192.168.5.3路由器1:(设定ip地址,设时钟,设rip)RouterRouterenRouter#contRouter(config)#routeripRouter(config-router)#version2Router(config-router)#network192.168.1.0Router(config-router)#network192.168.3.0Router(config-router)#network10.0.0.0Router(config-router)#network11.0.0.0Router(config-router)#exRouter(config)#intf0/0Router(config-if)#ipad192.168.1.1255.255.255.0Router(config-if)#noshutRouter(config-if)#intf0/1Router(config-if)#ipad192.168.3.1255.255.255.0Router(config-if)#noshutRouter(config-if)#ints0/0Router(config-if)#ipad10.0.0.1255.255.255.0Router(config-if)#clockr64000Router(config-if)#noshutRouter(config-if)#Router(config-if)#ints0/1Router(config-if)#ipad11.0.0.1255.255.255.0Router(config-if)#clockr64000Router(config-if)#noshutRouter(config-if)#endRouter#Router#Router#showiprCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC192.168.1.0isdirectlyconnected,FastEthernet0/0C192.168.3.0isdirectlyconnected,FastEthernet0/110.0.0.0/24issubnetted,1subnetsC10.0.0.0isdirectlyconnected,Serial0/0R192.168.4.0[120/1]via10.0.0.2,00:05:17,Serial0/013.0.0.0/24issubnetted,1subnetsR13.0.0.0[120/1]via10.0.0.2,00:02:23,Serial0/011.0.0.0/24issubnetted,1subnetsC11.0.0.0isdirectlyconnected,Serial0/1R192.168.5.0[120/1]via11.0.0.2,00:06:33,Serial0/112.0.0.0/24issubnetted,1subnetsR12.0.0.0[120/1]via11.0.0.2,00:03:44,Serial0/114.0.0.0/24issubnetted,1subnetsR14.0.0.0[120/1]via11.0.0.2,00:07:16,Serial0/1R192.168.2.0[120/2]via11.0.0.2,00:07:22,Serial0/1路由器2:RouterRouterenRouter#contEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#intf0/0Router(config-if)#ipad192.168.2.1255.255.255.0Router(config-if)#noshutRouter(config-if)#ints0/0Router(config-if)#ipad13.0.0.1255.255.255.0Router(config-if)#clr64000Router(config-if)#noshutRouter(config-if)#Router(config-if)#Router(config-if)#ints0/1Router(config-if)#ipad12.0.0.1255.255.255.0Router(config-if)#clr64000Router(config-if)#noshutRouter(config-if)#Router(config-if)#exRouter(config)#routeripRouter(config-router)#v2Router(config-router)#net192.168.2.0Router(config-router)#network13.0.0.0Router(config-router)#network12.0.0.0Router(config-router)#Router#showiprCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC192.168.2.0isdirectlyconnected,FastEthernet0/012.0.0.0/24issubnetted,1subnetsC12.0.0.0isdirectlyconnected,Serial0/113.0.0.0/24issubnetted,1subnetsC13.0.0.0isdirectlyconnected,Serial0/0R192.168.4.0[120/1]via13.0.0.2,00:05:23,Serial0/010.0.0.0/24issubnetted,1subnetsR10.0.0.0[120/1]via13.0.0.2,00:08:44,Serial0/0R192.168.1.0[120/2]via13.0.0.2,00:09:17,Serial0/0R192.168.3.0[120/2]via13.0.0.2,00:04:25,Serial0/0R192.168.5.0[120/1]via12.0.0.2,00:08:27,Serial0/111.0.0.0/24issubnetted,1subnetsR11.0.0.0[120/1]via12.0.0.2,00:04:42,Serial0/114.0.0.0/24issubnetted,1subnetsR14.0.0.0[120/1]via12.0.0.2,00:06:20,Serial0/1RouterRouterenRouter#contRouter(config)#intf0/0Router(config-if)#ipad192.168.4.1255.255.255.0Router(config-if)#noshutRouter(config-if)#Router(config-if)#ints0/0Router(config-if)#ipad10.0.0.2255.255.255.0Router(config-if)#clr64000Router(config-if)#noshutRouter(config-if)#Router(config-if)#ints0/1Router(config-if)#ipad13.0.0.2255.255.255.0Router(config-if)#clr64000Router(config-if)#noshutRouter(config-if)#Router(config-if)#ints1/0Router(config-if)#ipad14.0.0.1255.255.255.0Router(config-if)#clr64000Router(config-if)#noshutRouter(config-if)#Router(config-if)#exRouter(config)#routeripRouter(config-router)#v2Router(config-router)#netw192.168.4.0Router(config-router)#netw10.0.0.0Router(config-router)#netw13.0.0.0Router(config-router)#netw14.0.0.0Router(config-router)#Router(config-router)#endRouter#showiprCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC192.168.4.0isdirectlyconnected,FastEthernet0/014.0.0.0/24issubnetted,1subnetsC14.0.0.0isdirectlyconnected,Serial1/010.0.0.0/24issubnetted,1subnetsC10.0.0.0isdirectlyconnected,Serial0/013.0.0.0/24issubnetted,1subnetsC13.0.0.0isdirectlyconnected,Serial0/1R192.168.1.0[120/1]via10.0.0.1,00:03:35,Serial0/0R192.168.3.0[120/1]via10.0.0.1,00:02:19,Serial0/0R192.168.2.0[120/1]via13.0.0.1,00:07:28,Serial0/1R192.168.5.0[120/1]via14.0.0.2,00:01:23,Serial1/012.0.0.0/24issubnetted,1subnetsR12.0.0.0[120/1]via14.0.0.2,00:08:40,Serial1/011.0.0.0/24issubnetted,1subnetsR11.0.0.0[120/1]via14.0.0.2,00:02:44,Serial1/0思考:关闭其中某一端口,比如r3的s1/0,是否影响通信?
本文标题:17.动态路由选择协议rip
链接地址:https://www.777doc.com/doc-3100221 .html