LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Ipvs and routing.

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] Ipvs and routing.
From: "Nicolas Ross" <rossnick-lists@xxxxxxxxxxx>
Date: Tue, 5 Apr 2011 13:51:53 -0400
Hi !

I am new to the ipvs world, I never used it and I wish to confirm some 
functionnality.

First off, in our setup, our servers are running a mixture of centos/RHEL6 
we already have 2 routers in active/active setup with heartbeat, so that the 
IP of the main gateway is failed over in the event of a failure.

Excuse my asci art talent, but here's a simplified diagram of our setup :

  Internet
    |
-------------------------------
  |                     |
  | eth0:1.1.1.2 /29    | eth0:1.1.1.3/29
  |                     |
+----------+          +----------+
| routet 1 |          | router 2 |
+----------+          +----------+
  |                            |
  | vlan10:192.168.110.2/24    | vlan10:192.168.110.3/24
  |                            |
----------------------------------
server network 192.168.110.0/24

So, heartbeat takes care of enabling eth0:0 1.1.1.1 and vlan10:0 
192.168.110.1 on their respective netowrk. Next, we have a /27 (1.1.2.0/27 
for exemple) bloc that is router to 1.1.1.1 by our isp. In our iptables 
file, I setup rules like this :

-A PREROUTING -d 1.1.2.0 -p tcp --dport 80 -j DNAT --to-destination 
192.168.110.33

to forward the trafic to the servers. Doing so also enables me to use all 64 
addresses of the /27.

Now, looking at the docs for ipvs, I see that I setup a realip to be used on 
out externel net (eth0 in my example), and a corresponding ip on the private 
one (vlan10). So, I suppose I'll then have to change the way I route trafic 
and switch to have the real ip as an alias on the external interface ? Is 
there a way to function with iptables like I do now ?

Thanks, 


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

<Prev in Thread] Current Thread [Next in Thread>
  • [lvs-users] Ipvs and routing., Nicolas Ross <=