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 configure offline Domain Join (djoin command)

How to configure offline Domain Join (djoin command) In this post, we’ll learn the  steps to configure offline domain join  using djoin command in Windows Server 2012 R2. It can be used to add a Server or workstation in a domain even if we don’t have network connectivity between them. Why do we need Offline Domain Join (djoin command)? Offline Domain Join is required in a scenario in which either organization is facing an issue with network between the Domain Controller and the remote site or bulk domain Join is required. How to use djoin command? To configure offline domain join we need to run a djoin  command on the Domain Controllers and it would create a text file. This text file has all the information about the new member server or workstation that we wanted to add in the Domain. This command will also create a Computer object in Active Directory with the name that we’ll pass in the command prompt. Once the text file is created successfully, we ne...

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