Lab - NAT Configuration
Lab - NAT Configuration
TECHNOLOGY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEEING
Computer Networks
COMP-352L
LAB TASK 8
Prepared by:
Laiba Sohail
Network Address Translation (NAT) Configuration
Overview:
What is Network Address Translation (NAT)?
A process in which one or more local IP address is translated into one or more Global IP address
and vice versa in order to provide Internet access to the local hosts.
Also, it does the translation of port numbers i.e. masks the port number of the host with another port
number, in the packet that will be routed to the destination. It then makes the corresponding entries
of IP address and port number in the NAT table. NAT generally operates on a router or firewall.
Working of Network Address Translation (NAT):
Border router is typically configured for NAT
Converts local (private) IP address to global (public) IP address when packet leaves local
network
Converts global (public) IP address to local (private) IP address when packet enters local
network
Why mask port numbers?
Prevents confusion when multiple hosts request the same destination on the same port
Allows NAT to distinguish between different hosts' requests
Network Address Translation (NAT) Types:
1. Static NAT
2. Dynamic NAT
3. PAT (Port Address Translation):
Static NAT (Network Address Translation) - Static NAT (Network Address Translation) is
one to- one mapping of a private IP address to a public IP address. Static NAT (Network
Address Translation) is useful when a network device inside a private network needs to be
accessible from internet.
Dynamic NAT (Network Address Translation) - Dynamic NAT can be defined as mapping of a
private IP address to a public IP address from a group of public IP addresses called as NAT pool.
Dynamic NAT establishes a one-to-one mapping between a private IP address to a public IP
address. Here the public IP address is taken from the pool of IP addresses configured on the end
NAT router. The public to private mapping may vary based on the available public IP address in
NAT pool.
PAT (Port Address Translation) - Port Address Translation (PAT) is another type of dynamic
NAT which can map multiple private IP addresses to a single public IP address by using a
technology known as Port Address Translation.
Here when a client from inside network communicates to a host in the internet, the router changes
the source port (TCP or UDP) number with another port number. These port mappings are kept in a
table. When the router receives from internet, it will refer the table which keep the port mappings
and forward the data packet to the original sender.
TASK:
Perform NAT configuration and attach screenshots of each step.
Screenshot should be of full computer screens.