{"id":292,"date":"2017-08-19T10:11:29","date_gmt":"2017-08-19T09:11:29","guid":{"rendered":"https:\/\/zed-network.fr\/?p=292"},"modified":"2017-08-19T10:11:29","modified_gmt":"2017-08-19T09:11:29","slug":"dmvpn-phase-3-with-ospf","status":"publish","type":"post","link":"https:\/\/zed-network.fr\/?p=292","title":{"rendered":"DMVPN Phase 3 with OSPF"},"content":{"rendered":"<h1>Diagram<br \/>\n<img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-293\" src=\"https:\/\/zed-network.fr\/wp-content\/uploads\/DMVPN-Topology.png\" alt=\"\" width=\"355\" height=\"189\" srcset=\"https:\/\/zed-network.fr\/wp-content\/uploads\/DMVPN-Topology.png 355w, https:\/\/zed-network.fr\/wp-content\/uploads\/DMVPN-Topology-300x160.png 300w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/h1>\n<h1>Hub (R1)<\/h1>\n<pre>HUB#\r\ninterface Ethernet0\/0\r\nip address 10.0.1.2 255.255.255.0\r\n!\r\nip route 0.0.0.0 0.0.0.0 10.0.1.1\r\n!\r\ninterface Tunnel0\r\nip address 100.0.0.1 255.255.255.0\r\nno ip redirects\r\nip mtu 1400\r\n<strong>ip nhrp map multicast dynamic<\/strong>\r\nip nhrp network-id 1234\r\nip nhrp holdtime 360\r\n<strong>ip nhrp redirect<\/strong>\r\nip tcp adjust-mss 1360\r\n<strong>ip ospf network point-to-multipoint<\/strong>\r\nip ospf 1 area 0\r\ntunnel source Ethernet0\/0\r\ntunnel mode gre multipoint<\/pre>\n<h1>Spoke (R2, R3)<\/h1>\n<pre>SPOKE1#\r\n interface Ethernet0\/0\r\n ip address 10.0.2.2 255.255.255.0\r\n !\r\n ip route 0.0.0.0 0.0.0.0 10.0.2.1\r\n !\r\n interface Tunnel0\r\n ip address 100.0.0.2 255.255.255.0\r\n no ip redirects\r\n ip mtu 1400\r\n <strong>ip nhrp map 100.0.0.1 10.0.1.2\r\n ip nhrp map multicast 10.0.1.2<\/strong>\r\n ip nhrp network-id 1234\r\n ip nhrp holdtime 360\r\n ip nhrp nhs 100.0.0.1\r\n<strong> ip nhrp shortcut<\/strong>\r\n ip tcp adjust-mss 1360\r\n <strong>ip ospf network point-to-multipoint<\/strong>\r\n ip ospf 1 area 0\r\n tunnel source Ethernet0\/0\r\n tunnel mode gre multipoint\r\n\r\nSPOKE2#\r\n interface Ethernet0\/0\r\n ip address 10.0.3.2 255.255.255.0\r\n !\r\n ip route 0.0.0.0 0.0.0.0 10.0.3.1\r\n\r\n!\r\n interface Tunnel0\r\n ip address 100.0.0.3 255.255.255.0\r\n no ip redirects\r\n ip mtu 1400\r\n <strong>ip nhrp map 100.0.0.1 10.0.1.2\r\n ip nhrp map multicast 10.0.1.2<\/strong>\r\n ip nhrp network-id 1234\r\n ip nhrp holdtime 360\r\n ip nhrp nhs 100.0.0.1\r\n <strong>ip nhrp shortcut<\/strong>\r\n ip tcp adjust-mss 1360\r\n<strong> ip ospf network point-to-multipoint<\/strong>\r\n ip ospf 1 area 0\r\n tunnel source Ethernet0\/0\r\n tunnel mode gre multipoint<\/pre>\n<h1>Troubleshooting<\/h1>\n<pre>HUB#sh dmvpn\r\nLegend: Attrb --&gt; S - Static, D - Dynamic, I - Incomplete\r\n N - NATed, L - Local, X - No Socket\r\n # Ent --&gt; Number of NHRP entries with same NBMA peer\r\n NHS Status: E --&gt; Expecting Replies, R --&gt; Responding, W --&gt; Waiting\r\n UpDn Time --&gt; Up or Down Time for a Tunnel\r\n==========================================================================\r\n\r\nInterface: Tunnel0, IPv4 NHRP Details\r\nType:Hub, NHRP Peers:2,\r\n\r\n# Ent Peer NBMA Addr Peer Tunnel Add State UpDn Tm Attrb\r\n ----- --------------- --------------- ----- -------- -----\r\n 1 10.0.2.2 100.0.0.2 UP 01:15:52 D\r\n 1 10.0.3.2 100.0.0.3 UP 01:15:09 D\r\n<\/pre>\n<h2>Before flow between spokes:<\/h2>\n<pre>SPOKE1#sh dmvpn\r\nLegend: Attrb --&gt; S - Static, D - Dynamic, I - Incomplete\r\n N - NATed, L - Local, X - No Socket\r\n # Ent --&gt; Number of NHRP entries with same NBMA peer\r\n NHS Status: E --&gt; Expecting Replies, R --&gt; Responding, W --&gt; Waiting\r\n UpDn Time --&gt; Up or Down Time for a Tunnel\r\n==========================================================================\r\n\r\nInterface: Tunnel0, IPv4 NHRP Details\r\nType:Spoke, NHRP Peers:1,\r\n\r\n# Ent Peer NBMA Addr Peer Tunnel Add State UpDn Tm Attrb\r\n ----- --------------- --------------- ----- -------- -----\r\n 1 10.0.1.2 100.0.0.1 UP 01:16:18 S\r\n\u00a0\r\n\r\n\u00a0\r\n\r\nSPOKE1#ping 100.0.0.3\r\nType escape sequence to abort.\r\nSending 5, 100-byte ICMP Echos to 100.0.0.3, timeout is 2 seconds:\r\n!!!!!\r\n<\/pre>\n<h2>After a dynamic tunnel to the other spoke is dynamically enabled<\/h2>\n<pre>Success rate is 100 percent (5\/5), round-trip min\/avg\/max = 1\/1\/2 ms\r\nSPOKE1#sh dmvpn\r\nLegend: Attrb --&gt; S - Static, <span style=\"color: #000000;\"><strong>D - Dynamic<\/strong><\/span>, I - Incomplete\r\nN - NATed, L - Local, X - No Socket\r\n# Ent --&gt; Number of NHRP entries with same NBMA peer\r\nNHS Status: E --&gt; Expecting Replies, R --&gt; Responding, W --&gt; Waiting\r\nUpDn Time --&gt; Up or Down Time for a Tunnel\r\n==========================================================================\r\nInterface: Tunnel0, IPv4 NHRP Details\r\nType:Spoke, NHRP Peers:2,\r\n\r\n# Ent Peer NBMA Addr Peer Tunnel Add State UpDn Tm Attrb\r\n----- --------------- --------------- ----- -------- -----\r\n1 10.0.1.2 100.0.0.1 UP 01:16:31 S\r\n<strong>1 10.0.3.2 100.0.0.3 UP 00:00:01 D\r\n<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Diagram Hub (R1) HUB# interface Ethernet0\/0 ip address 10.0.1.2 255.255.255.0 ! ip route 0.0.0.0 0.0.0.0 10.0.1.1 ! interface Tunnel0 ip address 100.0.0.1 255.255.255.0 no ip redirects ip mtu 1400 ip nhrp map multicast dynamic ip nhrp network-id 1234 ip nhrp holdtime 360 ip nhrp redirect ip tcp adjust-mss 1360 ip ospf network point-to-multipoint ip ospf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-ccie-rs","category-cisco"],"_links":{"self":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=292"}],"version-history":[{"count":4,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":297,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions\/297"}],"wp:attachment":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}