Network Address Translation NAT Configuration on Packet Tracer
NAT ( Network Address Translation ) is used for security by reusing IP-addresses. The router on which Network Address Translation is configure translates traffic which is accessing internet or coming back to local network. A NAT is the virtualization IP-addresses. This is Simple lab for configuring NAT ( Network Address Translation ) on packet tracer. Our network diagram consist of two parts, one is the LAN which is define as inside network and other is the internet or public network which will be define as outside for network address translation (NAT). For configuring this lab pleas follow these steps:
Task 1: Configure IP addresses and setting a static default route.
Access the CLI and specify the following IP address configuration on both routers
Router1(config-if)#ip address 22.214.171.124 255.255.255.0
Router1(config)#ip route 192.168.44.0 255.255.255.0 126.96.36.199
Router0(config-if)#ip address 188.8.131.52 255.255.255.0
Router0(config-if)#ip address 192.168.44.1 255.255.255.0
Router0(config)#ip route 184.108.40.206 255.255.255.0 220.127.116.11
Task 2: Configure NAT on Router0
Step 1: Access the CLI on the Router0
Step 2: Configure a standard access list using an access list id of 1 and permit any device on subnet 192.168.44.0 /24
Router0(config)#access-list 1 permit 192.168.44.0 0.0.0.255
Here access list is used to identify which source IPs are going to be translated using NAT, and this example allows any device from the 192.168.44.0 network.
Step 3: Create a dynamic NAT IP-address pool, this will hold a list of inside global addresses.
|Name of Pool:||NAT-POOL|
|Starting IP address||192.168.44.1|
|Ending IP address||192.168.44.14|
Complete this configuration with following commands:
Router0(config)#ip nat pool NAT-POOL 18.104.22.168 22.214.171.124 netmask 255.255.255.240
Router0(config)#ip nat inside source list 1 pool NAT-POOL
For network address translations, we are requires to identify at least two interfaces to be our inside and outside.
Interface fa0/0 will be our inside interface
Interface fa1/0 our outside interface
You can use the following commands for configuring inside and outside interfaces.
R0(config-if)#ip nat inside
R0(config-if)#ip nat outside
Step6: Testing NAT translation: When we ping from PC1 to PC0 to R1 our original IP address will be translated from a 192.168.44.x to 177.77.77.x.
You can verifiy it after the successful ping from PC1 to PC0 and then use the command “show IP nat translation”.