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

Can you configure multiple nat addresses over the same port

Can you configure multiple nat addresses over the same port, e.g.

ip nat inside source static tcp 192.168.1.2 80 203.214.17.212 80 and ip nat inside source static tcp 192.168.1.3 80 203.214.17.212 80

9 REPLIES
Cisco Employee

Re: Can you configure multiple nat addresses over the same port

I dont think this is possible. Below is the test from the lab trying to apply the configuration you had posted.

Router(config)#ip nat inside source static tcp 192.168.1.2 80 203.214.17.212 80

Router(config)#ip nat inside source static tcp 192.168.1.3 80 203.214.17.212 80

% similar static entry (192.168.1.2 -> 203.214.17.212) already exists

Regards,

Arul

** Please rate all helpful posts **

Community Member

Re: Can you configure multiple nat addresses over the same port

Is there someone it can be done, e.g. create a pool of address 192.168.1.2 and .3 then point them to 203.214.17.212 on port 80?

Community Member

Re: Can you configure multiple nat addresses over the same port

acess-l 100 per tcp host 192.168.1.2 eq 80 any eq 80

acess-l 100 per tcp host 192.168.1.3 eq 80 any eq 80

ip nat pool pool_1 203.214.17.212

ip nat inside source list 100 pool pool_1 overload

Community Member

Re: Can you configure multiple nat addresses over the same port

Would that statement work?

Community Member

Re: Can you configure multiple nat addresses over the same port

you need apply the statement to interface:

int s x/x/x

ip nat outside

int f y/y/y

ip nat inside

and you can depend on actual tcp port of 192.168.1.2/3 to modify the acl

Community Member

Re: Can you configure multiple nat addresses over the same port

The router I have is a cisco 877 router so apply to the vlan1 interface and dialer0 interface? What about the ip nat statements I assume thry would be different?

Hall of Fame Super Bronze

Re: Can you configure multiple nat addresses over the same port

Let's think about this logically, how the incoming packet (traffic from the internet) is supposed to know to NAT one address over the other?

__

Edison.

Community Member

Re: Can you configure multiple nat addresses over the same port

Are you find for this?

When first web client make request to 203.214.17.212

the router will forward to 192.168.1.2

when second web client make request to 203.214.17.212

the router will forward to 192.168.1.3

and so on

If the answer is yes the follow configuration can help you

TCP Load Distribution for NAT

Router(config)# ip nat pool real-hosts 192.168.1.2 192.168.1.3 prefix-length 24 type rotary

Router(config)# access-list 100 permit tcp any host 203.214.17.212 eq 80

Router(config)# ip nat inside destination-list 100 pool real-hosts

Community Member

Re: Can you configure multiple nat addresses over the same port

I've added ip nat pool real-hosts 192.168.1.2 192.168.1.3 prefix-length 24 type rotary

Router(config)# access-list 100 permit tcp any host 203.214.17.212 eq 80

Router(config)# ip nat inside destination-list 100 pool real-hosts

and configured dialer interface 0 for ip access-group 100 out and all I get is time out when I goto my web pages from an external client. Although my access lists show matches when trying to get to my sites.

217
Views
0
Helpful
9
Replies
CreatePlease to create content