Configuring Static NAT in Cisco Packet Tracer

Configuring Static NAT in Cisco Packet Tracer

NAT:

There are several situations where we need address translation such as a network which don't have sufficient public IP addresses want to connect with the internet , two networks which have save IP addresses want to merge or due to security reason a network want to hide its internal IP structure from the external world. NAT is the process which translates IP addresses. NAT can be performed at firewall , server and router.

  • Our network is built with private IP addresses and we want to connect it with the internet .As we know to connect with internet we require public IP addresses. In this situation we can use NAT which will map private IP with public IP.
  • Two networks which are using same IP addresses scheme want two merge. In this situation NAT device is used to avoid overlapping issue.
  • We want to connect multiple  computers with internet through the single public IP addresses.In this situation NAT is used to map the multiple IP addresses through the port number



     Procedure-

  • Take two routers, switches and 4 PC'S.
  • Connect 2 PC'S each with the switches and connect ot with router. Then connect the routers.
  • Assign the IP , Subnet Mask, and Gateway
          Router1(Fa0/0)--------10.0.0.1                    255.0.0.0                            - 
          Router1(Se2/0)--------10.0.0.10                  255.0.0.0                            - 
          Router2(Fa0/0) -------192.168.1.1              255.255.255.0                    -  
          Router2(Se2/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 t' command in each of the routers
                     Router(config)#ip nat inside source static [inside local ip address] [inside global ip address] 
          Then define the nat inside from which the PCs are connected. Here Fast Ethernet 0/0
                    Router(config-if)#ip nat inside

         Then write the command Router(config -if)#ip nat outside    from where the connectin will go 
         outside world.

  • Now configure static
    routing between Router 1 and Router 2. Here we used RIP.
  • Now ping from the PC through their inside global IP address.


Comments

Popular posts from this blog

Configuring Open Shortest Path First Protocol:

Introduction to Cisco Packet Tracer

Configuration of Routing Information Protocol (RIP) in Cisco Packet Tracer