NAT (Network Address Translation)

nat-types-www.ipcisco.com

The increase of the Internet users has consumed IPv4 addresses rapidly. And to continue with these addresses various techniques have used by organizations. One of teh techniques that is used to use IPv4 addresses effectively is NAT (Network Address Translation). And there are different NAT Types. In this lesson, we will talk about each of them briefly. You can also check these types of NAT in special lesson related to them.

As you know there are Public and Private IP Addresses. The Public IP Addresses are used to reach to the Internet and they can be routed on Internet. But the Private IP Addresses are used within an organization only, because they can not be routed on Internet.

With NAT (Network Address Translation), we can use a Private IP Address millions of times all over the world inside our networks and still we can access to the Internet. Here, NAT provides the translation from Private IP Address to the Public IP Address. We are connecting Internet with our Private IP Address, but in real at the backplane, our router is connecting Internet via Public IP Address.

With NAT, not only Private to Public IP Address translation is used. Beside, Public to Puclic or Private to Private translations are also done via NAT. But the first one is most common.

NAT is also used for Network Security. With NAT you can hide your network from the outside of the world. Because by using various types of NAT, the remote node that you connect over Internet, only knows your Public IP Address. It do not have any idea about your local Private IP Address.


If you would like to test yourself, you can check CCNA Quizes Page.


NAT Types

NAT (Network Address Translation) can be used in different ways in any network. So, there are some common NAT Types. These types of NAT are given below:

  • Static NAT
  • Dynamic NAT
  • PAT (NAT Overload)

So, let’s explain these NAT types one by one.


Static NAT

Static NAT is the type of NAT that is used for One-to-One Translation of Ports or IP Addresses. In other words, for example in this NAT type, one Private IP Address is mapped to one Public IP Address.

 

In Static NAT, if you do your firewall setting well, then a Public IP can access to your Internal user. Because, here, IP translation is being done One-to-One.

 

Below, there is an example of Static NAT. In this Static NAT Example, each Private IP Address is translated to a specific Public IP Address. For example, 192.168.0.1 is translated to 200.200.200.1.

nat-types-static-nat-ipcisco


Dynamic NAT

Dynamic NAT is the NAT type that is used with a Public IP Address Pool and works with more than one Public IP Address. Here, multiple Private IP Addresses are mapped to a Pool of Public IP Addresses.And these IP Addresses are given to the Internal users randomly. So, it is difficult to reach any Internal user from outside.

Dynamic NAT is used when the number of internal Internet users are known.

Below, there is an example of Dynamic NAT. In this Dynamic NAT Example, each Private IP Address is translated to a specific Public IP Address in Public IP Pool. The translation is random. For example, 192.168.0.3 is translated to 200.200.200.7.

nat-types-dynamic-nat-www.ipcisco


PAT (NAT Overload)

PAT (Port Address Translation) is one of the NAT types that is also known as NAT Overload. Here, many Private IP Addresses are translated to one Public IP Address. The traffic distinguisher in PAT are Port Numbers,  TCP/UDP ports are used in PAT (NAT Overload).

Each IP Address’s traffic is determined by these ports. If you have many Intrenet user in a location, this type of NAT is very useful for you.

Below, there is an example of PAt (NAT Overload). In this PAT Example, Private IP Addresses are translated to a specific Public IP Address with the help of Port Numbers. For example, 192.168.0.4:21 is translated to 200.200.200.1:21.

nat-types-pat-ipcisco


NAT Key Terms

By the way, there are some terms that we must explain in this lesson about NAT (NAT Address Translation). These NAT terms are given below:

 

  • Inside Local: Your PC’s private address
  • Inside Global:Public address assigned to your PC
  • Outside Local:Outside host’s public address
  • Outside Global:Same address as the outside local, necessary to translate an outside address to a private address.

 

Let’s explain these NAT terms with an example.

 

nat-terms-ipcisco
NAT Terms
At the above example, there are two hosts, two routers and a server. Here, we will explain NAT terms from host A’s perspective. Host A will reach Server C and Host B over internet. And on Router A, NAT is enabled.

 

Host A has a private ip address, 10.1.1.10 and this is our Inside Local Address. With this address Host A can not rach to Internet. So, it uses Ruter A’s public ip address, 55.1.1.1 and this is our Inside Global Address.

 

There is a Router B and Server C on the above screen. The interface ip addresses of these devices are Outside Global Addresses. These addresses are 88.1.1.1 and 99.1.1.1. Host B has a private ip address that is used in its local network. But Host A sees its global ip address as Outside Local Address. So, our ouside local address is also 99.1.1.1.

 

As a summary our nat terms will be like below:

  • Inside Local Address– 10.1.1.10
  • Inside Global Address– 55.1.1.1
  • Outside Global Address– 88.1.1.1, 99.1.1.1
  • Outside Local Address– 99.1.1.1

 

Lesson tags: NAT
Back to: CCNP Enterprise 350-401 ENCOR v1.1 > NAT

Leave a Reply

Your email address will not be published. Required fields are marked *

CCNP Enterprise 350-401 ENCOR v1.1

Collapse
Expand
Latest Blog Posts