Subscribe Subscribe | Subscribe Comments RSS
Subscribe in Bloglines

Add to netvibes
Add to Google Reader or Homepage

NAT, Network Address Translation in simple terms translates an IP address into another. Network Address Translation is of different types like

Static NAT (One to One)

Dynamic NAT (Many to Many)

Overloading (Many to One)

We will focus on Overloading form of NAT. This is called as Port Address Translation (PAT) or even Network Address Port Translation (NAPT). NAT Overloading translates many private IP addresses from a Local Area Network (LAN) onto a single registered legal Public IP address. Here, the source IP and the source port gets translated to the Public IP and a different source port.

Typical network configuration would be on an Internet Router which enables all the hosts in the LAN to connect to the Internet using one single Public IP address.

The following procedure will help you to configure NAT Overload or Port Address Translation (PAT) in Cisco IOS:

1. NAT inside interface

Enable an interface on the router with an IP Address and mark it as nat inside interface. This is the interface that connects to your internal private network

WANRouter(config)# int fastethernet0/1

WANRouter(config-if)# ip address

WANRouter(config-if)# ip nat inside

2. Enable NAT outside interface

WANRouter(config)# int serial0/0/0

WANRouter(config-if)# ip address

WANRouter(config-if)# ip nat outside

3. Configure NAT Pool

This will be a pool of legal Public IPs that is bought by the organisation. This could anything from one to many IP Address

WANRouter(config)# ip nat pool WANPOOL netmask

This creates pool which has just one IP address. The syntax is

ip nat pool <pool name> startip endip {netmask netmask | prefix prefix-length}

4. Access List to allow list of IP Addresses to NAT translate

WANRouter(config)# ip access-list 10 permit

For more networks or hosts to overload the NAT pool simply add them to the access list

WANRouter(config)# ip access-list 10 permit
WANRouter(config)# ip access-list 10 permit

Instruct Router to NAT the Access list to the NATPool

WANRouter(config)# ip nat inside source list 10 pool WANPOOL overload

If this is an internet configuration then ensure that a default route on the IP to the outside IP address or outside interface

WANRouter(config)# ip route serial0/0/0


WANRouter(config)# ip route

Thats it. Job done!!!

The NAT setup is now complete.We have setup the router to translate LAN private IPs into the Internet public IPs.

To check the NAT status and statistics

WANRouter# show ip nat statistics

To see the active translations

WANRouter# show ip nat translations

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

12 Comments so far »

  1. by Naga, on October 5 2009 @ 1:16 am


    Dear All,

    Kindly sent me the ccna Dumps,

    My mail id

  2. by Bary, on March 6 2010 @ 10:24 am


    Nice how-to, well written and easy to follow

    Worked first time


  3. by cdbiste, on March 14 2010 @ 5:33 pm


    thanks,it’s excellent,how to configure the autoconfiguration IPv6?

  4. by tdma, on July 12 2010 @ 1:54 pm


    I have a question. If you have more than 1 IP in the public outside IP pool, how do you know/assign which internal IP gets natted to which public IP?

  5. by Animesh Singh, on August 6 2010 @ 7:17 am


    please tell me ,static routing,default routing,dynamic routing(Routing protocols),vpn,nat &also there apropriate example

  6. by arman, on October 11 2010 @ 10:35 am


    very good explanation. thanks a lot

  7. by Rahul, on May 10 2011 @ 4:36 am


    Dear tdma,
    If you are having multiple public IPs, then you have to specify them in NAT POOL. That public IPs from pool will automatically get assigned to private IPs.

  8. by Rahul, on May 10 2011 @ 4:39 am


    Dear tdma,
    To know which internal IP gets natted to which public IP, you can use this command:

    Router# show ip nat translations

    It will show that which private IP got mapped/natted to which public IP.

  9. by Ash, on July 22 2011 @ 8:00 am


    Dear All,
    I have 8 public ip and whant to nat to my 4 local servers
    i have cisco 1841 router please can any one help in dng a static nat

  10. by khalil, on September 9 2011 @ 3:14 pm


    quick question….
    would it be possible to convert all of the private address to public by using the serial public ip address

    for example ip nat inside source list 10 interface s 0/0/0 overload

    since the s 0/0/0 interface already has the public address which is

    what if the addresses in the pool has changed?

  11. by juan, on November 6 2011 @ 12:05 pm


    I had a Cisco 3825 acting as a Gateway

    I had Static IP : Example: on 0/0 using SFP gigabit port 10gb per port

    the 0/1 is set up as defult conecting to
    swtich cisco

    then I had 8 server conected in to that Cisco switch

    1st-port: Server has Local ip as
    2st-port: Server has Local ip as
    3st-port: Server has Local ip as

    How I can open port as 554,80,22… on this Cisco 3825

    let say on server 1= ip- how I open this port.


  12. by jorge lopez murillo, on November 20 2012 @ 7:03 pm


    gracias :D

Comment RSS · TrackBack URI

Leave a comment

Name: (Required)

eMail: (Required)