Sharing Ilmu

Sharing for useful things

How To Configuration Dynamic NAT (Network Address Translation) on Cisco Packet Tracer

In preceding tutorial I have discuss about Network Address Translation (NAT) on Cisco Packet Tracer for static NAT. And here I’ll discuss about how to configuration dynamic nat on cisco packet tracer. Dynamic nat is Many to many types of NAT.  The private ip in large quantities will be translate become large public ip too with provide ip public pool.  So that we don’t need to translate one by one ip. The following is the topology :

Configure IP Address on R1 :

R1(config)#int g0/0/0
R1(config-if)#ip add 10.10.10.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#int g0/0/1
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown

Configure IP Address on R2 :

R2(config)#int g0/0/0
R2(config-if)#ip add 10.10.10.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#int g0/0/1
R2(config-if)#ip add 192.168.2.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit

Configure IP Address on PC0 :

Configure IP Address on PC1 :

 

Configure IP Address on PC2 :

Configure IP Address on PC3 :

 

Test ping from pc0 to ip R2 :

The PC can’t be reach the router ip because network PC0 is behind the Router R1.

 

Configure Dynamic NAT :

Configure pool R1  10.10.10.10 – 10.10.10.15 :

R1(config)#int g0/0/0
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#int g0/0/1
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#ip nat pool R1-POOL 10.10.10.10 10.10.10.15 netmask 255.255.255.0
R1(config)#ip nat inside source list 1 pool R1-POOL
R1(config)#

Configure pool R2 10.10.10.16 – 10.10.10.20 :

R2(config)#int g0/0/0
R2(config-if)#ip nat outside
R2(config-if)#exit
R2(config)#int g0/0/1
R2(config-if)#ip nat inside
R2(config-if)#exit
R2(config)#access-list 1 permit 192.168.2.0 0.0.0.255
R2(config)#ip nat pool R2-POOL 10.10.10.16 10.10.10.20 netmask 255.255.255.0
R2(config)#ip nat inside source list 1 pool R2-POOL
R2(config)#

Test ping from PC0, PC1 to ip address of R2 (10.10.10.2) and PC2, PC3 to ip address of R1 (10.10.10.1) make sure ping connection is successfull. Then check IP nat translation on R1 and R2 :

 

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>