network address translation (nat) issue

Dec 29, 2006 4 Replies
network address translation (nat) issue open original image

Hi,



Is it possible to setup NAT in such a way that hosts from the inside network can reach other inside hosts that are statically nated ? (I mean NAT that translates, in reality, from ip nat inside interface to another ip nat inside interface). If so, how can this be achieved. Thanks for any comments or hints.



Regards



Maciek



what device/OS/ version are you taking about

M

Sorry not having mentioned that. We are talking about 2851 Cisco IOS Router @ IOS ver 12.3(8).

maciek

Possibly.

I would expect (but do not know) that an interface can be both "inside" and "outside" at the same time.

There are also a few non-obvious (to me anyway) 'tricks' available.

You can create a loopback interface and use policy routing to force your traffic from the original source interface to the loopback. The loopback could be a nat-outside interface. The traffic could then be router normally but has had an extra NAT operation available.

You can put policy maps on your nat statements. I believe that this allows the full power of policy maps to be applied to natted traffic. Various match and set clauses. No idea what you can actually use this for though other than sending traffic to loopbacks as discussed above.

There is a document that you may find interesting which describes doing NAT on a router with only one interface.

formatting link
Address Translation on a Stick

Hi,

Thanks for the hints. I will of course try to implement them. Unfortunately, this is not possible to have both ip nat inside and ip nat outside on the same interface :( this should simplify things but it wouldn't. I have also thought about loopbacks&route-maps but I am not quite sure if it is the simplest solution. I will try it anyway. Thanks also for the link:)

Regards and a happy New Year :)

Maciek

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required