Mailing List Archive

LVS using 2 IP-Addresses???
Hi everyone,

I am using LVS with NAT and redirect the http traffic to one real-server (web server)
I have got 4 official IP-Addresses (in the same subnet) from ISP.
Now I want to redirect the http traffic form another IP-Address to another realserver.
Do I need a second LinuxBox running LVS or is it possible that LVS listens on 2
IP-Addresses (either using IP-Aliasing or a third networkcard)?
In my opinion I'll get problems with MASQ, because because LVS doesn't know
which IP-Address will be the source address when sending back the request to
the internet.
Does anybody have experience using LVS (NAT) with two official IP-Addresses or
has an idea where to find information about this?
I hope I am not the only person using such a setup?

Here I am, waiting for your comments.

Thanks to all ;-)

Sven

Sven Bedorf mailto:bedorf@ph1.uni-koeln.de
Re: LVS using 2 IP-Addresses??? [ In reply to ]
On Thu, Jan 25, 2001 at 05:20:48PM +0200, Sven Bedorf wrote:
> Hi everyone,
>
> I am using LVS with NAT and redirect the http traffic to one real-server
> (web server) I have got 4 official IP-Addresses (in the same subnet) from
> ISP. Now I want to redirect the http traffic form another IP-Address to
> another realserver. Do I need a second LinuxBox running LVS or is it
> possible that LVS listens on 2 IP-Addresses (either using IP-Aliasing or
> a third networkcard)?

This should work fine with either an IP alias or an additional network
card.

> In my opinion I'll get problems with MASQ, because
> because LVS doesn't know which IP-Address will be the source address when
> sending back the request to the internet.

The source address should work fine as it will be stored in a masq
structure when the incomming packet arrives. Though I'll stand corrected
on this.

> Does anybody have experience
> using LVS (NAT) with two official IP-Addresses or has an idea where to
> find information about this? I hope I am not the only person using such
> a setup?
>
> Here I am, waiting for your comments.
>
> Thanks to all ;-)
>
> Sven
>
> Sven Bedorf mailto:bedorf@ph1.uni-koeln.de
>

--
Horms
Re: LVS using 2 IP-Addresses??? [ In reply to ]
Horms wrote:
>
> On Thu, Jan 25, 2001 at 05:20:48PM +0200, Sven Bedorf wrote:
> > Hi everyone,
> >
> > I am using LVS with NAT and redirect the http traffic to one real-server
> > (web server) I have got 4 official IP-Addresses (in the same subnet) from
> > ISP. Now I want to redirect the http traffic form another IP-Address to
> > another realserver. Do I need a second LinuxBox running LVS or is it
> > possible that LVS listens on 2 IP-Addresses (either using IP-Aliasing or
> > a third networkcard)?
>
> This should work fine with either an IP alias or an additional network
> card.
>
> > In my opinion I'll get problems with MASQ, because
> > because LVS doesn't know which IP-Address will be the source address when
> > sending back the request to the internet.
>
> The source address should work fine as it will be stored in a masq
> structure when the incomming packet arrives. Though I'll stand corrected

works here for VS-NAT with an extra network card on the outside of the director.
(I trust the theory, but I always like testing it.)

Joe

--
Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
contractor to the National Environmental Supercomputer Center,
mailto:mack.joseph@epa.gov ph# 919-541-0007, RTP, NC, USA
Re: LVS using 2 IP-Addresses??? [ In reply to ]
Horms wrote:
>
> On Thu, Jan 25, 2001 at 05:20:48PM +0200, Sven Bedorf wrote:
> > Hi everyone,
> >
> > I am using LVS with NAT and redirect the http traffic to one real-server
> > (web server) I have got 4 official IP-Addresses (in the same subnet) from
> > ISP. Now I want to redirect the http traffic form another IP-Address to
> > another realserver. Do I need a second LinuxBox running LVS or is it
> > possible that LVS listens on 2 IP-Addresses (either using IP-Aliasing or
> > a third networkcard)?
>
> This should work fine with either an IP alias or an additional network
> card.
>
> > In my opinion I'll get problems with MASQ, because
> > because LVS doesn't know which IP-Address will be the source address when
> > sending back the request to the internet.
>
> The source address should work fine as it will be stored in a masq
> structure when the incomming packet arrives. Though I'll stand corrected
> on this.
>

I don't have a setup which can test this easily so I hacked together a few boxes
in
> > Does anybody have experience
> > using LVS (NAT) with two official IP-Addresses or has an idea where to
> > find information about this? I hope I am not the only person using such
> > a setup?
> >
> > Here I am, waiting for your comments.
> >
> > Thanks to all ;-)
> >
> > Sven
> >
> > Sven Bedorf mailto:bedorf@ph1.uni-koeln.de
> >
>
> --
> Horms
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users

--
Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
contractor to the National Environmental Supercomputer Center,
mailto:mack.joseph@epa.gov ph# 919-541-0007, RTP, NC, USA