cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
306
Views
4
Helpful
4
Replies

NAT both networks

martinbuffleo
Level 1
Level 1

I'm looking to configure a NAT router

 

server-------NAT Rt-------client

 

I need the client to think it talking to the NATRt cleint side.

 

And I need the server to to think the access requests are coming from the NATRt.

 

Effectivily each are unaware of the other subnet?

 

Any ideas? Any help appricaiated.

4 Replies 4

Hello,

Suppose router fa0/0(LAN) is connected to server and fa0/1(WAN) is conncted to client.

You need to do 2 NATs. Destination NAT and Source NAT.

int fa0/0

ip nat inside

int fa0/1

ip nat outside

****

Destination NAT. Client makes a request to WAN IP set on router. Client does not know the server IP

ip nat inside source static [server ip] [Wan IP on router]

***************************************

Outside Source NAT. Router changes the source of the client, so server sees the router IP instead of client IP

access-list 50 permit host [client ip]

Ip nat pool Router-IP  [internal router ip for nat] [internal router ip for nat] netmask 255.x.x.x

ip nat outside source list 50 pool [Router-IP] add-route

*************************

The first NAT is easy. Please take a look at link below for the second NAT

http://www.cisco.com/c/en/us/support/docs/ip/network-address-translation-nat/13770-1.html

Hope it helps

Masoud

Thanks for the reply at shall give that a go shortly and get back to you.

 

Thanks again.

You are welcome. Please give me your feedback after configuration.

Masoud

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hello ,

To add on Masoud comments , With static NAT configuration in routers you achive below

ip nat outside source static :- Translates the source of the IP packets that travel outside to inside and Translates the destination of the IP packets that travel inside to outside.

ip nat inside source static :-Translates the source of IP packets that travel inside to outside and Translates the destination of the IP packets that travel outside to inside.

Hope it Helps..

-GI

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card