RE: Routing problems - please help.
pb <[email protected]>
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
--- Nir Livni <[email protected]> wrote: > Does it matter ? > This is only for testing purposes. > >> Shouldn't the nodes be on a differnet subnet, natted >> by the LVS server? Testing or no, you need to have two network interfaces on two different networks, your PUBLIC interface on one side of the load balancer, and the PRIVATE interface on the back side of the load balancer (so to speak) where your also place your real servers. NAT Routing eth0:1 eth1:1 eth0 -incoming requests--> public[l.b.]private[r.s.] <--outgoing requests- public[l.b.]private[r.s.] You can take a look at section 32.2 of http://www.linuxvirtualserver.org/Joseph.Mack/HOWTO/LVS-HOWTO.unsupported.html#id2894051 for how to to NAT Routing setup. You will find there how to do iptables and ipvsadm statements to setup your routing in addition to the lvs.cf config file, and networking all this, etc. Believe me when I first learned Piranha/LVS I thought I could try with one network card, but you need to. Also don't forget to set the default gateway of the real servers to the NAT Routing address of the load balancer. Peter __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com