{"id":66,"date":"2013-03-24T16:35:55","date_gmt":"2013-03-24T16:35:55","guid":{"rendered":"https:\/\/learncisco.net\/index.php\/enabling-rip\/"},"modified":"2023-01-11T07:27:03","modified_gmt":"2023-01-11T00:27:03","slug":"enabling-rip","status":"publish","type":"page","link":"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html","title":{"rendered":"RIP (RIPv2) Configuration with Example"},"content":{"rendered":"

We are going to demonstrate the configuration of the RIP protocol, which belongs to the distance vector category. So let us analyze it according to our three criteria.<\/p>\n

Distance Vector Routing Protocol<\/h2>\n

The first criteria is how routers discover each other and the answer to that lies in the fact that distance vector protocols will rely on neighbors to tell them the direction or vector toward destinations and how far away those destinations are, and so a routing protocol like RIP will advertise to its neighbors and obtain the information directly from its neighbors, those routers running the same protocol. In that sense, they rely on sort of a chain reaction.<\/p>\n

In example, router would need to wait his neighbour routers to advertise to each other in chain. This makes them slower in understanding network changes and it also makes them rely on secondhand information, which also makes them inaccurate. They become even slower, when you see how they exchange information with their neighbors. They will periodically pass copies of the entire routing table. Some of them, like RIP version 1, will actually broadcast this information which is also a very inefficient method.<\/p>\n

Source of Information and Discovering Routes<\/h2>\n

In terms of how distance vector protocols learn the information then, we were talking about periodic advertisements of the entire routing table coming from directly connected neighbors. Some of the information though is remote and so that is why they rely on secondhand information. The figure illustrates the chain reaction that would have to happen for A to learn about networks known to C. The exchange is periodic and it includes the complete routing table, so even if the topology does not change, routers keep telling each other about the same thing.<\/p>\n

\"RIP<\/p>\n

RIP Overview<\/h2>\n

Other features of RIP result from our third criteria, how the protocols adjust to changes in the topology. The answer for a distance vector protocol like RIP is very slowly convergence timed or the amount of time it takes for RIP to know about a topology change and select a different path is a matter of minutes sometimes. Also, in order to be more accurate, it tends to be a very conservative protocol and so in the presence of a redundant topology like this one with loops in order to avoid packets from traveling around the network. Following the loop it will set a maximum cost of 15 for any path in the network; 16 is considered unreachable.<\/p>\n

\"RIP<\/p>\n

Those costs are measured in hop counts or the number of routers to go through along a certain path. This makes it less effective in selecting the best path in the presence of this redundant topology. The one hop path across that slower link will be selected, whereas the three-hop path would be faster but would not be selected. Even though a maximum of 16 equal cost paths can be selected, which is good in terms of load balancing, this routing protocol suffers from some inherent features that make it a less efficient, for example, periodically advertising every 30 seconds.<\/p>\n

RIPv1 and RIPv2 Comparison<\/h2>\n

In an effort to improve RIP, designers came up with a second version of the protocol, RIP version 2. Several improvements were made to make this a classless routing protocol, which means it supports variable length subnet masks because the masks are advertised along with the routing update. This also makes RIP version 2 a protocol that can summarize routes. Other efforts were made to make it more efficient and so the advertisements are made on a multicast address and not as a broadcast.<\/p>\n

With more security in mind, the protocol also supports router-to-router authentication, which means routers will not exchange routing information unless they share a common secret. Still, RIP version 2 is a distance vector protocol and it suffers from similar convergence issues. It still frequently advertises every 30 seconds and it still suffer from the maximum hop count of 16 for any network.<\/p>\n

IP Routing Configuration Tasks<\/h2>\n

One of the good news about routing protocols is that their configuration is fairly consistent across the board in Cisco IOS routers. They follow similar steps. You first need to select the routing protocol and enable it in global configuration mode and then define the networks that you want this routing protocol to advertise on and receive advertisements through.<\/p>\n

In the end, this is going to become advertisements coming in and out of interfaces, but the configuration is based on the network numbers configured on those interfaces. Remember, some routing protocols are classful and so they will not understand subnets, and this means that by enabling the routing protocol in a certain major network, you may be enabling the routing protocol on multiple interfaces that are simply subnets of the same major network.<\/p>\n

RIP Configuration<\/h2>\n

So as we see here the basic commands to enable something like RIP in certain networks; similar steps will be necessary for other routing protocols. The command router enables the routing protocol process and at this time we are using RIP, but you could be using OSPF or EIGRP with the same command. With that, you enter routing protocol configuration mode.<\/p>\n

RouterA#
\nRouterA#conf t
\nEnter configuration commands, one per line.\u00a0 End with CNTL\/Z.
\nRouterA(config)#router rip
\nRouterA(config-router)#version 2
\nRouterA(config-router)#network 172.16.0.0
\nRouterA(config-router)#<\/p><\/blockquote>\n

For RIP, we are enabling RIP version 2 just to make sure that we are dealing with a classless routing protocol and to obtain the advantages of the more efficient RIP version 2.<\/p>\n

The third command defines the networks directly connected to this router that will be participating in the RIP process. Even though RIP version 2 is a classless protocol, its configuration follows a classful criteria and so the network you specify there is a major classful network number.<\/p>\n

RIP Configuration Example<\/h2>\n

So it becomes your job to look at the router\u2019s interfaces, understand the network IDs attached or assigned to those interfaces, and then enable the protocol on those networks. In this example, for router A, this device is attached to networks 10 and 172.16 and so we enable the protocol on those two classful networks. Notice that B is connected only to networks that belong to the major classful network 10 and so we need only one command there, network 10.0.0.0, and that is going to enable the protocol on all interfaces that belong to that network 10, in this case, both serial interfaces.<\/p>\n

\"RIP<\/p>\n

RouterA#
\nRouterA#conf t
\nRouterA(config)#router rip
\nRouterA(config-router)#version 2
\nRouterA(config-router)#network 172.16.0.0
\nRouterA(config-router)#network 10.0.0.0<\/p><\/blockquote>\n

RouterB#
\nRouterB#conf t
\nRouterB(config)#router rip
\nRouterB(config-router)#version 2
\nRouterB(config-router)#network 10.0.0.0<\/p><\/blockquote>\n

RouterC#
\nRouterC#conf t
\nRouterC(config)#router rip
\nRouterC(config-router)#version 2
\nRouterC(config-router)#network 192.168.1.0
\nRouterC(config-router)#network 10.0.0.0<\/p><\/blockquote>\n

There is a similar configuration for router C. Now in that router C, we had another link on network 10 and we do not want RIP running there; we would be running it with that network statement. The meaning of the network statement then is to enable the protocol on any and all interfaces that match the major network specified in the statement.<\/p>\n

Verifying the RIP Configuration<\/h2>\n

Several commands are available to verify the configuration. Other than show running<\/strong><\/span>, you can see more live definitions of how RIP is configured and working by using the show IP protocols <\/strong><\/span>command. The output shows general information on the current timers being used by RIP and any routing filter that you may have applied. In terms of the network statement, the routing for networks section will display the exact networks that you configured the routing protocol for. So this means that we have two network statements, one for network 10 and one for network 172.16. The impact of that in the case of router A is that those two interfaces are now advertising and receiving advertisement for RIP. Fa0\/0 belongs to network 172.16 and S0\/0 belongs to network 10; both are sending and receiving RIP version 2 advertisements.<\/p>\n

RouterA#show ip protocols
\nRouting Protocol is “rip”
\nOutgoing update filter list for all interfaces is not set
\nIncoming update filter list for all interfaces is not set
\nSending updates every 30 seconds, next due in 15 seconds
\nInvalid after 180 seconds, hold down 180, flushed after 240
\nRedistributing: rip
\nDefault version control: send version 2, receive version 2
\nInterface\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Send\u00a0 Recv\u00a0 Triggered RIP\u00a0 Key-chain
\nFastEthernet0\/0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0\u00a0 2
\nSerial0\/0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0\u00a0 2
\nAutomatic network summarization is in effect
\nMaximum path: 4
\nRouting for Networks:
\n10.0.0.0
\n172.16.0.0
\nRouting Information Sources:
\nGateway\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Distance\u00a0\u00a0\u00a0\u00a0\u00a0 Last Update
\n10.1.1.2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 120\u00a0\u00a0\u00a0\u00a0\u00a0 00:00:24
\nDistance: (default is 120)<\/p><\/blockquote>\n

Displaying the IP Routing Table and Troubleshooting<\/h2>\n

The main responsibility of any routing protocol is to populate the routing table, and so displaying the routing table is a good troubleshooting and verification approach. The output here belongs to router A again and we can see all the entries or routes being learned via RIP by looking at the first column. This piece will have information on the protocol that advertised the route.<\/p>\n

RouterA#show ip route
\nCodes: C – connected, S – static, R – RIP, M – mobile, B – BGP
\nD – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
\nN1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
\nE1 – OSPF external type 1, E2 – OSPF external type 2
\ni – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
\nia – IS-IS inter area, * – candidate default, U – per-user static route
\no – ODR, P – periodic downloaded static route<\/p>\n

Gateway of last resort is not set<\/p>\n

172.16.0.0\/24 is subnetted, 1 subnets
\nC\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 172.16.1.0 is directly connected, FastEthernet0\/0
\n10.0.0.0\/24 is subnetted, 2 subnets
\nR\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10.2.2.0 [120\/1] via 10.1.1.2, 00:00:16, Serial0\/0
\nC\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10.1.1.0 is directly connected, Serial0\/0
\nR\u00a0\u00a0\u00a0 192.168.1.0\/24 [120\/2] via 10.1.1.2, 00:00:16, Serial0\/0<\/p><\/blockquote>\n

If you look at the legend up there, then you will see the different letters associated to each protocol. Through this output, we also know that the administrative distance of RIP is 120 and that the cost to get to that particular destination is the second number within brackets. 10.2.2.0 is one hop away, while 192.168.1.0 is two hops away. The timer there indicates the amount of time since the route was updated. Remember, RIP will advertise every 30 seconds and if it misses one route in one of the advertisements, it will flag it as possibly down.<\/p>\n

If you want to see live RIP advertisements, you can use the debug IP RIP <\/strong><\/span>command. You can see how in this example for router A the router is sending advertisements on both interfaces to a broadcast destination. It is also receiving updates coming from B on 10.1.1.2 through the serial interface. In both cases, the routes being learned and advertised are part of the output of the command as well as the cost to reach each destination. This is a very powerful tool to verify whether your neighbors are running the protocol or whether they have filters that may be blocking certain networks or whether you made mistakes in enabling the protocols on certain interfaces.<\/p>\n

RouterA#deb ip rip
\nRIP protocol debugging is on
\nRouterA#
\n00:16:59.871: RIP: received v2 update from 10.1.1.2 on Serial0\/0
\n00:16:59.875:\u00a0\u00a0\u00a0\u00a0\u00a0 10.2.2.0\/24 via 0.0.0.0 in 1 hops
\n00:16:59.875:\u00a0\u00a0\u00a0\u00a0\u00a0 192.168.1.0\/24 via 0.0.0.0 in 2 hops
\n00:17:00.747: RIP: sending v2 update to 224.0.0.9 via Serial0\/0 (10.1.1.1)
\n00:17:00.747: RIP: build update entries
\n00:17:00.747:\u00a0\u00a0 172.16.0.0\/16 via 0.0.0.0, metric 1, tag 0
\n00:17:22.779: RIP: sending v2 update to 224.0.0.9 via FastEthernet0\/0 (172.16.1.1)
\n00:17:22.779: RIP: build update entries
\n00:17:22.779:\u00a0\u00a0 10.0.0.0\/8 via 0.0.0.0, metric 1, tag 0
\n00:17:22.783:\u00a0\u00a0 192.168.1.0\/24 via 0.0.0.0, metric 3, tag 0
\n00:17:28.907: RIP: received v2 update from 10.1.1.2 on Serial0\/0
\n00:17:28.911:\u00a0\u00a0\u00a0\u00a0\u00a0 10.2.2.0\/24 via 0.0.0.0 in 1 hops
\n00:17:28.911:\u00a0\u00a0\u00a0\u00a0\u00a0 192.168.1.0\/24 via 0.0.0.0 in 2 hops
\nRouterA#un all
\nAll possible debugging has been turned off
\nRouterA#<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"We are going to demonstrate the configuration of the RIP protocol, which belongs to the distance vector category. So let us analyze it according to our three criteria. Distance Vector Routing Protocol The first criteria is how routers discover each other and the answer to that lies in the fact that distance vector protocols will … Read more<\/a>","protected":false},"author":5,"featured_media":0,"parent":59,"menu_order":72,"comment_status":"closed","ping_status":"closed","template":"cisco-page.php","meta":{"_acf_changed":false,"footnotes":""},"acf":[],"yoast_head":"\nRIP (RIPv2) Configuration with Example - learncisco.net<\/title>\n<meta name=\"description\" content=\"This article demonstrate the configuration of the RIP protocol, which belongs to the distance vector category.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RIP (RIPv2) Configuration with Example - learncisco.net\" \/>\n<meta property=\"og:description\" content=\"This article demonstrate the configuration of the RIP protocol, which belongs to the distance vector category.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html\" \/>\n<meta property=\"og:site_name\" content=\"learncisco.net\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-11T00:27:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html\",\"url\":\"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html\",\"name\":\"RIP (RIPv2) Configuration with Example - learncisco.net\",\"isPartOf\":{\"@id\":\"https:\/\/www.learncisco.net\/#website\"},\"datePublished\":\"2013-03-24T16:35:55+00:00\",\"dateModified\":\"2023-01-11T00:27:03+00:00\",\"description\":\"This article demonstrate the configuration of the RIP protocol, which belongs to the distance vector category.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.learncisco.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cisco Certification Courses\",\"item\":\"https:\/\/www.learncisco.net\/courses.html\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CCNA 200-301\",\"item\":\"https:\/\/www.learncisco.net\/courses\/cisco-ccna.html\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"IP Routing Technologies\",\"item\":\"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/ip-routing-technologies.html\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Enabling RIP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.learncisco.net\/#website\",\"url\":\"https:\/\/www.learncisco.net\/\",\"name\":\"learncisco.net\",\"description\":\"Free online tests for the Cisco CCNA and CCNP exams. Test yourself with more than 4300 different questions.\",\"publisher\":{\"@id\":\"https:\/\/www.learncisco.net\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.learncisco.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.learncisco.net\/#organization\",\"name\":\"learncisco.net\",\"url\":\"https:\/\/www.learncisco.net\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png\",\"contentUrl\":\"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png\",\"width\":154,\"height\":24,\"caption\":\"learncisco.net\"},\"image\":{\"@id\":\"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RIP (RIPv2) Configuration with Example - learncisco.net","description":"This article demonstrate the configuration of the RIP protocol, which belongs to the distance vector category.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html","og_locale":"en_US","og_type":"article","og_title":"RIP (RIPv2) Configuration with Example - learncisco.net","og_description":"This article demonstrate the configuration of the RIP protocol, which belongs to the distance vector category.","og_url":"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html","og_site_name":"learncisco.net","article_modified_time":"2023-01-11T00:27:03+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html","url":"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html","name":"RIP (RIPv2) Configuration with Example - learncisco.net","isPartOf":{"@id":"https:\/\/www.learncisco.net\/#website"},"datePublished":"2013-03-24T16:35:55+00:00","dateModified":"2023-01-11T00:27:03+00:00","description":"This article demonstrate the configuration of the RIP protocol, which belongs to the distance vector category.","breadcrumb":{"@id":"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.learncisco.net\/courses\/icnd-1\/ip-routing-technologies\/enabling-rip.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.learncisco.net\/"},{"@type":"ListItem","position":2,"name":"Cisco Certification Courses","item":"https:\/\/www.learncisco.net\/courses.html"},{"@type":"ListItem","position":3,"name":"CCNA 200-301","item":"https:\/\/www.learncisco.net\/courses\/cisco-ccna.html"},{"@type":"ListItem","position":4,"name":"IP Routing Technologies","item":"https:\/\/www.learncisco.net\/courses\/cisco-ccna\/ip-routing-technologies.html"},{"@type":"ListItem","position":5,"name":"Enabling RIP"}]},{"@type":"WebSite","@id":"https:\/\/www.learncisco.net\/#website","url":"https:\/\/www.learncisco.net\/","name":"learncisco.net","description":"Free online tests for the Cisco CCNA and CCNP exams. Test yourself with more than 4300 different questions.","publisher":{"@id":"https:\/\/www.learncisco.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.learncisco.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.learncisco.net\/#organization","name":"learncisco.net","url":"https:\/\/www.learncisco.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/","url":"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png","contentUrl":"https:\/\/www.learncisco.net\/wp-content\/uploads\/2021\/12\/logo-1.png","width":154,"height":24,"caption":"learncisco.net"},"image":{"@id":"https:\/\/www.learncisco.net\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/66"}],"collection":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":2,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/66\/revisions"}],"predecessor-version":[{"id":1145,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/66\/revisions\/1145"}],"up":[{"embeddable":true,"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/pages\/59"}],"wp:attachment":[{"href":"https:\/\/www.learncisco.net\/wp-json\/wp\/v2\/media?parent=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}