Introduction to NAT and PAT

Without network address translation (NAT) or port address translation (PAT), you probably wouldn’t be able to access the internet from your computer, or at least you’ll be the only one in the house having internet access…in this lesson, I want to give you an explanation of why and how we use NAT/PAT for Internet access.




Let’s start with a topology:

nat example network

On the left side, we have a computer on our LAN with the IP address 192.168.1.1 connected to a router. From our ISP, we got the IP address 4.4.4.4, and there’s a server on the Internet using IP address 1.2.3.4. If our computer sends something to the server what would be the source and destination IP address of the IP packet, it will send?

without nat incoming packet

The source IP address will be our computer, and the destination IP address will be the server as you can see in the IP packet in the picture above.

without nat return traffic

Once our server responds, it will create an IP packet specifying the computer’s IP address as the destination, and the source IP address will be its own IP address.

Is there anything wrong with this example? No, it’s perfectly fine except for one detail…the IP address of the computer and the IP address on the router are private IP addresses. Private IP addresses are meant for our LANs and public IP addresses are for the Internet.

This time we will configure NAT (Network Address Translation) and see what the difference is…

We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now!

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You’ve Ever Spent on Your Cisco Career!
  • Full Access to our 799 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)
560 Sign Ups in the last 30 days
satisfaction-guaranteed

  • 100% Satisfaction Guaranteed!
  • You may cancel your monthly membership at any time.
  • No Questions Asked!

Tags: , ,


Forum Replies

  1. Hello Rene,
    Great video. I have a suggestion please. Can you start doing like a CCIE video series, many people understand better with videos and the way you explain topics is very great and straight forward, i hope you can implement this idea which will be so great. thanks

    Ammar,

  2. Hi Ammar,

    Glad to hear you like it. About the videos, I will. My goal is to have a video for each of the tutorials I have.

    Rene

  3. Hello Rene,
    That would be perfect. People like videos and prefer them more that going through books haha , i am looking forward for the videos. Thanks

  4. If we already have dynamic NAT then why there is a need for PAT?

  5. When you use dynamic NAT, you require a pool with public IP addresses. Each host that gets translated requires a public IP address from the pool.

    PAT allows us to translate multiple private IP addresses to a single public IP address.

36 more replies! Ask a question or join the discussion by visiting our Community Forum