cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
304
Views
0
Helpful
1
Replies

How to do Destination base NAT

arya22104u
Level 1
Level 1

Hi Guys,

I need ur help. Actually I need to do Destination base NAT from INSIDE TO OUTSIDE on Cisco router. Let me explain my requirement:-

Source IP:- a.a.a.a(inside of router)

Destination IP:- b.b.b.b(outside of router)

IP to be used for NAT:- c.c.c.c

So, when a packet arrives at router's inside interface with source IP a.a.a.a and destination ip b.b.b.b(router's outside interface) the destination IP (ie.b.b.b.b ) should get translated into IP c.c.c.c. and when the replies comes back the c.c.c.c should  get translated back to b.b.b.b.

Plz help I need to deploy this soon.

==========================================

The IP packet details:-

Source IP:- a.a.a.a(LAN IP)

Destination IP:- b.b.b.b(WAN IP)

Destination IP(b.b.b.b) shld get translated into c.c.c.c.

Below is the config I prepared in order to achieve the above requirement. Is this correct?

ip nat outside source static c.c.c.c b.b.b.b

==================================

interface GigabitEthernet0/0

description **Towards Internet**

ip nat outside

============

interface FastEthernet0/1/0

description **Towards LAN**

ip nat inside

Thanks

Uttam.

1 Reply 1

sean_evershed
Level 7
Level 7

Hi,

Have you seen the following config guide for IP NAT Outside?

http://www.cisco.com/en/US/tech/tk648/tk361/technologies_configuration_example09186a0080093f2f.shtml

As can be seen from the example you also need to configure a static route for the new outside local subnet that has been defined.

Please remember to rate all posts that are helpful.

Review Cisco Networking for a $25 gift card