How to configure Static NAT in Cisco IOS Routers – Part 2

We discussed NAT Overloading in the Part-1 of our Cisco IOS NAT configuration here

Here, we will configure a Static NAT on Cisco IOS Routers. Static NAT is rather straightt forward as it is a one to one NATing between IP addresses as against the NAT Overloading or the Dynamic NAT where the IP addresses from the inside are NATed to a pool of IPs.


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 192.168.1.1 255.255.255.0

WANRouter(config-if)# ip nat inside

2. Enable NAT outside interface

WANRouter(config)# int serial0/0/0

WANRouter(config-if)# ip address 100.100.100.100 255.255.255.0

WANRouter(config-if)# ip nat outside

Instruct Router to NAT the Source IP Address to that of a NATed IP.

WANRouter(config)# ip nat inside source static 10.1.1.11 172.1.1.11

WANRouter(config)# ip nat inside source static 10.1.1.12 172.1.1.12

WANRouter(config)# ip nat inside source static 10.1.1.13 172.1.1.13

Where 10.1.1.x IPs are NATed to 172.1.1.x

The syntax is

ip nat inside source static x.x.x.x y.y.y.y

That sets up the Static NATs. These can co exist along with NAT Overloading or Dynamic NATs.

To check the NAT Status and Statistics

WANRouter# show ip nat statistics

To see the active translations

WANRouter# show ip nat translations

Comments

6 responses to “How to configure Static NAT in Cisco IOS Routers – Part 2”

  1. wasim Avatar
    wasim

    u have given fantasic descreptions…… if new learner dig into this site and zip the material about natting, so he can grasp the concept……

  2. rajesh Avatar
    rajesh

    thanks its very simple and covers all the things for natting

  3. sanjay Avatar

    how to configure overload

  4. Hous Avatar

    I have the problem with configure,ospf and eigrp protcol to work with together.

    Could you please show me how to configure.

    King Regards

    Hous

  5. L8 knight Avatar
    L8 knight

    Thnx for dis! My buddy n i stayed r tryin to remember how to do dis.wer up till 3:42am wen i found dis. Thnx much! Now i can get sum slip!

Leave a Reply

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