{"id":2487,"date":"2015-02-14T23:39:02","date_gmt":"2015-02-14T14:39:02","guid":{"rendered":"http:\/\/uraneko.tcorps.info\/?p=2487"},"modified":"2015-02-14T23:43:08","modified_gmt":"2015-02-14T14:43:08","slug":"dmvpn-with-nat","status":"publish","type":"post","link":"http:\/\/uraneko.tcorps.info\/?p=2487","title":{"rendered":"DMVPN with NAT"},"content":{"rendered":"<p>In that case, you have to pay attention on\u00a0IPsec encap mode&#8230;<\/p>\n<p>&nbsp;<\/p>\n<p>http:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/ios-xml\/ios\/sec_conn_dmvpn\/configuration\/12-4t\/sec-conn-dmvpn-12-4t-book\/sec-conn-dmvpn-dt-spokes-b-nat.html<\/p>\n<blockquote>\n<h4 class=\"topictitle4\">NHRP Registration<\/h4>\n<div>\n<p>When an NHRP registration is received, the hub checks the source IP address on the encapsulating GRE\/IP header of the NHRP packet with the source NBMA IP address, which is contained in the NHRP registration packet. If these IP addresses are different, then NHRP knows that NAT is changing the outer IP header source address. The hub preserves both the pre- and post-NAT address of the registered spoke.<\/p>\n<p><a name=\"GUID-528EE2C2-DCF7-46B6-A471-E5D67E85F0BB__GUID-0ED7C318-A0B9-4729-AC18-A3280CDAE086\"><\/a><\/p>\n<table id=\"GUID-528EE2C2-DCF7-46B6-A471-E5D67E85F0BB__GUID-0ED7C318-A0B9-4729-AC18-A3280CDAE086\">\n<tbody>\n<tr>\n<td class=\"olh_note\"><b>Note<\/b><\/td>\n<td class=\"olh_note\">\n<hr \/>\n<p>If encryption is used, then IPsec transport mode must be used to enable NHRP.<\/p>\n<hr \/>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p>Let&#8217;s see this behavior.<\/p>\n<p>1) show ip nhrp output in transport mode DMVPN.<\/p>\n<blockquote><p>Router-NHS#sh ip nhrp<br \/>\n10.10.10.1\/32 via\u00a010.10.10.2<br \/>\nTunnel0 created 00:16:58, expire 01:43:02<br \/>\nType: dynamic, Flags: unique registered<br \/>\nNBMA address:\u00a01.1.1.1<br \/>\n(Claimed NBMA address: 192.168.1.1)<\/p><\/blockquote>\n<p>NHRP realize the IP address is changed by NAT (192.168.1.1 to 1.1.1.1).<\/p>\n<p>2) show ip nhrp output in\u00a0tunnel mode\u00a0DMVPN.<\/p>\n<blockquote><p>Router-NHS#sh ip nhrp<br \/>\n10.10.10.1\/32 via\u00a010.10.10.2<br \/>\nTunnel0 created 00:00:11, expire 01:59:49<br \/>\nType: dynamic, Flags: unique registered used<br \/>\nNBMA address: 192.168.1.1<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>I\uff4e the Case(2), NHRP believes the packet is not NATted since the original IP header is encapsulation and not changed. Therefore, original local(before nat) address is used as the NBMA address.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In that case, you have to pay attention on\u00a0IPsec e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,6,16],"tags":[],"class_list":["post-2487","post","type-post","status-publish","format-standard","hentry","category-ccie","category-6","category-16"],"_links":{"self":[{"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/posts\/2487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2487"}],"version-history":[{"count":4,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/posts\/2487\/revisions"}],"predecessor-version":[{"id":2491,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=\/wp\/v2\/posts\/2487\/revisions\/2491"}],"wp:attachment":[{"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2487"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/uraneko.tcorps.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}