Alpha Centauri Studies
CoursesFor Institutions

Loading...

Alpha Centauri Studies

CSEC past papers, worked

Past papers worked question by question, and courses built on the CSEC syllabus, for students across the Caribbean.

Serving Caribbean students since 2025

Explore

CoursesAboutContact

Support

PrivacyTermsHelp

Subscribe to Our Newsletter

New papers and courses, when they land.

Connect With Us
© 2026 Alpha Centauri Studies. All rights reserved.
4.1 Configure and verify inside source NAT

TutorialLab 1279 min

Lab 127: Configuring Static and Dynamic NAT

Lab 127: Configuring Static and Dynamic NAT

Network Address Translation (NAT) technique translates private IP addresses into public IP addresses. NAT enhances the security of the network by hiding the actual IP information from the external users. The external users see the translated IP addresses rather than actual IP addresses. This is also called masking. There are two types of NAT: Static NAT and Dynamic NAT.

The Static NAT is useful for a small number of users where an administrator can manually create a MAP table of Public and Private IP addresses. However, for a large network where the number of users are in hundreds and thousands, it is not possible or at least a difficult task to create a MAP table manually. Here, you can use Dynamic NAT that allows you to define a range of public IP addresses that will be translated. When the internal users (inside network) try to access external resources (outside network), the NAT router replaces its private IP address with the available Public IP address from the configured range.

We will use the following topology to demonstrate how to configure NAT. Create the following topology in Cisco Packet Tracer.

The NAT lab network, cut in two by a diagonal line. Router1, a 2811 tagged with a callout reading "NAT Router", carries 192.168.0.1/24 on the link to Router2 and fa0/0 10.0.0.1/8 down to a switch named Switch0. Switch0 serves two PC-PT workstations, PC0 at 10.0.0.2 and PC1 at 10.0.0.3; that group is boxed as the "Inside network". Router2, also a 2811, carries 192.168.0.2/24 on its end of the router to router link and fa0/0 20.0.0.1/8 down to a Server-PT named Server0 at 20.0.0.2; that group is boxed as the "Outside network". The router to router link carries no interface names, only the two addresses. The switch's model line is crossed by a cable in the source and its third digit cannot be read, so the model is not given here.

After creating the preceding topology, configure the appropriate IP addresses on the devices mentioned in the topology. In addition, you also need to perform a routing algorithm. You can use any of the routing algorithms depending on your choice. So before proceed to next prepare your topology.

Configure Static NAT

To configure NAT, you need to perform the following steps:

  1. On Router1, execute the following command to specify the inside interface that is Fa0/ 0.
Router1(config)# int fa0/ 0
Router1(config-if)# ip nat inside
Router1(config-if)# exit
  1. Next, execute the following command to specify the outside interface that is Fa0/ 1.
Router1(config)# int fa0/ 1
Router1(config-if)# ip nat outside
Router1(config-if)# exit
  1. Once you have defined the inside and outside interfaces, now you need to specify the private IP addresses that need to be translated into the public IP addresses. In this demonstration, we will translate 10.0.0.2 private IP address into the 200.200.200.1 public IP address. To do so, execute the following command.
Router1(config)# ip nat inside source static 10.0.0.2 200.200.200.1
Router1(config)# exit
  1. The following figure shows how to configure static NAT on a router.

Router1's console setting up static NAT. After enable and config t, fa0/0 is marked "ip nat inside" and fa0/1 is marked "ip nat outside". The translation itself is entered as "ip nat inside source static 10.0.0.2 200.200.200.1", mapping the inside host 10.0.0.2 to the public address 200.200.200.1. The prompt returns to Router(config)#.

  1. Once you have configured static NAT, now it’s time to verify your configuration. To verify the static NAT configuration, start a communication process between inside and outside networks. For this, open the Command Prompt window on PC0 and type ping 20.0.0.2. Leave the Command Prompt active and move on to Router1.

  2. On Router1, type the following command to view the NAT translation table.

Router1# show ip nat translations

A Packet Tracer IOS command line window titled Router1, showing the output of show ip nat translations. The table has the columns Pro, Inside global, Inside local, Outside local and Outside global. Four icmp rows map inside global 200.200.200.1 ports 1 to 4 to inside local 10.0.0.2 ports 1 to 4, with outside local and outside global both 20.0.0.2 on the matching port. A fifth row with protocol --- shows the bare mapping 200.200.200.1 to 10.0.0.2 with both outside columns dashed. Two callout balloons in the source point at that last row: the inside global column is labelled Tanslated Public IP Address (spelled that way in the source) and the inside local column is labelled Actual Private IP Address. Five bare Router# prompts follow.

  1. In the preceding figure, you can see that 10.0.0.2 private IP address has been translated into 200.200.200.1 public IP address. That’s what does NAT actually.

Removing NAT Configuration

If you have mapped a wrong IP address or want to disable the NAT translation for any reason, execute the following command.

Router1(config)# no ip nat inside source static 10.0.0.2 200.200.200.1

Now, your topology is ready to perform the next exercise “configure dynamic NAT”. If you have doubts on topology, better to reload the topology and re-configure the IP addresses and routing method.

Configure Dynamic NAT

As discussed earlier, dynamic NAT is used for a large network or when a large number of users want to access external resources. Configuring dynamic NAT is slightly different from the static NAT. In dynamic NAT, you need to apply an ACL to specify which users or networks are allowed to access external resources and need to be translated. After that you need to create a Range of IP addresses (pool) from which the NAT router will allocate the IP addresses to internal users on the first come first serve basis.

To configure dynamic NAT, you need to perform the following steps:

  1. On Router1, execute the following commands to specify the inside and outside interfaces.
Router1(config)# int fa0/ 0
Router1(config-if)# ip nat inside
Router1(config-if)# exit
Router1(config)# int fa0/ 1
Router1(config-if)# ip nat outside
Router1(config-if)# exit
  1. Now, execute the following command to create a pool and specify the ranges that the NAT router will use to allocate IP addresses.
Router1(config)# ip nat pool mypool 150.150.1.1 150.150.1.10 netmask 255.255.0.0
  1. Next, execute the following command to apply the created pool.
Router1(config)# ip nat inside source list 10 pool mypool
  1. Next, execute the following commands to apply an ACL to allow the networks.
Router1(config)# access-list 10 permit 10.0.0.0 0.255.255.255
  1. Next, execute the following command to specify the interface and the ACL direction.
Router1(config)# int fa0/ 0
  1. Router1(config-if)# ip access-group 50 out
Router1(config-if)# exit
Router1( config)# exit
  1. The following figure shows the Dynamic NAT configuration on Router1.

A Packet Tracer IOS command line window titled Router1, showing the dynamic NAT configuration. Fa0/0 is marked ip nat inside and Fa0/1 ip nat outside. A pool named mypool runs from 150.150.1.1 to 150.150.1.10 with netmask 255.255.0.0, and ip nat inside source list 10 pool mypool ties access-list 10, which permits 10.0.0.0 0.255.255.255, to that pool. Access group 10 is then applied outbound on Fa0/0. After exiting, show access-list prints Standard IP access list 10 with the single entry 10 permit 10.0.0.0 0.255.255.255. Red boxes in the source enclose the interface marking lines, the pool and access-list lines, and the show access-list output.

Verify Dynamic NAT configuration

  1. To verify dynamic NAT configuration, open command prompts on PC0 and PC1 and type the following command on both PCs:
Ping 192.168.1.2
  1. Now, execute the following command to show the translated IP addresses.
Router1# show ip nat translations
  1. Close the Cisco Packet Tracer.

Source: itexamanswers.net