LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: lvs-users Digest, Vol 49, Issue 22

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: lvs-users Digest, Vol 49, Issue 22
From: Evald Ibrahimi <evald80@xxxxxxxxxxx>
Date: Wed, 21 Feb 2007 12:39:11 +0100
thanks for the reply,
i have read all docs and how-to, but found nothing.
Searching on the net i have found this interesting doc on ultramonkey project web-site http://www.ultramonkey.org/papers/lvs_tutorial/html/ (look at the LVS - Direct routing example)

As i wrote on my prevoius messagge, the problem was not on the director but on the real server
the solution is that i had to give this comand to the real server:

      ifconfig lo:0 192.168.1.15 netmask 255.255.255.255 up

intead of:

      ifconfig lo:0 192.168.1.15 up

but i dont understand  why it is working now ?
Could somebody explain me this ?

Thanks,
Regards



@Alparslan OZTURK
------------------------
i have to give this commands

echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_ignore
echo 2 > /proc/sys/net/ipv4/conf/eth0/arp_announce
echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore
echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce

otherwise the lo:o device will respond with its mac address when recieve an arp broadcast(and it will be a mess, beacuse also the director respond to the arp broadcast)
from the client.


Regards.



lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx ha scritto:
Send lvs-users mailing list submissions to
        lvs-users@xxxxxxxxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.in-addr.de/mailman/listinfo/lvs-users
or, via email, send a message with subject or body 'help' to
        lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx

You can reach the person managing the list at
        lvs-users-owner@xxxxxxxxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lvs-users digest..."
------------------------------------------------------------------------

Today's Topics:

   1. RE: Problem with virtual server on (vmware) virtual machines
      (Alparslan OZTURK)
   2. RE: Problem with virtual server on (vmware) virtual machines
      (Joseph Mack NA3T)
   3. super slow speeds from director (Matthew)
------------------------------------------------------------------------

Oggetto:
RE: Problem with virtual server on (vmware) virtual machines
Da:
"Alparslan OZTURK" <aozturk@xxxxxxxxxxx>
Data:
Tue, 20 Feb 2007 13:42:31 +0200
A:
"LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>

A:
"LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>


I think you don't need these commands. Because vmware can emulate MAC
adress.

echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_ignore
echo 2 > /proc/sys/net/ipv4/conf/eth0/arp_announce
echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore
echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce


-----Original Message-----
From: lvs-users-bounces+aozturk=e-tugra.com@xxxxxxxxxxxxxxxxxxxxxx
[mailto:lvs-users-bounces+aozturk=e-tugra.com@xxxxxxxxxxxxxxxxxxxxxx] On
Behalf Of Evald Ibrahimi
Sent: Friday, February 16, 2007 9:28 PM
To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Problem with virtual server on (vmware) virtual machines

Hi Everybody !
need some help here,
I'm trying to test a simple virtual server. This is the topology of my
net:

I have 2 virtual machines(both are ubuntu 6.10) running on vmware.
the first is the director with IP 192.168.1.7 on eth0, the second is the
real server with IP 192.168.1.9 on eth0.

i want to test a web service running on a VIP 192.168.1.15.
All the nic of the machines are on the same subnet so i have to use the
"Direct routing" and also to resolve the problem of arp when all the
machines are on the same subnet.
here are the command that i have used:

on the director:
---------------

ifconfig eth0 192.168.1.7 up
ifconfig eth0:0 192.168.1.15 up
ipvsadm -A -t 192.168.1.15:80
ipvsadm -a -t 192.168.1.15:80 -r 192.168.1.9 -g echo 1 >
/proc/sys/net/ipv4/ip_forward

on the real server:
------------------

echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_ignore
echo 2 > /proc/sys/net/ipv4/conf/eth0/arp_announce
echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore
echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce

ifconfig lo:0 192.168.1.15 up

the conclusion is that it is not working, i have used ethereal to
understand what is going on the network and i have understood that the
director is working fine but the problem is on the real server because
it recieve the request for the home page but doesnt reply.
somebody could help me to understand why it's not working ??

Regards,
Evald

_______________________________________________
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
------------------------------------------------------------------------

Oggetto:
RE: Problem with virtual server on (vmware) virtual machines
Da:
Joseph Mack NA3T <jmack@xxxxxxxx>
Data:
Tue, 20 Feb 2007 05:05:53 -0800 (PST)
A:
"LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>

A:
"LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>


On Tue, 20 Feb 2007, Alparslan OZTURK wrote:

the conclusion is that it is not working, i have used ethereal to
understand what is going on the network and i have understood that the
director is working fine but the problem is on the real server because
it recieve the request for the home page but doesnt reply.
somebody could help me to understand why it's not working ??

have you read the mini-HOWTO? The realservers not replying in LVS-DR is a standard symptom. Also give us the output of `ipvsdam`

Joe


------------------------------------------------------------------------


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