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

hosting 2 web servers

Is it possible for me to host 2 web servers using 1 public ip, if I do a nat statement to both of them, how will it know which server to use from the outside ?

1 REPLY

Re: hosting 2 web servers

Hello Carl,

I can see that you have some trouble configuring NAT.

Please check the following link for some usefull information:

http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a008044eddc.html

But answering your question:

straight link:

"

Avoiding Server Overload Using TCP Load Balancing

Perform this task to configure server TCP load balancing by way of destination address rotary translation. These commands allow you to map one virtual host to many real hosts. Each new TCP session opened with the virtual host will be translated into a session with a different real host.

"

SUMMARY STEPS

1. enable

2. configure terminal

3. ip nat pool name start-ip end-ip {netmask netmask | prefix-length prefix-length} type rotary

4. access-list access-list-number permit source [source-wildcard]

5. ip nat inside destination-list access-list-number pool name

6. interface type number

7. ip address ip-address mask

8. ip nat inside

9. exit

10. interface type number

11. ip address ip-address mask

12. ip nat outside

http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a008044eddc.html#wp1048769

example:

ip nat pool real-hosts 192.168.15.2 192.168.15.15 prefix-length 28 type rotary

ip nat inside destination list 2 pool real-hosts

!

interface serial 0

ip address 192.168.15.129 255.255.255.240

ip nat outside

!

interface ethernet 0

ip address 192.168.15.17 255.255.255.240

ip nat inside

!

access-list 2 permit 192.168.15.1

All from cisco website.

If this helps, please rate my post.

Thanks,

Vlad

112
Views
0
Helpful
1
Replies
CreatePlease to create content