{"id":56,"date":"2014-06-02T12:10:55","date_gmt":"2014-06-02T12:10:55","guid":{"rendered":"http:\/\/feralpacket.org\/?p=56"},"modified":"2015-01-03T11:20:55","modified_gmt":"2015-01-03T11:20:55","slug":"v5-written-and-lab-rip-notes","status":"publish","type":"post","link":"https:\/\/feralpacket.org\/?p=56","title":{"rendered":"v5 Written and Lab: RIP Notes"},"content":{"rendered":"<p><code>v5 Written:<br \/>\n3.4 RIP (v2 and v6)<br \/>\n3.4.a Implement and troubleshoot RIPv2<br \/>\n3.4.b Describe RIPv6 (RIPng)<\/code><\/p>\n<p>v5 Lab:<br \/>\n2.4 RIPv2<br \/>\n2.4.a Implement and troubleshoot RIPv2<\/p>\n<p>http:\/\/docwiki.cisco.com\/wiki\/Routing_Information_Protocol<\/p>\n<p>http:\/\/www.cisco.com\/c\/en\/us\/tech\/ip\/routing-information-protocol-rip\/index.html<\/p>\n<p>http:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/ios-xml\/ios\/iproute_rip\/configuration\/15-mt\/irr-15-<\/p>\n<p>mt-book.html<\/p>\n<p>http:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/switches\/lan\/catalyst3750x_3560x\/software\/release\/15<\/p>\n<p>-0_2_se\/configuration\/guide\/3750x_cg\/swiprout.html#wp1028241<\/p>\n<p>http:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/ios-xml\/ios\/iproute_rip\/command\/irr-cr-book\/irr-cr-<\/p>\n<p>rip.html<\/p>\n<p>Routing TCP \/ IP Volume I &#8211; Chapter 5: Routing Information Protocol (RIP)<br \/>\nRouting TCP \/ IP Volume I &#8211; Chapter 6: RIPv2, RIPng, and Classless Routing<\/p>\n<p>Troubleshooting IP Routing Protocols &#8211; Chapter 2: Understanding Routing Information<\/p>\n<p>Protocol (RIP)<br \/>\nTroubleshooting IP Routing Protocols &#8211; Chapter 3: Troubleshooting RIP<\/p>\n<p>IP Routing Fundamentals &#8211; Chapter 8: Routing Information Protocol<br \/>\nIP Routing Fundamentals &#8211; Chapter 9: Routing Information Protocol Version 2<\/p>\n<p>Troubleshooting IP Routing Protocols &#8211; Chapter 2: Routing Information Protocol (RIP)<br \/>\nTroubleshooting IP Routing Protocols &#8211; Chapter 3: Troubleshooting RIP<\/p>\n<p>INE R%S Workbook I, Section 4 &#8211; RIP<\/p>\n<p>Router-Bits Handbook &#8211; Chapter 5: RIP<\/p>\n<p>INE Advanced Technologies videos:<\/p>\n<p>43 RIP Overview, RIP Versions, RIP Auto-Summary 0h 48m<br \/>\n44 RIP Split-Horizon, RIP Timers 0h 22m<br \/>\n45 RIP Broadcast Updates, IP Directed Broadcast, IP Broadcast-Address, Smurf<br \/>\nAttacks, Fraggle Attacks 0h 16m<br \/>\n46 RIP Unicast Updates 0h 03m<br \/>\n47 RIP Offset-List 0h 18m<br \/>\n48 RIP Authentication 0h 11m<br \/>\n49 RIP Summarization 0h 10m<br \/>\n50 Prefix-Lists, RIP Distribute-List Filtering, RIP Administrative Distance<br \/>\nFiltering 0h 48m<br \/>\n51 RIP Default Routing, RIP Conditional Default Routing 0h 18m<br \/>\n52 RIP Triggered, RIP Validate Update Source, 0h 12m<\/p>\n<p>RFCs:<\/p>\n<p>RFC 1058 &#8211; Routing Informaiton Protocol<br \/>\nRFC 2082 &#8211; RIP-2 MD5 Authentication<br \/>\nRFC 2091 &#8211; Triggered Extensions to RIP to SUpport Demand Circuits<br \/>\nRFC 2453 &#8211; RIP Version 2<br \/>\nRFC 2080 &#8211; RIPng for IPv6<br \/>\nRFC 1724 &#8211; RIP Version 2 MIB Extension Plain Text Authentication<\/p>\n<p>RIP Decision Tree:<br \/>\n1. Assign internal RIP network<br \/>\n&#8211; network command without wildcard mask<br \/>\n2. Link type<br \/>\n&#8211; point-to-point<br \/>\n&#8211; broadcast<br \/>\n&#8211; non-broadcast (frame-relay)<br \/>\n&#8211; hub and spoke<br \/>\n&#8211; check for split-horizon issues<br \/>\n3. Determine what interfaces advertise RIP updates<br \/>\n&#8211; passive-interface default<br \/>\n&#8211; no passive-interface<br \/>\n4. Destination address used<br \/>\n&#8211; multicast &#8211; 224.0.0.10<br \/>\n&#8211; broadcast &#8211; ip rip v2-broadcast<br \/>\n&#8211; unicast &#8211; neighbor statement with passive-interface &#8211; sets TTL =2<br \/>\n5. Version 2<br \/>\n&#8211; version 2<br \/>\n6. Verify<br \/>\n&#8211; show ip rip database<br \/>\n&#8211; debug ip rip<br \/>\n&#8211; debug ip routing<\/p>\n<p>Example:<\/p>\n<p>router rip<br \/>\nnetwork 172.16.0.0<br \/>\npassive-interface default<br \/>\nno passive-interface fa0\/0<br \/>\nno auto-summary<br \/>\nversion 2<\/p>\n<p>RIPv2 has no neighbor relationship requirement<\/p>\n<p>Prerequisites for RIP<br \/>\n&#8211; &#8220;ip routing&#8221; configured<\/p>\n<p>Restriction for RIP<br \/>\n&#8211; hop count is used as the metric to rate the value of different routes<br \/>\n&#8211; directly connected network has a metric of zero<br \/>\n&#8211; an unreachable network has a metric of 16<br \/>\n&#8211; the limited metric range makes it unsuitable for large networks<\/p>\n<p>RIPv1 uses broadcast UDP packets to exchange routing information<br \/>\n&#8211; port 520<br \/>\n&#8211; sends routing update information every 30 seconds<br \/>\n&#8211; if an update has not been received in 180 seconds, the routes are marked as unusable<br \/>\n&#8211; if an update has not been received in 240 seconds, the routes are removed from the<\/p>\n<p>routing table<\/p>\n<p>A default network can be received or advertised with RIP<\/p>\n<p>RIPv2 features<br \/>\n&#8211; plain text authentication<br \/>\n&#8211; MD5 authentication<br \/>\n&#8211; route summarization<br \/>\n&#8211; classless interdomain routing (CIDR)<br \/>\n&#8211; variable-length subnet masks (VLSM)<\/p>\n<p>Routing updates are sent at regular intervals and when the network topology changes<\/p>\n<p>Routing update<br \/>\n&#8211; receiving device adds 1 to the metric value and adds the network to the routing table<br \/>\n&#8211; the IP address of the sender of the routing update is used as next-hop<br \/>\n&#8211; only the best route to a destination is maintained (the route with the lowest metric)<\/p>\n<p>By default, devices can receive both RIPv1 and RIPv2 packets<br \/>\n&#8211; configure the RIP version to override the default<\/p>\n<p>Authentication in RIP is performed only if a key chain is configured<\/p>\n<p>RIP is normally a broadcast protocol<br \/>\n&#8211; can be configured for non-broadcast networks<\/p>\n<p>To control the interfaces that exchange routing updates, configure passive-interface<\/p>\n<p>Offset lists can be used to increase the metric of incoming or outgoing routes<\/p>\n<p>The following timers can be adjusted<br \/>\n&#8211; Update: the rate routing updates are sent (in seconds) (default 30)<br \/>\n&#8211; Invalid: the interval of time after which a route is declared invalid (default 180)<br \/>\n&#8211; Flush: the amount of time that must pass before a route is removed from the routing<\/p>\n<p>table (default 240)<br \/>\n&#8211; Hold-down: the amount of time of which routing updates are postponed (default 240)<\/p>\n<p>VRFs use the system default timers unless the timers-basic command is configured;<\/p>\n<p>Summary IP address functions:<br \/>\n&#8211; Summary routes in the RIP database are processed first<br \/>\n&#8211; Associated child routes are skipped as RIP looks through the database<br \/>\n&#8211; Auto summary is enabled by default<\/p>\n<p>RIP is a distance-vector routing algorithm<\/p>\n<p>Distance-vector algorithms are sometimes referred to as Bellman-Ford or Ford-Fulkerson algorithms<\/p>\n<p>RIP was the first successful implementation of a distance-vector protocol<\/p>\n<p>Split-horizon is not disabled by default for interfaces using any of the X.25 encapsulations<br \/>\n&#8211; for all other encapsulations, split-horizon is enabled by default<\/p>\n<p>By default, no delay is added between packets in a multipacket RIP update. When a high-<br \/>\nend router sends updates to a low-speed router, interpacket delay may be needed;<\/p>\n<p>router rip<br \/>\noutput-delay<\/p>\n<p>RIP performs a source-validation check. The source IP address of the incoming routing<\/p>\n<p>updates must be on the same IP network of one of the IP addresses of the receiving<\/p>\n<p>interface.<br \/>\n&#8211; It can be disabled, such as when the local IP address is a \/32, but the source is a \/24.<\/p>\n<p>router rip<br \/>\nno validate-update source<\/p>\n<p>RIPv1 Packet Format<\/p>\n<p>0&#8230;&#8230;&#8230;8&#8230;&#8230;&#8230;16&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.31<br \/>\n| Command | Version | Must be zero |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n| Address Family | Must be zero |<br \/>\n| Identifier | |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n| IP Address |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n| Must be zero |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n| Must be zero |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n| Metric |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>The Address Family Identifier through the Metric can be repeated 25 times in a single<\/p>\n<p>packets<br \/>\n&#8211; Max RIP packet size of 512 bytes<\/p>\n<p>The Address Family Identifier is set to 2 for IP<\/p>\n<p>RIPv1<br \/>\n&#8211; Classful<br \/>\n&#8211; Updates as broadcast<\/p>\n<p>RIPv2 Packet Format<\/p>\n<p>0&#8230;&#8230;&#8230;8&#8230;&#8230;&#8230;16&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.31<br \/>\n| Command | Version | Route Tag |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n| Address Family | Must be zero |<br \/>\n| Identifier | |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n| IP Address |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n| Subnet Mask |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n| Next Hoop |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n| Metric |<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>RIPv2<br \/>\n&#8211; Classless<br \/>\n&#8211; Updates as multicast 224.0.0.9<\/p>\n<p>Example configuration:<\/p>\n<p>router rip<br \/>\nnetwork 10.1.1.0<br \/>\nneighbor 10.1.1.2<br \/>\noffset-list 98 in 1 fa0\/0<br \/>\ntimers-basic 1 2 3 4<br \/>\nversion 2<br \/>\nno auto-summary<br \/>\nno validate-update-source<br \/>\noutput-delay 8<\/p>\n<p>int fa0\/0<br \/>\nip rip send version 2<br \/>\nip rip receive version 2<br \/>\nip rip authentication key-chain rip-md5<br \/>\nip rip authentication mode md5<br \/>\nip summary-address rip 10.2.0.0 255.255.0.0<br \/>\nno ip split-horizon<br \/>\nip rip triggered<br \/>\nip rip initial-delay 45<\/p>\n<p>key-chaing rip-md5<br \/>\nkey 123456<br \/>\nkey-string abcde<\/p>\n<p>Address Family Timers Example configuration:<\/p>\n<p>router rip<br \/>\nversion 2<br \/>\ntimers-basic 5 10 15 20<br \/>\nredistribute connected<br \/>\nnetwork 5.0.0.0<br \/>\ndefault-metric 10<br \/>\nno auto-summary<br \/>\naddress-family ipv4 vrf abc<br \/>\ntimers-basic 10 20 20 30<br \/>\nredistribute connected<br \/>\nnetwork 10.0.0.0<br \/>\nno auto-summary<br \/>\nversion 2<br \/>\naddress-family ipv4 vrf xyz<br \/>\ntimers-basic 20 40 60 80<br \/>\nredistribute connected<br \/>\nnetwork 20.0.0.0<br \/>\ndefault-metric 2<br \/>\nno auto-summary<br \/>\nversion 2<\/p>\n<p>Verify RIP<br \/>\n&#8211; debug ip rip<br \/>\n&#8211; show ip route rip<br \/>\n&#8211; show key chain<br \/>\n&#8211; sh ip protocols | in sec<\/p>\n<p>RIP for IPV6<\/p>\n<p>IPv6 RIP functions the same and offers the same benefits as RIP in IPv4<br \/>\n&#8211; Enhancements include:<br \/>\n&#8211; support for IPv6 address and prefixes<br \/>\n&#8211; use of the all-RIP-devices multicast group address FF02::9 as a destination address<\/p>\n<p>for RIP update messages<\/p>\n<p>Enabling IPv6 RIP:<\/p>\n<p>ipv6 unicast-routing<br \/>\nint fa0\/0<br \/>\nipv6 enable<br \/>\nipv6 rip enable<\/p>\n<p>Optional:<\/p>\n<p>ipv6 router rip<\/p>\n<p>Maixmum number of equal-cost routes in IPv6 RIP<br \/>\n&#8211; default is 4<\/p>\n<p>ipv6 router rip maximum-paths<\/p>\n<p>Originate the IPv6 default route (::\/0)<\/p>\n<p>int fa0\/0<br \/>\nipv6 rip default-information {originate|only}<\/p>\n<p>&#8211; originate: originates the default route (::\/0) in addition to all other routes in the updates sent on this interface<br \/>\n&#8211; only: originates the default route (::\/0) but surpresses all other routes in the updates sent on the interface<\/p>\n<p>Verify IPv6 RIP:<br \/>\n&#8211; show ipv6 rip {database|next-hops}<br \/>\n&#8211; show ipv6 route<br \/>\n&#8211; debug ipv6 rip<br \/>\n&#8211; show ipv6 rip<\/p>\n<p>Nonstop forwarding for IPv6 RIP<br \/>\n&#8211; Cisco Nonstop Forwarding (NSF) continues forwarding packets while routing protocols converge<br \/>\n&#8211; this avoids route flapping<\/p>\n<p>IPv6 RIP supports the use of a route map to select routes for redistribution<br \/>\n&#8211; route may be specified by:<br \/>\n&#8211; prefix<br \/>\n&#8211; route-map prefix list<br \/>\n&#8211; tag<\/p>\n<p>Configuring route tags:<\/p>\n<p>route-map bgp-to-rip permit 10<br \/>\nmatch ipv6 address prefix-list bgp-rip-list<br \/>\nset tag 4<\/p>\n<p>Route filtering using distribute lists provides control over the routes RIP receives and advertises<br \/>\n&#8211; this may be done globally or per interface<\/p>\n<p>Input distribute lists control route reception<br \/>\n&#8211; input filtering is applied to advertisements received from neighbors<br \/>\n&#8211; only routes that pass input filtering will be inserted in the RIP local routing table and become a candidate for insertion into the IPv6 routing table<\/p>\n<p>Output distribute lists control route advertisement<\/p>\n<p>An interface distribute list always takes precedence<\/p>\n<p>An IPv6 prefix list range can be specified with the keywords &#8220;le&#8221; (less than) and &#8220;ge&#8221; (greater than)<br \/>\n&#8211; an exact match is assumed when &#8220;le&#8221; and &#8220;ge&#8221; are not specified<\/p>\n<p>ipv6 prefix list seq {deny | |description } ge le<\/p>\n<p>Example:<\/p>\n<p>ipv6 prefix-list abc permit 2001:DB8::\/16<br \/>\nipv6 prefix-list abc deny ::\/0<\/p>\n<p>ipv6 router rip process1<br \/>\ndistribute-list prefix-list abc in fa0\/0<\/p>\n<p>Example:<\/p>\n<p>ipv6 router rip process1<br \/>\nmaximum-paths 1<br \/>\nredistribute bgp 65001 route-map bgp-to-rip<br \/>\ndistribute-list prefix-list eht0\/0-in-flt in Ethernet0\/0<\/p>\n<p>int e0\/0<br \/>\nipv6 address 2001:DB8::\/64 eui-64<br \/>\nipv6 rip process1 enable<br \/>\nipv6 rip process1 default-information originate<\/p>\n<p>ipv6 prefix-list bgp-to-rip-flt seq 10 deny 2001:DB8:3::\/16 le 128<br \/>\nipv6 prefix-list bgp-to-rip-flt seq 20 permit 2001:DB8:1::\/8 le 128<\/p>\n<p>ipv6 prefix-list eth0\/0-in-flt seq 10 deny ::\/0<br \/>\nipv6 prefix-list eth0\/0-in-flt seq 20 permit ::\/0 le 128<\/p>\n<p>route-map bgp-to-rip permit 10<br \/>\nmatch ipv6 address prefix-list bgp-to-rip-flt<\/p>\n<p>Bidirectional Forward Detection (BFD) for RIPv2 support feature is used to facilitate an alternate path selection when a neighboring router is inactive<\/p>\n<p>BFD is a protocol that provides subsecond failure detection using a single, common standardized mechanism that is independent of media and routing protocols<\/p>\n<p>Configuring BFD for RIPv2 neighbors:<\/p>\n<p>router rip<br \/>\nversion 2<br \/>\nbfd all-interfaces<\/p>\n<p>Enable BFD for a specific RIP neighbor<\/p>\n<p>router rip<br \/>\nversion 2<br \/>\nneighbor 10.10.20.2 bfd<\/p>\n<p>BFD for RIPv2 Support was introduced in 15.3(2)T<\/p>\n<p>Key chain authentication pitfall<br \/>\n&#8211; white space counts as a valid character<br \/>\n&#8211; use &#8220;show key chain&#8221; command to ensure that a space is not at the end of the<\/p>\n<p>authentication key<br \/>\n&#8211; for RIP and EIGRP authentication<\/p>\n<p>ip rip advertise (0 &#8211; 429466&gt;<br \/>\n&#8211; interface command to specify the periodic advertisement interval<br \/>\n&#8211; the command overrides the default global periodic advertisement interval or the<\/p>\n<p>&#8220;timers-basic&#8221; settings<\/p>\n","protected":false},"excerpt":{"rendered":"<p>v5 Written: 3.4 RIP (v2 and v6) 3.4.a Implement and troubleshoot RIPv2 3.4.b Describe RIPv6 (RIPng) v5 Lab: 2.4 RIPv2 2.4.a Implement and troubleshoot RIPv2 http:\/\/docwiki.cisco.com\/wiki\/Routing_Information_Protocol http:\/\/www.cisco.com\/c\/en\/us\/tech\/ip\/routing-information-protocol-rip\/index.html http:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/ios-xml\/ios\/iproute_rip\/configuration\/15-mt\/irr-15- mt-book.html http:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/switches\/lan\/catalyst3750x_3560x\/software\/release\/15 -0_2_se\/configuration\/guide\/3750x_cg\/swiprout.html#wp1028241 http:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/ios-xml\/ios\/iproute_rip\/command\/irr-cr-book\/irr-cr- rip.html Routing TCP \/ IP Volume I &#8211; Chapter 5: Routing Information Protocol (RIP) Routing TCP \/ IP Volume I &#8211; Chapter 6: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[30,21,11],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-ccie","tag-ccie","tag-rip","tag-route-switch"],"_links":{"self":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56"}],"version-history":[{"count":3,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":233,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions\/233"}],"wp:attachment":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}