My Blog List

Thursday, April 5, 2012

network address translation (Dynamic NAT)

Dynamic NAT/PAT:  to map one to many or many to many IP address (public ip to privet ip).

1. First of all you must create access list
(Create ACL for which network or IP address you want to access internet)

Router(config)#access-list 10 permit
Router(config)#access-list 10 permit host
Router(config)#access-list 10 permit host
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip access-group 10 in

2.Create NAT pool
 Router(config)#ip nat pool abc netmask
Router(config)#ip nat inside source list 10 pool abc

3. Then ping PC4 to the server by the commnd prompt  as - ping

Network address translation (NAT)

Static NAT: to map one to one IP address (public ip to privet ip)

1.First of all open the Nat file
2.assign the ip address for PC1,PC2,PC3,PC4

 3.assign the ip of serial port in office router as cuz its the public ip address of  given by ISP.
4. Configure a default route in the office router for Internet connectivity.

 as follows - -  - Router(config)#ip route serial 2/0

5.assign the inbound and out bound of office router !!!
Fa0/0 of office router is inbound of the private network.
Se2/0 of office router is the outbound of the network.

go to interface of fa0/0

Router(config)#interface fastEthernet 0/0
Router(config-if)#ip nat inside

go to se 2/0

Router(config)#interface serial 2/0
Router(config-if)#ip nat outside

6. Now Map the private ip address to public ip address !!!

Router(config)#ip nat inside source static
 // this command give the static ip for pc1 .
map the private ip for public ip !!
 7. ping the server by PC1 command prompt by - ping

thats all about the static NAT :) :) :)