{"id":694,"date":"2018-10-26T22:27:24","date_gmt":"2018-10-26T22:27:24","guid":{"rendered":"http:\/\/feralpacket.org\/?p=694"},"modified":"2018-10-26T22:27:24","modified_gmt":"2018-10-26T22:27:24","slug":"multicast-auto-rp-notes","status":"publish","type":"post","link":"https:\/\/feralpacket.org\/?p=694","title":{"rendered":"Multicast  Auto-RP Notes"},"content":{"rendered":"<p><span style=\"font-weight: bold;\">Multicast Auto-RP<\/span><\/p>\n<p>\u00a0&#8211; Cisco proprietary<\/p>\n<p>\u00a0&#8211; Uses a Mapping Agent (MA) to distribute RP information<\/p>\n<p>\u00a0&#8211; RP informs the MA about themselves<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; Announce message<\/p>\n<p>\u00a0&#8211; MA sends a Discovery message to all routes<\/p>\n<p>\u00a0&#8211; Announce message are multicast messages sent by RPs to the destination<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; 224.0.1.39, UDP port 496<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; Only MAs join the group and will receive the message<\/p>\n<p>\u00a0&#8211; Discovery messages are multicast messages sentby the MA to<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; 224.0.1.40, UDP port 496<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; All routers join this group and will receive the message<\/p>\n<p>\u00a0&#8211; If multiple RPs exist, only the higher IP address RP information is sent by the MA<\/p>\n<p>\u00a0&#8211; The election of a specific RP is done only if all RPs are claiming to service the same group range<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; 224.0.0.0\/4<\/p>\n<p>\u00a0&#8211; If RPs are claiming the service groups, then MA sends the information of all RPs to everyone<\/p>\n<p>e.g. &#8211;<\/p>\n<p>R2 -&gt; 224.0.0.0 &#8211; 231.255.255.255<\/p>\n<p>R3 -&gt; 232.0.0.0 &#8211; 239.255.255.255<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; Both RPs will be used<\/p>\n<p>Scenario &#8211; R2 (2.2.2.2) -&gt; 224.0.0.0 &#8211; 235.255.255.255<\/p>\n<p>R3 (3.3.3.3) -&gt; 232.0.0.0 &#8211; 239.255.255.255<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; Overlapping range<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 -&gt; 232.0.0.0 &#8211; 235.255.255.255<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 -&gt; R3 will be used for the RP because of the higher IP address<\/p>\n<p>If multiple RPs are claiming the same range with different prefix-lengths, then the longest matching prefix will be used<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/38ac276527953e656db9b2648e6d6417.jpeg\" style=\"\" width=\"600\" height=\"\"\/><\/p>\n<p><span style=\"font-weight: bold;\">Configuring the RP<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">ip pim send-rp-announce &lt;int&gt; scope &lt;ttl&gt; [group-list &lt;acl&gt;] [interval &lt;sec&gt;]<\/span><\/p>\n<p>\u00a0&#8211; The interval default is 60 seconds<\/p>\n<p>\u00a0&#8211; If group-list is not definded, the RP will claim to serve all multicast IP addresses<\/p>\n<p><span style=\"font-weight: bold;\">Configuring the MA<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">ip pim send-rp-discovery &lt;int&gt; scope &lt;ttl&gt; [interval &lt;sec&gt;]<\/span><\/p>\n<p>\u00a0<\/p>\n<p>\u00a0&#8211; The interval default is 60 seconds<\/p>\n<p>R2(config)#\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit 224.0.0.0 7.255.255.255<\/span><\/p>\n<p>R3(config)#\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit 224.0.0.0 15.255.255.255<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">\u00a0access-list 1 permit 224.0.0.0 15.255.255.255<\/span><\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; This ACL covers the entire multicast IP address range<\/p>\n<p>On any router<\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">sh ip pim rp mapping<\/span><\/p>\n<p>Configuring Auto-RP<\/p>\n<p>\u00a01. Activate multicast routing<\/p>\n<p>\u00a02. Configure PIM sparse mode on all interfaces<\/p>\n<p>\u00a03. Configure RP and MA<\/p>\n<p>Join messages have to be sent to<\/p>\n<p>\u00a0&#8211; Accounce -&gt; 224.0.1.39<\/p>\n<p>\u00a0&#8211; Discovery &#8211; 224.0.1.40<\/p>\n<p>\u00a0&#8211; Problem<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; The router cannot join without knowing where to send the join messages<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; The links are pruned<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; This means that announce and discovery messages cannot be sent by default<\/p>\n<p>\u00a0&#8211; Solution<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; Send messages in dense mode and flood the messages<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 -&gt; Change all ports to sparse-dense-mode<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8211; or &#8211;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 -&gt; Use sparse-mode and configure all routers with<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">\u00a0ip pim autorp listener<\/span><\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0-&gt; This commands converts the annouce and discovery groups to dense mode<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Multicast Auto-RP<\/p>\n","protected":false},"author":1,"featured_media":693,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[54,46,31],"class_list":["post-694","post","type-post","status-publish","format-standard","hentry","category-ccie","tag-auto-rp","tag-multicast","tag-published"],"_links":{"self":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/694","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=694"}],"version-history":[{"count":1,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/694\/revisions"}],"predecessor-version":[{"id":701,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/694\/revisions\/701"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/media\/693"}],"wp:attachment":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}