{"id":376,"date":"2017-01-23T11:35:15","date_gmt":"2017-01-23T11:35:15","guid":{"rendered":"http:\/\/wiki.thomasandsofia.com\/?p=376"},"modified":"2017-01-26T02:31:16","modified_gmt":"2017-01-26T02:31:16","slug":"ccent-6-s01-e27-internet-access-with-nat-and-pat","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=376","title":{"rendered":"CCENT 6 S01 E27 \u2013 Internet Access with NAT and PAT"},"content":{"rendered":"<p>Understanding the need for NAT<br \/>\nThe Forms of NAT<br \/>\nConfiguring NAT using the SDM<\/p>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/nat1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-377\" src=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/nat1.png\" alt=\"\" width=\"1067\" height=\"590\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/nat1.png 1067w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/nat1-300x166.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/nat1-768x425.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/nat1-1024x566.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2017\/01\/nat1-150x83.png 150w\" sizes=\"auto, (max-width: 1067px) 100vw, 1067px\" \/><\/a><\/p>\n<h2>Understanding the need for NAT<\/h2>\n<ul>\n<li>The Internet is just a massive network of networks<\/li>\n<li>So many devices connected, we ran out of IPv4 IP addresses<\/li>\n<li>NAT (Network Address Translation) allows many devices to share an Internet IP Address<\/li>\n<\/ul>\n<h3>How NAT Works<\/h3>\n<ul>\n<li>Several devices on Private Network that want to access the Internet, but you only have 1 public IP.\n<ul>\n<li>.1.50 wants to access a web page.\u00a0 Source IP:Port = 192.168.1.50:6751\n<ul>\n<li>NAT converts to Source IP:Port = 200.1.1.1:6751 and stores in the NAT Table<\/li>\n<\/ul>\n<\/li>\n<li>.1.51 wants to access a web page.\u00a0 Source IP:Port = 192.168.1.51:1536\n<ul>\n<li>NAT converts to Source IP:Port = 200.1.1.1:1536<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>65,535 Ports available.\n<ul>\n<li>*IF* two PCs request the same Source Port, the Router will assign an available Port two one of the requests and store the change in the NAT Table.\n<ul>\n<li>.1.50:6751=200.1.1.1:6751, .1.51:6751=200.1.1.1:4567<\/li>\n<li>This type of address translation is commonly called PAT, Port Address Translation, or &#8220;NAT Overload&#8221;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Static NAT (Network Overload) will assign a 1:1 translation if specific traffic needs to go to a specific IP\n<ul>\n<li>192.168.1.20 -&gt; 200.1.1.2 (Static IP provided by ISP)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Using the SDM<\/h3>\n<p>Basic NAT: Same as PAT, or NAT Overload<\/p>\n<p>Advanced NAT: Allows static mappings to allow traffic back into your network<\/p>\n<p>Starting with Basic NAT (Can add Advanced later)<\/p>\n<ul>\n<li>Select Interface that connects to the Internet<\/li>\n<li>Check all Interfaces you want to share with the Internet connection<\/li>\n<li>Done!<\/li>\n<\/ul>\n<pre>r1(config)#access-list 1 remark ACL Category 2\r\nr1(config)#access-list 1 permit 192.168.11.0 0.0.0.255\r\nr1(config)#interface fastethernet0\/0\r\nr1(config-if)#ip nat inside\r\nr1(config-if)#exit\r\nr1(config)#interface fastethernet0\/1\r\nr1(config-if)#ip nat inside\r\nr1(config-if)#exit\r\nr1(config)#ip nat inside source list 1 interface 0\/1 overload\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>Show Commands<\/h3>\n<pre>show ip nat translations<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Understanding the need for NAT The Forms of NAT Configuring NAT using the SDM Understanding the need for NAT The Internet is just a massive network of networks So many devices connected, we ran out of IPv4 IP addresses NAT (Network Address Translation) allows many devices to share an Internet IP Address How NAT Works ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=376\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,7,12],"tags":[],"class_list":["post-376","post","type-post","status-publish","format-standard","hentry","category-ccent","category-ios","category-routers"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=376"}],"version-history":[{"count":8,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/376\/revisions"}],"predecessor-version":[{"id":387,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/376\/revisions\/387"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}