[rhelv6-list] IP load balancing

Patrick H. rhelv6-list at feystorm.net
Mon Jan 10 16:52:41 UTC 2011


Sent: Mon Jan 10 2011 09:25:58 GMT-0700 (Mountain Standard Time)
From: Matthias Saou   
 <thias at spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net>
To: rhelv6-list at redhat.com
Subject: Re: [rhelv6-list] IP load balancing
> Patrick H. wrote :
>
>   
>> So I just started setting up a RHEL6 box for use in a load balanced 
>> cluster and have run across a problem. The way you set up a virtual IP 
>> on the back end realhost side is to add an interface alias to the 
>> loopback device (such as lo:0). Well the ifup-eth script in RHEL6 
>> refuses to add aliases to the loopback interface. Additionally if you 
>> try to add the alias to the real ethX device instead it fails because 
>> the arping check it does finds that the IP is already running on the 
>> IPVS director.
>>
>> So, how is one supposed to setup a realhost now?
>> The difference from RHEL5 is that RHEL5 doesnt check to see if youre 
>> adding an alias to the loopback device or not. Why does RHEL6 even care 
>> about that anyway? Theres nothing wrong with it...
>>     
>
> I've quickly tested a simple ifcfg-lo:0 like this and it works fine for
> me on RHEL6 :
>
> DEVICE=lo:0
> IPADDR=10.0.0.1
> NETMASK=255.255.255.255
>
> Maybe you've been using a netmask which overlaps with some of the
> addresses configured on your eth interfaces : Don't do that for those
> "dummy" addresses.
>
> Matthias
>
>   
I found the problem. I was attempting to `ifup lo:0` to bring up the 
specific interface. Apparently you can not do this anymore. You have to 
do `ifup lo` and let it bring up all aliases together.

-Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhelv6-list/attachments/20110110/9d461c12/attachment.htm>


More information about the rhelv6-list mailing list