Source nat and destination nat on Same public ip

From: faizan khurshid <faizankhurshid921_at_hotmail.com>
Date: Wed, 7 Mar 2012 21:48:07 +0500

Dear

Below is my scenario

.

I have Mail Gateway : which is sending and receving an email on different
 IP ....................IP 172.16.16.12 it sending email to outside
world while 172.16.16.11 its receving from Internet.I only have one
public IP 94.56.X.X .I did below config user can receive from outside world
while once user send an email i should receive on 94.56.X.X f but i m
receving from Outside interface of router which is connected to Internet

My question can we do source nat and destination nat on Same public ip
while we have different private IP's .Below is my config seems to be
fine but its not working for outgoing traffic

Once i remove ip nat inside source list DMZ interface fa0/1 overload
internet stop working on my Mail Gateway

ip nat pool POOL1 172.16.16.11 172.16.16.11 netmask 255.255.255.0 type
rotaryip nat pool POOL2 94.56.X.X 94.56.X.X netmask 255.255.255.0ip nat inside
source list Outside pool POOL2ip nat inside destination list Inside pool
POOL1!ip access-list extended Inside permit tcp any host 94.56.X.X eq smtpip
access-list extended Outside permit tcp host 172.16.16.12 eq smtp any eq smtp
!
ip access-list extended DMZ
permit ip 172.16.16.0 0.0.0.255 any

ip nat inside source list DMZ interface fa0/1 overload

interface FastEthernet0/0 ip address 172.16.16.1 255.255.255.0 ip nat inside
ip virtual-reassembly duplex auto speed auto!interface FastEthernet0/1 ip
address 94.216.200.65 255.255.255.252 ip nat outside ip virtual-reassembly
duplex auto speed auto

Blogs and organic groups at http://www.ccie.net
Received on Wed Mar 07 2012 - 21:48:07 ART

This archive was generated by hypermail 2.2.0 : Sun Apr 01 2012 - 07:56:52 ART