10-27-2010 06:16 PM - edited 03-04-2019 10:17 AM
Dear All,
I would like to ask you some question that i wat to do loadbalancing in my lan server, let me tell you more on this!!
In my local i have 2 server and connect to switch(L2) and the switch connected to router 1841 on port F0/1 , and port F0/0 connect to Internet.
so from client outside(1000user) connect to inside(both server) so i want to loadbalancing 500 user (outside) connect to my server 1 and 500 connect to my server2 !
How can i do on this?
Best Regards,
Rechard
10-27-2010 08:01 PM
I'm not sure how to use the 1841 to achieve this but in my company I use DNS. You nat the two servers to two public IPs on the router and you have both IPs in your DNS record. Since the DNS server will rotate the A record your clients will randomly get different IPs. Then it will achieve load-balancing.
10-27-2010 09:50 PM
Dear Sir,
Thanks you for you help!!!
Could you let me know simple configuration on this?
Best Regards,
Rechard
10-29-2010 11:01 AM
There are really not too much you need to put on the router except the NATing. Let's say that you servers have ip 192.168.1.1 and 192.168.1.2 and they will be NATed to 1.1.1.1 and 1.1.1.2. So on your router you should have these two commands:
ip nat inside source static 192.168.1.1 1.1.1.1
ip nat inside source static 192.168.1.2 1.1.1.2
Of course also permit the traffic on your ACL.
Then you just have to go talk to whoever manages your DNS record and say: hey can you create record for www.rechard.hk to 1.1.1.1 and 1.1.1.2 and you are done.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide