{"id":748,"date":"2021-08-20T03:12:21","date_gmt":"2021-08-20T03:12:21","guid":{"rendered":"http:\/\/feralpacket.org\/?p=748"},"modified":"2021-08-20T03:12:21","modified_gmt":"2021-08-20T03:12:21","slug":"ripv2-notes","status":"publish","type":"post","link":"https:\/\/feralpacket.org\/?p=748","title":{"rendered":"RIPv2 Notes"},"content":{"rendered":"<p><b>RIPv2<\/b>:<\/p>\n<p>&nbsp;&#8211; UDP port 520<\/p>\n<p>&nbsp;&#8211; Multicast IP 224.0.0.9<\/p>\n<p>&nbsp;&#8211; Classless (not by default)<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Cannot have discontiguous networks<\/p>\n<p>&nbsp;&#8211; Metric is hop count<\/p>\n<p>&nbsp;&#8211; Metric 16 is&nbsp;infinite&nbsp;metric<\/p>\n<p>&nbsp;&#8211; Timers<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Update timer: &nbsp;30 seconds<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Invalid timer: &nbsp;180 seconds<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Holddown timer: &nbsp;180 seconds<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Flush timer: &nbsp;240 seconds<\/p>\n<p>&nbsp;&#8211; Supports authentication<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Plain text<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; MD5<\/p>\n<p>&nbsp;&#8211; AD is 120<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;version 2<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;no auto-summary<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;network x.x.x.x<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/6ab1707e5e1aae05f33a8a73364dc92c.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>Mismatched version updates can cause one way communication between the routers<\/p>\n<p>&nbsp;&#8211; R1<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Send v1 updates<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Receive v1 and v2 updates<\/p>\n<p>&nbsp;&#8211; R2<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Send and receive v2 updates<\/p>\n<p><b>Authentication<\/b><\/p>\n<p>&nbsp;&#8211; Plain text<\/p>\n<p>&nbsp;&#8211; MD5<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Create key chain<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Apply to an interface<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">key chain CISCO<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;key 1<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp; key-string CCIE<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\"><\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">int s0\/0<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;ip rip authentication mode { text | md5 }<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;ip rip authentication key-chain CISCO<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">sh ip protocols<\/span><\/p>\n<p>&nbsp;&#8211; Lists the authentication method<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">debug ip rip<\/span><\/p>\n<p>&nbsp;&#8211; To troubleshoot authentication problems<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Such as key mismatch<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">sh key chain<\/span><\/p>\n<p>&nbsp;&#8211; To see if a space is present in the key-string<\/p>\n<p><b>Summarization<\/b><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/df62f0bec7c139fcae2eea605de69903.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>Summary address 10.0.0.0\/22<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">int fa0\/0<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;ip rip summary-address 10.0.0.0 255.255.252.0<\/span><\/p>\n<p>A summary address is installed into the routing table pointing to the NULL interface<\/p>\n<p>&nbsp;&#8211; Used when one of the more specific networks is not rachable<\/p>\n<p>&nbsp;&#8211; This prevents the packets from being default routed to 0.0.0.0\/0<\/p>\n<p>&nbsp;&#8211; Causes packets to be dropped<\/p>\n<p>&nbsp;&#8211; Summary address AS is still 120<\/p>\n<p>RIP does not create a summary route pointing to NULL0<\/p>\n<p>&nbsp;&#8211; Must be created manually<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip route 10.0.0.0 255.255.252.0 NULL0<\/span><\/p>\n<p>172.16.0.0 \/24<\/p>\n<p>172.16.1.0 \/24<\/p>\n<p>172.16.2.0 \/24<\/p>\n<p>172.16.3.0 \/24<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; 172.16.0.0 \/22<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; Works with RIPv2<\/p>\n<p>172.0.0.0 \/16<\/p>\n<p>172.1.0.0 \/16<\/p>\n<p>172.2.0.0 \/16<\/p>\n<p>172.3.0.0 \/16<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; 172.0.0.0 \/14<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; Will not work with RIPv2<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; Error message when trying to configure<\/p>\n<p>RIPv2 summarization is only possible within the limits of a class (A, B, C)<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; RIPv2 summarization is not classles<\/p>\n<p><b>Default Routing<\/b><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/0a2c8133602c384a54853b8ef1aea0ff.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>R1(config)# <span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;default-information originate<\/span><\/p>\n<p>In other routing tables:<\/p>\n<p>R* &nbsp;0.0.0.0 &nbsp; &nbsp; [120|*]<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; The metric of the summary route is the least metric among more specific routes<\/p>\n<p><b>Conditional Default Routing<\/b><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/080ec5edb70c2282f3ece1bb947ff9eb.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>In conditional default routing, the exit interface network is checked<\/p>\n<p>&nbsp;&#8211; If the network is in the routing table, the default network will be injected<\/p>\n<p>&nbsp;&#8211; If the network is not in the routing table, the default route is not injected<\/p>\n<p>R1(config)# <span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit 200.0.0.0 0.0.0.255<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">route-map DR<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;match ip address 1<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;default-information originate route-map DR<\/span><\/p>\n<p>This is conditional, but not reliable<\/p>\n<p>&nbsp;&#8211; Have to make the route-map false to be reliable<\/p>\n<p>&nbsp;&#8211; Link may be up, but the connection to the Internet may be down<\/p>\n<p>Reliable Conditional Default Routing<\/p>\n<p>&nbsp;&#8211; Uses IP SLA<\/p>\n<p>Apply to RIP<\/p>\n<p>&nbsp;&#8211; IP SLA (Step 1) &lt;&#8211;&gt; Track (Step 2) &lt;&#8211; Dummy Static Route (Step 3) &lt;&#8211; Access-list (Step 4) &lt;&#8211; Route-map (Step 5)<\/p>\n<p>R1(config)# <span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip sla 1<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;icmp-echo 4.2.2.2<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp; timeout 2000<\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; In milliseconds<\/p>\n<p>&nbsp; <span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">frequency 4<\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; In seconds<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip sla schedule 1 start-time now life forever<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">track 1 ip sla 1 reachability<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip route 169.254.0.0 255.255.0.0 NULL0 track 1<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit 169.254.0.0 0.0.255.255<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">route-map ABC<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;match ip address 1<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;default-information originate route-map ABC<\/span><\/p>\n<p><b>RIP Filtering<\/b><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/d92c1642d8750a7f45a59e03b0d8926c.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p><b>Passive Interface<\/b><\/p>\n<p>&nbsp;&#8211; It stops sending updates out the specified interface<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;passive-interface { &lt;interface&gt; | default }<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">passive-interface default<\/span><\/p>\n<p>&nbsp;&#8211; Can be used if there are a lot of loopback interfaces that you do not want to advertise<\/p>\n<p><b>Distribute List<\/b><\/p>\n<p>&nbsp;&#8211; Which network to filter<\/p>\n<p>&nbsp;&#8211; Direction ( in | out )<\/p>\n<p>&nbsp;&#8211; In | out which interface<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; If not specified, the network will be filtered from all interfaces<\/p>\n<p>&nbsp;&#8211; Filter is outsourced!<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; ACL<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Prefix-list<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;distribute-list &lt;acl&gt; in | out int &lt;int&gt;<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\"><\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;distribute-list prefix &lt;list&gt; in | out int &lt;int&gt;<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/4da1ee4e204206943daa6df33abb49ec.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p><b>Distribute List &#8211; Standard ACL<\/b><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 deny 1.1.1.1<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit any<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;distribute-list 1 out fa0\/0<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/8d90929d9ea4392e9a46625069ed13a7.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>Scenario -&gt; Filter all even number octets (in the 3rd octet) of outgoing network<\/p>\n<p>255.255.11111110.255<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; I don&#8217;t care about the first 7 bits, I only care about the last bit<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Subnet mask: &nbsp;255.255.254.255<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Wild card mask: &nbsp;0.0.1.0<\/p>\n<p>10.0.0.0 &#8211; 00000000<\/p>\n<p>10.0.2.0 &#8211; 00000010<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Last bit doesn&#8217;t change<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; 0 &#8211; don&#8217;t care<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; 1 &#8211; do care<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 deny 0.0.0.0 255.255.254.255<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit any<\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp;&#8211; or &#8211;<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit 0.0.1.0 255.255.254.255<\/span><\/p>\n<p><b>Distribute List &#8211; Extended ACL<\/b><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list &lt;number&gt; permit | deny &lt;protocol&gt; &lt;source&gt; &lt;destination&gt;<\/span><\/p>\n<p>&nbsp;&#8211; Protocol is ip<\/p>\n<p>&nbsp;&#8211; Source is update source<\/p>\n<p>&nbsp;&#8211; Destination is update network<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/e902537f24be5e55dffb3e7dff5add56.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>Scenario -&gt; On R1, filter incoming update for network 50.0.0.0 if it is coming from R3<\/p>\n<p>R1(config)# <span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 100 deny ip host 123.0.0.3 host 50.0.0.0<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 100 permit ip any any<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;distribute-list 100 in<\/span><\/p>\n<p><b>Prefix Lists<\/b><\/p>\n<p>&nbsp;&#8211; More flexible<\/p>\n<p>&nbsp;&#8211; Can match on subnet masks<\/p>\n<p>i<span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">p prefix-list &lt;name&gt; [seq &lt;number] permit | deny &lt;network\/wildcard mask&gt; [le | ge &lt;0 &#8211; 32&gt;]<\/span><\/p>\n<p>&nbsp;&#8211; &lt;network\/wildcard mask&gt; &#8211; prefix<\/p>\n<p>&nbsp;&#8211; le | ge &lt;0 &#8211; 32&gt; &#8211; subnet mask<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list &lt;number&gt; permit | deny &lt;network&gt; &lt;wildcard mask&gt;<\/span><\/p>\n<p>10.0.0.0 0.255.255.255<\/p>\n<p>10.0.0.0 \/22<\/p>\n<p>10.0.0.0 \/24<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip prefix-list LIST1 deny 10.0.0.0\/8 ge 24 le 24<\/span><\/p>\n<p>&nbsp;&#8211; Matches 10.0.0.0 \/24<\/p>\n<p>Match any network starting with 172.16.x.x with subnet mask from 255.255.0.0 to 255.255.255.0<\/p>\n<p>255.255.0.0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-&gt; \/16<\/p>\n<p>255.255.128.0 &nbsp; &nbsp; &nbsp;-&gt; \/17<\/p>\n<p>255.255.192.0 &nbsp; &nbsp; &nbsp;-&gt; \/18<\/p>\n<p>255.255.224.0 &nbsp; &nbsp; &nbsp;-&gt; \/19<\/p>\n<p>255.255.240.0 &nbsp; &nbsp; &nbsp;-&gt; \/20<\/p>\n<p>255.255.248.0 &nbsp; &nbsp; &nbsp;-&gt; \/21<\/p>\n<p>255.255.252.0 &nbsp; &nbsp; &nbsp;-&gt; \/22<\/p>\n<p>255.255.254.0 &nbsp; &nbsp; &nbsp;-&gt; \/23<\/p>\n<p>255.255.255.0 &nbsp; &nbsp; &nbsp;-&gt; \/24<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip prefix-list ABC deny 172.16.0.0\/16 ge 16 le 24<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/e065283f396ad2ca3aa7d7b5bff70ea3.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>1.&nbsp;<\/p>\n<p>&nbsp;&#8211; Wildcard -&gt;16<\/p>\n<p>&nbsp;&#8211; Range -&gt; 16 &#8211; 24<\/p>\n<p>2.<\/p>\n<p>&nbsp;&#8211; Wildcard -&gt; 16<\/p>\n<p>&nbsp;&#8211; Range -&gt; 18 &#8211; 32<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; If on the exam, upper boundary is not specific, assume it&#8217;s 32<\/p>\n<p>3.<\/p>\n<p>&nbsp;&#8211; Wildcard -&gt; 16<\/p>\n<p>&nbsp;&#8211; Range -&gt; 18 &#8211; 24<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip prefix-list ABC deny 172.16.0.0\/16 ge 18<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip prefix-list ABC deny 172.16.0.0\/16 ge 18 le 24<\/span><\/p>\n<p>Drawback of using prefix-lists<\/p>\n<p>&nbsp;&#8211; ge cannot be lower than the wildcard mask<\/p>\n<p>Scenario -&gt; Match any network starting with 172.16.0.0 and subnet mask between 8 and 24<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip prefix-list ABC deny 172.16.0.0\/16 ge 8 le 24<\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; <b>Will not work<\/b><\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; ge cannot be lower than the wildcard mask<\/p>\n<p>If a single subnet mask is to be matched and it happens to be equal to the wildcard mask, then ge and le can be skipped<\/p>\n<p>&nbsp;&#8211; Compare first octet of 10.0.0.0 and subnet mask must be 255.0.0.0<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip prefix-list permit 10.0.0.0\/8<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/968896fa50ed49ec65de83c605c98cf8.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>Filter 1.1.1.1 \/32 from R2<\/p>\n<p>R1(config)# <span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip prefix-list ABC deny 1.1.1.1\/32<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;ip prefix-list ABC permit 0.0.0.0\/0 le 32<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;distribute-list prefix ABC out fa0\/0<\/span><\/p>\n<p><b>Filter from a specific source<\/b><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/e72c66f33be9f4c3a5d2c982095142f4.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>Scenario -&gt; Filter any network coming from R3 and accept all networks from R2<\/p>\n<p>&nbsp;&#8211; In this scenario, two prefix lists will be used<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; 1. To identify which networks will be filtered<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; 2. To identify the source<\/p>\n<p><b>Distribute List<\/b><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">distribute-list prefix &lt;list1&gt; gateway &lt;list2&gt; in | out [&lt;interface&gt;]<\/span><\/p>\n<p>R1(config)# <span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">ip prefix-list LIST1 permit 50.0.0.0\/8<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;ip prefix-list LIST2 deny 123.0.0.3\/32<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;ip prefix-list LIST2 permit 123.0.0.2\/32<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;distribute-list prefix LIST1 gateway LIST2 in fa0\/0<\/span><\/p>\n<p>During the lab, always use extended ACLs unless using prefix-lists is spcified<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">sh ip protocols<\/span><\/p>\n<p>&nbsp;&#8211; Displays the distribute-lists applied<\/p>\n<p><b>Offset-list<\/b><\/p>\n<p>&nbsp;&#8211; This is used to add an offset number to the metric value when updates are sent or received<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/3afbe42cb4331cf638c4f27a131b22e1.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>Scenario -&gt; R1 should always use R2 as next-hop to reach network x (50.0.0.0)<\/p>\n<p>&nbsp;&#8211; If connection to R2 goes down, R1 should start using R3 as next-hop for network x<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">offset-list &lt;acl&gt; in | out &lt;offset-number&gt; [&lt;interface&gt;]<\/span><\/p>\n<p>&nbsp;&#8211; Standard ACL is used<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit 50.0.0.0<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;offset-list 1 in 2 s0\/1<\/span><\/p>\n<p>For filtering purposes, offset number 16 can be used<\/p>\n<p>Scenario -&gt; Filter all network from R3<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit any<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;offset 1 in 16 s0\/1<\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp;&#8211; or &#8211;<\/p>\n<p>! No ACL needed<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;offset-list 0 in 16 s0\/1<\/span><\/p>\n<p><b>Filtering By Manipulating AD<\/b><\/p>\n<p>&nbsp;&#8211; AD 255<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Unreachable<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Route deleted from the routing table<\/p>\n<p>Scenario -&gt; Filter network 50.0.0.0 from any router<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit 50.0.0.0<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;distance 255 0.0.0.0 255.255.255.255 1<\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; 0.0.0.0 255.255.255.255 &#8211; the source<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; 1 &#8211; ACL<\/p>\n<p>Scenario -&gt; Filter 50.0.0.0 from R3 (123.0.0.3)<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit 50.0.0.0<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;distance 255 123.0.0.3 0.0.0.0 1<\/span><\/p>\n<p><b>RIP Miscellaneous Topics<\/b><\/p>\n<p>&nbsp;&#8211; Change timers<\/p>\n<p>&nbsp;&#8211; Unicast updates<\/p>\n<p>&nbsp;&#8211; Triggered updates<\/p>\n<p>&nbsp;&#8211; Send \/ receive version<\/p>\n<p><b>Changing Timers<\/b><\/p>\n<p>&nbsp;&#8211; rip configation<\/p>\n<p>&nbsp;&#8211; inside interface<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;timers basic &lt;update&gt; &lt;invalid&gt; &lt;holddown&gt; &lt;flush&gt;<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">int fa0\/0<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;ip rip advertise &lt;sec&gt;<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/4bee8c98adfed475028c4e7415f2c65c.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>Scenario -&gt; Change the RIP timers to 20, 90, 90, 120, but keep the update time to 30 seconds for fa0\/0<\/p>\n<p>R1(config)# <span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;timers basic 20 90 90 120<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">int fa0\/0<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;ip rip advertise 30<\/span><\/p>\n<p><b>Unicast Updates<\/b><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/57b2fe857759f3371e3e30bf10217610.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>To switch to unicast updates<\/p>\n<p>&nbsp;&#8211; Stop sending multicast updates<\/p>\n<p>&nbsp;&#8211; Start sending unicast updates<\/p>\n<p>On R1 \/ R2:<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">router rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;passive-interface fa0\/0<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;neighbor 12.0.0.x<\/span><\/p>\n<p><b>Triggered Updates<\/b><\/p>\n<p>&nbsp;&#8211; Any serial (point-to-point) interface the periodic updates can be disabled and made triggered<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/aa91393978d6d947b752ae6ff78f2dea.jpeg\" style=\"height: auto;\" width=\"\" height=\"\"><\/p>\n<p>On R1 \/ R2:<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">int s0\/0<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;ip rip triggered<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">debug ip rip<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">sh ip protocols<\/span><\/p>\n<p>Send | Receive Version<\/p>\n<p>&nbsp;&#8211; By default if the version command is not used, then all interfaces<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Send v1 updates<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Receive v1 and v2 updates<\/p>\n<p>&nbsp;&#8211; If the version command is used, the interfaces will send and receive the version specified<\/p>\n<p>&nbsp;&#8211; The impact of the version command can be overridden by using interface specific commands<\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">int fa0\/0<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;ip rip send version { 1 | 2 }<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;ip rip receive version { 1 | 2 }<\/span><\/p>\n<p><span style=\"background-color:rgb(255, 250, 165);-evernote-highlight:true;\">sh ip protocols<\/span><\/p>\n<p>router rip will not display in show run if a network statement is not configured<\/p>\n<p>ip rip advertise 30 will not show up in the sh run config because it is the default configuration<\/p>\n<p>&nbsp;&#8211; Use sh ip route to verify the proper networks are received on the interface<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RIPv2:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[31,26,10],"class_list":["post-748","post","type-post","status-publish","format-standard","hentry","category-ccie","tag-published","tag-ripv2","tag-service-provider"],"_links":{"self":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/748","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=748"}],"version-history":[{"count":1,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/748\/revisions"}],"predecessor-version":[{"id":986,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/748\/revisions\/986"}],"wp:attachment":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}