LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: newbie LVS_NAT

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: newbie LVS_NAT
From: raj dutt <rd@xxxxxxxxx>
Date: Tue, 26 Dec 2000 18:04:50 -0500
Jeremy,

Sure you can. You basically set up two virtual services.
Here's an example config

virtual cluster1 {
        address = 10.1.1.1 eth1:0
        active = 1
        load_monitor = uptime
        timeout = 5
        reentry = 10
        port = http
        send = "GET / HTTP/1.0\r\n\r\n"
        expect = "HTTP"
        scheduler = wlc
        persistent = 60
        protocol = tcp

        server Real1 {
                address = 10.2.1.1
                active = 1
                weight = 1
        }

        server Real2 {
                address = 10.2.1.2
                active = 1
                weight = 1
        }
}

virtual cluster2 {
        address = 10.1.1.2 eth1:1
        active = 1
        load_monitor = uptime
        timeout = 5
        reentry = 10
        port = http
        send = "GET / HTTP/1.0\r\n\r\n"
        expect = "HTTP"
        scheduler = wlc
        persistent = 60
        protocol = tcp

        server Real1 {
                address = 10.3.1.1
                active = 1
                weight = 1
        }

        server Real2 {
                address = 10.3.1.2
                active = 1
                weight = 1
        }
}

Hope this helps!

Raj Dutt
Voxel dot Net, Inc


Jeremy Kusnetz wrote:
> 
> I would like to setup a director with multiple VIP's where each VIP can
> forward port requests to different real servers.
> 
> For example
> 
> An http request:
>   VIP 10.1.1.1:80 would go to realserver's 10.2.1.1 and 10.2.1.2
>   VIP 10.1.1.2:80 would go to realservers 10.3.1.1 and 10.3.1.2
> 
> Is this posible using LVS_NAT?  I am using Joseph Mack's configure script to
> set things up, I can get it to work fine with one VIP, but I don't see a
> good way of having multiple VIPs
> 
> Any help would be greatly helpful. :)
> 
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users


<Prev in Thread] Current Thread [Next in Thread>