{"id":151,"date":"2009-07-08T11:44:10","date_gmt":"2009-07-08T10:44:10","guid":{"rendered":"http:\/\/mccltd.net\/blog\/?p=151"},"modified":"2010-05-15T09:50:02","modified_gmt":"2010-05-15T08:50:02","slug":"nat-and-pat-configuration-examples","status":"publish","type":"post","link":"http:\/\/darenmatthews.com\/blog\/?p=151","title":{"rendered":"NAT and PAT configuration examples"},"content":{"rendered":"<p>Another aide-memoir<!--more--><\/p>\n<p><strong>NAT and PAT<\/strong><\/p>\n<p><strong>NAT Static<\/strong><strong> <\/strong><strong><br \/>\n<\/strong>rtA(config)#ip nat inside source static [Inside local IP address] [Inside global IP address]<\/p>\n<p>rtA(config)#in e0\/0<br \/>\nrtA(config-if)#ip address [ip address] [subnet mask]<br \/>\nrtA(config-if)#ip nat inside<\/p>\n<p>rtA(config)#in s0\/0<br \/>\nrtA(config-if)#ip address [ip address] [subnet mask]<br \/>\nrtA(config-if)#ip nat outside<\/p>\n<p><strong>NAT Dynamic<\/strong><strong> <\/strong><strong><br \/>\n<\/strong>rtA(config)#ip nat pool [pool name] [address range] netmask [network address mask]<br \/>\nrtA(config)#ip nat inside source list [list #] pool [name of nat-pool]<\/p>\n<p>rtA(config)#in e0\/0<br \/>\nrtA(config-if)#ip address [ip address] [subnet mask]<br \/>\nrtA(config-if)#ip nat inside<\/p>\n<p>rtA(config)#in s0\/0<br \/>\nrtA(config-if)#ip address [ip address] [subnet mask]<br \/>\nrtA(config-if)#ip nat outside<\/p>\n<p>rtA(config)#access-list [same list # used above] permit [ip address] [wildcard mask]<\/p>\n<p><strong>PAT<\/strong><strong> <\/strong><strong><br \/>\n<\/strong>rtA(config)#in e0\/0<br \/>\nrtA(config-if)#ip address [ip address] [subnet mask]<br \/>\nrtA(config-if)#ip nat inside<\/p>\n<p>rtA(config)#in s0\/0<br \/>\nrtA(config-if)#ip address [ip address] [subnet mask]<br \/>\nrtA(config-if)#ip nat outside<\/p>\n<p>rtA(config)#ip nat inside source list [list #] interface s0\/0 overload<\/p>\n<p>rtA(config)#access-list [list #] permit [network address] [subnet mask]<br \/>\nrtA(config)#access-list [list #] permit [network address] [subnet mask]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another aide-memoir<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[44],"_links":{"self":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/151"}],"collection":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=151"}],"version-history":[{"count":3,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/151\/revisions"}],"predecessor-version":[{"id":926,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/151\/revisions\/926"}],"wp:attachment":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}