Skip to main content

NAT/PAT



1.   NAT stands for Network Address translation.
2.   PAT stands for Port Address translation.
3.   NAT/PAT came to use because private IP addresses are not allowed on internet. So we have to somehow convert private IP addresses into public IP addresses and vice versa.
4.   NAT & PAT is used to convert private IP address into public IP address and vice-versa.
5.   We configure NAT/PAT on our edge router from where traffic will enter and exit our network.
6.   Private IP range:
·     Class A (10.0.0.0 – 10.255.255.255)
·     Class B (172.16.0.0. – 172.31.255.255)
·     Class C (192.168.0.0. – 192.168.255.255)
7.   NAT is of two types:
·     Static NAT (one to one mapping)
·     Dynamic NAT (many to many mapping)
8.   In Static NAT, we have to convert each private IP address of our network into public IP address manually.
9.   In Dynamic NAT, we will create an Access list and will place private IP address in that list. Then we will have a NAT pool in which we will place our public IP address range. One private IP from access list will be mapped with a public IP address from NAT pool. This public address pool is temporary in nature.
10.                 Static NAT configuration:
·     On edge router, give following commands:
Router(config)#interface fastEthernet 0/0(inside interface)
Router(config)#ip nat inside
Router(config)#interface fastEthernet 0/1(outside interface)
Router(config)#ip nat outside
Router(config)#ip nat inside source static (inside local IP) (inside global IP)
11.                 Dynamic NAT configuration:
·     On edge router, give following commands:
Router(config)#interface fastEthernet 0/0(inside interface)
Router(config)#ip nat inside
Router(config)#interface fastEthernet 0/1(outside interface)
Router(config)#ip nat outside
·     Create an access list and permit your private network.
Router(config)#access-list (number) permit (private IP range) (wildcard bit)
·     Create a NAT pool.
Router(config)#ip nat pool (name) (starting public IP) (end public IP) netmask (value)
·     Then give following commands:
Router(config)#ip nat pool inside source list (access-list no) pool (NAT pool name)
12.                 PAT (many to one mapping)configuration:
·     On edge router, give following commands:
Router(config)#interface fastEthernet 0/0(inside interface)
Router(config)#ip nat inside
Router(config)#interface fastEthernet 0/1(outside interface)
Router(config)#ip nat outside
·     Now do following configuration:
Router(config)#ip nat pool inside source list (access-list no) interface (interface on which your public IP is configured) overload




Comments

Popular posts from this blog

How To Upgrade Windows Server 2008 R2 To Windows Server 2012

In this post we will see how to upgrade Windows Server 2008 R2 to Windows Server 2012. It’s been an year that Microsoft has released Windows Server 2012, when Windows Sever 2012 was released the IT professionals were eager to know what’s new in Windows Server 2012 and i was one of them. Microsoft releases all of its operating systems in multiple editions, which provides consumers with varying price points and feature sets. While choosing the edition make sure you choose the edition that suits your requirements. Before we go ahead and deploy Server 2012, let’s take a look at editions of Windows Server 2012. 1)  Windows Server 2012 Datacenter Edition  – The Datacenter edition is designed for large and powerful servers with up to 64 processors and fault-tolerance features such as hot add processor support. This edition is available only through the Microsoft volume licensing program and from original equipment manufacturers bundled with a server. 2)  Windows Server 20...

Installing the Fuzzy Lookup Excel Add-In

    1.       Navigate to the Microsoft website and download the Fuzzy Lookup installation ZIP file.  Save the ZIP file in a new directory on your desktop called ‘FuzzyLookup’ and then extract the files to that same directory.   2.       Make sure all applications are closed on your computer. 3.       Run the ‘setup.exe’ file. Press ‘Run’.   4.       Next the setup process will ask you if you accept two separate License Agreements.  Press ‘Accept’ to both. 5.       Next you will see the application start downloading and installing files.  This will take several minutes. 6.       Next the Setup Wizard will appear.  Press ‘Next.’ 7.       Another License Agreement screen will appear.  Choose ‘I Agree’ and then ‘Next’....

How to Install Hyper-V Core: Step by step guide

Hyper-V is a very capable hypervisor for use today yet there are three ways to use it. I blogged about these three ways, but the key takeaway is that the three options are: Having the Hyper-V role on a Windows Server 2012 R2 system (full installation) Having the Hyper-V role on a Windows Server 2012 R2 system (core installation) Using the Free Hyper-V Server 2012 R2 In this post, let’s focus on the free Hyper-V Server 2012 R2 and its installation. Before you get too far along, be sure to check the Hyper-V system requirements to use the free hypervisor. The first step is to download Hyper-V Server 2012 R2, which you can do from the TechNet Evaluation Center. Once you have download the .ISO of Hyper-V Server 2012, let’s go through the installation process. Once the .ISO is burned to a DVD, you can boot the computer or server up on the new operating system. If you see this screen where you can select your language, keyboard and numerical formats you are start...