{"id":205,"date":"2020-09-26T13:27:42","date_gmt":"2020-09-26T13:27:42","guid":{"rendered":"https:\/\/dft.wiki\/?p=205"},"modified":"2026-06-09T14:51:44","modified_gmt":"2026-06-09T18:51:44","slug":"ripv2-on-cisco-routers","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=205","title":{"rendered":"RIPv2 on Cisco Routers"},"content":{"rendered":"<p>RIP is a protocol that routers use to communicate and share information about the networks they are connected to. Every 30 seconds, all routers inform their neighbors of the full list of networks they have, even if nothing has changed since the last update.<\/p>\n<p>This protocol counts the number of hops required to reach a destination. After 15 hops, networks are considered unreachable. Version 1 (the default) is obsolete, so always use version 2.<\/p>\n<p>Given the scenario below, PC1 needs to reach PC2:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" class=\"wp-image-413\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/image-72.png\" alt=\"\" \/><\/figure>\n<\/div>\n<p>In the example above, v1 would not work because it is classful (does not support sub-networks), and its automatic network summarization would also cause it to fail when trying to merge network IPs.<\/p>\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>Router1<\/p>\n<pre>enable <br \/>configure terminal <br \/>hostname Router1<br \/>no ip domain lookup<br \/>line con 0<br \/>logging synchronous<br \/><br \/>interface g0\/0<br \/>ip address 192.168.3.1 255.255.255.252<br \/>no shutdown<br \/>interface g0\/1<br \/>ip address 192.168.1.1 255.255.255.252<br \/>no shutdown<br \/><br \/>router rip<br \/>version 2<br \/>no auto-summary<br \/>network 192.168.3.0<br \/>network 192.168.1.0<br \/>passive-interface g0\/1<\/pre>\n<\/div>\n<div class=\"wp-block-column\">\n<p>Router2<\/p>\n<pre>enable <br \/>configure terminal <br \/>hostname Router2<br \/>no ip domain lookup<br \/>line con 0<br \/>logging synchronous<br \/><br \/>interface g0\/0<br \/>ip address 192.168.3.2 255.255.255.252<br \/>no shutdown<br \/>interface g0\/1<br \/>ip address 192.168.2.1 255.255.255.252<br \/>no shutdown<br \/><br \/>router rip<br \/>version 2<br \/>no auto-summary<br \/>network 192.168.3.0<br \/>network 192.168.2.0<br \/>passive-interface g0\/1<\/pre>\n<\/div>\n<\/div>\n<p>The router that serves as the gateway to outside the network must have the following parameter set in the <strong>router rip<\/strong> config:<\/p>\n<pre>default-information originate<\/pre>\n<p>This tells all other routers which one is the <strong>gateway of last resort<\/strong> when a destination network is unknown.<\/p>\n<p>Also, use the command below to make all interfaces passive by default and only activate the ones you need:<\/p>\n<pre>passive-interface default<br \/>no passive-interface Serial0\/0\/0<br \/>no passive-interface Serial0\/0\/1<\/pre>\n<p>To check the configuration on each router, issue the following commands:<\/p>\n<pre>show ip protocols<br \/>debug ip rip<br \/>show ip rip database<br \/>show ip rip neighbors<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>RIP is a protocol that routers use to communicate and share information about the networks [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-ccna"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=205"}],"version-history":[{"count":7,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":5840,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions\/5840"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}