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

Install VMWare Horizon View 7 Connection Server

VMWare Horizon View 7 is used for Desktop Virtualization. It can be used to create Desktop Pools to offer Floating and Dedicated Desktops to end users. It delivers Virtual Desktops and Applications through a single console. New version of VMWare Horizon 7 is more stable because of Blast Extreme Protocol, Instant Clone, etc. Pre-requisites: Domain Controller VMWare ESXi 6 as Hypervisor Domain User with delegated permissions of Domain Administrator Download VMWare Horizon 7 View Connection Server.  VMWare Horizon 7 License: You’ll get the License when you register and download VMWare Horizon 7 Topic Sequence How to install VMWare Horizon View 7 Connection Server How to install VMWare Horizon 7 Composer Server How to add vCenter Server and Composer Server in Connection Server. Steps to add VMWare Horizon Agent How to create Virtual Desktop Pool Steps to install VMWare Horizon View 7 Connection Server Step 1: Download the executable of VMWare Horizon View 7 ...

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...

Install Docker Toolbox on Windows

What you get and how it works Docker Toolbox includes the following Docker tools: Docker CLI client for running Docker Engine to create images and containers Docker Machine so you can run Docker Engine commands from Windows terminals Docker Compose for running the  docker-compos  command Kitematic, the Docker GUI the Docker QuickStart shell preconfigured for a Docker command-line environment Oracle VM VirtualBox Because the Docker Engine daemon uses Linux-specific kernel features, you can’t run Docker Engine natively on Windows. Instead, you must use the Docker Machine command,  docker-machine , to create and attach to a small Linux VM on your machine. This VM hosts Docker Engine for you on your Windows system. Install Docker Toolbox In this section, you install the Docker Toolbox software and several “helper” applications. The installation adds the following software to your machine: Docker Client for Windows Docker Toolbox management tool and ISO...