Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

bidirectional NAT ?

Hi experts!

I need to do static NAT in two directions! I have a router cisco 881 with IOS ver 12.4T(24). I need to do this:

ip nat inside source static tcp 192.168.3.1 5001 interface fastEthernet 4 5001

and

ip nat inside source static tcp 192.168.3.1 5001 interface vlan 2 5001

int vlan 1

ip nat inside

int vlan 2

ip nat outside

int fa 4

ip nat outside

Is there some way to work both rules together ?

If this is not possible pls give some suggestions how to do this ? I need to have access on port 5001 from internet (fa 4 ) and from vlan 2 at the same time ?

Thanks in adv!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: bidirectional NAT ?

Peter,

Router will not allow you to do that.

Let's use an extendable command to make the router clears a bit of confusing things. (grin)

ip nat inside source static tcp 192.168.3.1 5001 5001 extendable

ip nat inside source static tcp 192.168.3.1 5001 5001 extendable

Please let us know how things work out.

Toshi

3 REPLIES

Re: bidirectional NAT ?

Peter,

Router will not allow you to do that.

Let's use an extendable command to make the router clears a bit of confusing things. (grin)

ip nat inside source static tcp 192.168.3.1 5001 5001 extendable

ip nat inside source static tcp 192.168.3.1 5001 5001 extendable

Please let us know how things work out.

Toshi

New Member

Re: bidirectional NAT ?

Hey thank you Toshi, that works great! What actually this command extendable does? Thank you again!

Re: bidirectional NAT ?

Peter,

I'm glad to know you're happy with that.

#######

Extendable" static translations:

The extendable keyword allows the user to configure several ambiguous static translations, where an ambiguous translations are translations with the same local or global address.

#######

Actually the extendable keyword translates the packet with full extended parameters to get rid of ambiguity. It includes things like IP/Port of source and destination.

HTH,

Toshi

641
Views
5
Helpful
3
Replies