LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Two box lvs with UltrMonkey LO problem

To: "'LinuxVirtualServer.org users mailing list.'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Two box lvs with UltrMonkey LO problem
From: "Cyrus" <cyrus@xxxxxxxxxxxxxxxx>
Date: Tue, 6 Apr 2010 11:54:11 +0100
Hello,

I am trying to run a two node LVS set-up.
My VIP is 174.121.60.28 and my RIP is 174.121.60.50.
I can ping the VIP from the RIP but am unable to ping the VIP from outside.

Ifconfig gives me this:

eth0      Link encap:Ethernet  HWaddr 00:26:B9:79:6E:C2
          inet addr:174.121.60.50  Bcast:174.121.60.55  Mask:255.255.255.248
          inet6 addr: fe80::226:b9ff:fe79:6ec2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1670618 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1521512 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:330044128 (314.7 MiB)  TX bytes:353914009 (337.5 MiB)
          Interrupt:169 Memory:da000000-da012800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1278 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1278 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1139484 (1.0 MiB)  TX bytes:1139484 (1.0 MiB)

ip addr show gives me this:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:26:b9:79:6e:c2 brd ff:ff:ff:ff:ff:ff
    inet 174.121.60.50/29 brd 174.121.60.55 scope global eth0
    inet 174.121.60.28/24 brd 127.255.255.255 scope global eth0
    inet6 fe80::226:b9ff:fe79:6ec2/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether 00:26:b9:79:6e:c3 brd ff:ff:ff:ff:ff:ff
4: sit0: <NOARP> mtu 1480 qdisc noop
    link/sit 0.0.0.0 brd 0.0.0.0

Can anyone see what is wrong? As usual the logs are not very verbose!!

Kind regards,

Cyrus



-----Original Message-----
From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx 
[mailto:lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of L.S. Keijser
Sent: 29 March 2010 06:31
To: LinuxVirtualServer.org users mailing list.
Subject: Re: [lvs-users] Two box lvs with UltrMonkey LO problem

On Sun, 2010-03-28 at 14:28 +0100, Cyrus wrote:
> That's what I try and do.
> I edit the /etc/sysconfig/network-scripts/ifcfg-lo:0 file and add the VIP
> (174.121.60.28) as the IP address.
> 
> DEVICE=lo:0
> IPADDR=174.121.60.28
> NETMASK=255.255.255.248
> ONBOOT=yes
> NAME=loopback

If you configure the loopback adapter like this. RedHat's network
scripts will always send an arp broadcast first, which is exactly what
you don't want. Instead, put something like this in your /etc/rc.local
file:

# solve the ARP problem
echo 1 > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_ignore
echo 2 > /proc/sys/net/ipv4/conf/lo/arp_announce
echo 2 > /proc/sys/net/ipv4/conf/eth0/arp_announce

# Bring up loopback interface
ifconfig lo:0 174.121.60.28 broadcast 174.121.60.28 netmask 0xffffffff
up

# Make sure traffic destined for the VIP gets handled by the loopback
adapter
route add -host 174.121.60.28 device lo:0



-- 
L�on


_______________________________________________
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

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


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