bidirectional NAT ?

Answered Question
Mar 31st, 2009
User Badges:

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!

Correct Answer by thotsaphon about 8 years 3 weeks ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
thotsaphon Tue, 03/31/2009 - 02:12
User Badges:
  • Gold, 750 points or more

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

zenon_electronics Tue, 03/31/2009 - 03:08
User Badges:

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

thotsaphon Tue, 03/31/2009 - 05:29
User Badges:
  • Gold, 750 points or more

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

Actions

This Discussion