Networking - Lab - Report - 5 Sakib
Networking - Lab - Report - 5 Sakib
0.2 Introduction:
Network Address Translation (NAT) is a process in which one or more
local IP ad- dress is translated into one or more Global IP address and
vice versa in order to pro- vide 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.
Types of NAT
Static NAT: In this type we manually map each inside local IP address
with inside global IP address. Since this type uses one to one mapping we
need exactly same num- ber of IP address on both sides.
Dynamic NAT: In this type we create a pool of inside global IP addresses
and let the NAT device to map inside local IP address with the available
outside global IP address from the pool automatically.
PAT: In this type a single inside global IP address is mapped with multiple
inside local IP addresses using the source port address. This is also known
as PAT (Port Address Translation) or NAT over load.
0.3 Methodology:
• Inside local address – An IP address that is assigned to a host on the
Inside (lo- cal) network. The address is probably not an IP address
assigned by the service provider i.e., these are private IP addresses.
This is the inside host seen from the inside network.
• Outside global address – This is the outside host as seen from the
outside net- work. It is the IP address of the outside destination
host before translation.
0.4 Problem Analysis:
• Generally, the border router is configured for NAT i.e the router
which has one interface in the local (inside) network and one
interface in the global (outside) network.
2
• When a packet enters the local network, the global (public) IP
address is con- verted to a local (private) IP address.
0.5 Implementation:
Routing:
Figure 2
3
Figure 3
0.6 Output:
Figure 4: Output
0.7 Conclusion:
NAT inside global configuration translates private IP addresses to globally
unique pub- lic IP addresses, enabling devices within a private network to
access external networks like the internet. This process ensures internal
network security and efficient use of public IP addresses.
4