Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-19-2010, 07:50 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2010
Posts: 4
Rep:
|
load balancing
eth1 = Wan1 (Fiber)
eth2 = Wan2 (DSL)
eth0 = Lan
i want to do load balancing for web sites ,
i want to run youtube.com and facebook.com on eth2(dsl),
and all other sites except facebook and youtube.com run on eth1(Fiber)
how can i do this ????
|
|
|
|
04-19-2010, 08:11 AM
|
#2
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,778
|
Quote:
Originally Posted by cyph3r
eth1 = Wan1 (Fiber)
eth2 = Wan2 (DSL)
eth0 = Lan
i want to do load balancing for web sites ,
i want to run youtube.com and facebook.com on eth2(dsl),
and all other sites except facebook and youtube.com run on eth1(Fiber)
how can i do this ????
|
You set up Squid.
And what you're describing isn't load balancing. Might also help when you ask a question, to provide some details. Version/distro of Linux, etc....
|
|
|
|
04-19-2010, 08:20 AM
|
#3
|
|
Member
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379
Rep:
|
or you can do this by routing.
for instance, facebook.com:
Code:
ip route add -net 69.63.176.0/20 dev eth2
route for all other sites:
Code:
ip route add default dev eth1
|
|
|
|
04-27-2010, 10:44 AM
|
#4
|
|
LQ Newbie
Registered: Apr 2010
Posts: 4
Original Poster
Rep:
|
Quote:
Originally Posted by troop
or you can do this by routing.
for instance, facebook.com:
Code:
ip route add -net 69.63.176.0/20 dev eth2
route for all other sites:
Code:
ip route add default dev eth1
|
good
what about youtube.com ??
|
|
|
|
04-27-2010, 11:16 AM
|
#5
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,778
|
Quote:
Originally Posted by cyph3r
good
what about youtube.com ??
|
You replace the Facebook address with the YouTube address, obviously.
|
|
|
|
04-27-2010, 04:40 PM
|
#6
|
|
Member
Registered: Sep 2007
Distribution: Ubuntu
Posts: 33
Rep:
|
Probably also remove all other routes on eth2 to stop the rest of the traffic from going through it.
Similarly, remove route to the addresses for eth2 from eth1.
Hmm, I'm not sure what happens if the same route is mentioned for two ethernet interfaces.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:49 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|