Hi,
I think you can use the fwmark option for the
loadbalancing
you can mark the incomming pakackes with an
ipchains rule like
ipchains -A input -s 0.0.0.0/0 -d 192.168.0.0/24
-m 1
then
you can setup your LVS like
ipvsadm -A -f 1 -s wlc
ipvsadm -a -f 1 -r 10.10.10.15 -g
ipvsadm -a -f 1 -r 10.10.10.16 -g
.
.
.
ps. the cisco should then point to the LB
cu,
Chris
> Ian Courtney wrote:
>
> Just been playing with lvs for the last week or
> so, and have gone though a little of the mailing
> list, but have yet to find a good answer to my
> problem.
>
>
> Basically here at our ISP, we tend to have 2-3
> Class C's worth of hosting per server. We would
> like to move the the LVS, but I'm not exactly
> sure how I should be setting it up.
>
> Our setup:
>
> Normally:
> The machine has a static ip, lets say
> 10.10.10.15, and two Class C's , 192.168.0.0/24
> and 172.16.0.0/24, both class C's have explicit
> routes on our cisco router to 10.10.10.15.
>
> I need to know how to integrate this method into
> our network using lvs. I know I have to change
> the route to point at the Director, but from
> there I'm kinda lost. Does the director need to
> have all the Class C's present on the
> RealServers aliased?
>
> I've also thought of setting up a route for each
> Class C to each Realserver using them, but that
> would kind of render the LVS useless as it
> wouldn't be doing the round robin, the routing
> would (if that would even work).
>
> A bigger problem for me is a head, this is
> currently just for 3 Class C's for our CGI
> users, our normal Unix webspace is the next to
> get LVS'd, but there is probably 18 class C's
> involved in that space, and I don't think Linux
> will handle having 18 Class C's aliased to a
> single machine.
>
> Any help is greatly appreciated.
>
> ------------------------------------------------------------
> Ian Courtney
> Systems Unix Administrator
> CADVision Internet
> (http://www.cadvision.com)
> A division of PSINet inc. [NASDAQ PSIX]
> 300 - 5th Avenue SW, Suite 1810
> Calgary, Alberta
> Email: ianc@xxxxxxxxxxxxx
> Phone: (403) 777-1300
> ----------------------------------------------------------
>
>
|