Skip to main content

Configuring NAT in Cisco Packet Tracer

NAT:-

Network Address Translation (NAT) is 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 destination. It then makes the corresponding entries of IP address and port number in the NAT table. NAT generally operates on router or firewall.

Static NAT Practice Topology

PROCEDURE (for Static):-
1) Take two routers and 4 PC's.
2) Connect 2 PC's each with switches and connect to with router. Then connect the routers.
3) Assign the IP, subnet mask and gateway.

Router 1 (Fa 0/0)............. 10.0.0.1          255.0.0.0               ---------
Router 1 (Se 2/0)............. 10.0.0.1          255.0.0.0               ---------
Router 2 (Fa 0/0)............. 192.168.1.1    255.255.255.0       ---------
Router 2 (Se 2/0)............. 100.0.0.20      255.0.0.0               ---------
PC 1                   .............. 10.0.0.10        255.0.0.0              10.0.0.1
PC 2                   .............. 10.0.0.20        255.0.0.0              10.0.0.1
PC 3                   .............. 192.168.1.10  255.255.255.0      192.168.1.1
PC 4                   .............. 192.168.1.20  255.255.255.0       192.168.1.1

Then write the command in each router after 'config' command in each of the router.
Router(config)# if not inside router static[inside local IP address] [inside global address]


  • Then define NAT inside from which the PC's are connected.
  • Here, fast Ethernet 0/0.
  • Router (Config-if)# if not inside.
  • Then write the command router (config-if)# IP not outside from where the connection will go to outside world.
  • Now configure static routing between Router 1 and Router 2, here we need RIP.
  • Now, ping from the PC through their inside global IP address.

Comments

Popular posts from this blog

Generate Traffic in Simulation Mode

Objectives Part 1: Generate Network Traffic in Simulation Mode Part 2: Examine the Functionality of the TCP and UDP Protocols Background This simulation activity is intended to provide a foundation for understanding the TCP and UDP in detail. Simulation mode provides the ability to view the functionality of the different protocols. As data moves through the network, it is broken down into smaller pieces and identified in some fashion so that the pieces can be put back together. Each of these pieces is assigned a specific name (protocol data unit [PDU]) and associated with a specific layer. Packet Tracer Simulation mode enables the user to view each of the protocols and the associated PDU. The steps outlined below lead the user through the process of requesting services using various applications available on a client PC.  This activity provides an opportunity to explore the functionality of the TCP and UDP protocols, multiplexing and the function of port numbers in ...

Configuring Open Shortest Path First (OSPF) Protocol

Open Shortest Path First (OSPF) Protocol OSPF is a  Link State protocol   that’s considered may be the most famous protocol among the Interior Gateway Protocol (IGP) family, developed in the mid 1980’s by the OSPF working group of the IETF. When configured, OSPF will listen to neighbors and gather all link state data available to build a topology map of all available paths in its network and then save the information in its topology  database, also known as its  Link-State Database  ( LSDB ). Using the information from its topology database. From the information gathered, it will calculate the best shortest path to each reachable subnet/network using an algorithm called  Shortest Path First  ( SFP ) that was developed by the computer scientist  Edsger W. Dijkstra  in 1956. OSPF will then construct  three tables  to store the following information: Neighbor Table:  Contains all discovered OSPF neighbors  with whom r...