RE: How should I make two hosts to share an IP?

"Spangler, Tim" <[email protected]> Wed, 9 May 2007 18:08:11 -0600
Newsgroups gmane.comp.apache.mod-wackamole.general
Message-ID <[email protected]>
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--===============8462943486906056091==
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C79297.4BB1BAE1"

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C79297.4BB1BAE1
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,
=20
To have only 1 "real" ip you need to configure your virtual interfaces =
like
this:
=20
VirtualInterfaces {
        { eth0:192.168.1.100/32 }
        { eth0:0.0.0.0/26 }
}

To ensure that a certain server is the primary, use the Prefer =
paramater on
the wackamole configuration on that server.  Ex:
=20
Prefer eth0:192.168.1.100/32
=20
Then set the other box to=20
=20
Prefer eth0:0.0.0.0/32
=20
Now, as long as the server with the "real" ip in its prefer line is =
running,
it will be the one listening on that IP and the other server will =
listen on
0.0.0.0.
=20
That should pretty much work for a active / failover configuration.  I =
hope
that helps,
=20
-Tim Spangler
ADP Screening and Selection Services
=20


  _____ =20

From: Torbj=F6rn Sj=F6lander [mailto:[email protected]]=20
Sent: Tuesday, May 08, 2007 5:41 AM
To: [email protected]
Subject: [Wackamole-users] How should I make two hosts to share an IP?



Hi,

=20

I'm trying to configure wackamole to share an IP between two hosts.

The IP should only exist on one machine at the time.

=20

How should I set up wackamole (and spread?) to make the hosts pass
information between each other?

Where do I set which host that will be "primary", owning the shared IP =
by
default?

=20

Or did I misunderstand the whole wackamole concept?

=20

Best regards,

Torbjorn

=20


------_=_NextPart_001_01C79297.4BB1BAE1
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<STYLE>@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt =
72.0pt 90.0pt; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
P {
	FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: =
"Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: =
auto
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: =
personal-compose
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D780100300-10052007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Hello,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D780100300-10052007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D780100300-10052007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>To have only 1 "real" ip you need to configure =
your virtual=20
interfaces like this:</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D780100300-10052007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D780100300-10052007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>VirtualInterfaces=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { eth0:192.168.1.100/32 =

}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { eth0:0.0.0.0/26=20
}<BR>}<BR></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D780100300-10052007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>To ensure that a certain server is the =
primary, use the=20
Prefer paramater on the wackamole configuration on that server.&nbsp;=20
Ex:</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D780100300-10052007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>&nbsp;</DIV></FONT></SPAN>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D780100300-10052007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Prefer =
eth0:192.168.1.100/32</FONT></SPAN></DIV>
<DIV><SPAN class=3D780100300-10052007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D780100300-10052007><FONT face=3DArial =
color=3D#0000ff size=3D2>Then=20
set the other box to </FONT></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D780100300-10052007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D780100300-10052007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Prefer eth0:0.0.0.0/32</FONT></SPAN></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D780100300-10052007>Now,=20
as long as the server with the "real" ip in its prefer line is running, =
it will=20
be the one listening on that IP and the other server will listen on=20
0.0.0.0.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D780100300-10052007><FONT face=3DArial =
color=3D#0000ff size=3D2>That=20
should pretty much work for a active / failover configuration.&nbsp; I =
hope that=20
helps,</FONT></SPAN></DIV>
<DIV><SPAN class=3D780100300-10052007><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D780100300-10052007><FONT face=3DArial =
color=3D#0000ff size=3D2>-Tim=20
Spangler</FONT></SPAN></DIV>
<DIV><SPAN class=3D780100300-10052007><FONT face=3DArial =
color=3D#0000ff size=3D2>ADP=20
Screening and Selection Services</FONT></SPAN></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial><BR><FONT =
color=3D#0000ff=20
size=3D2></FONT></FONT></DIV></SPAN>
<DIV dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
</DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DTahoma size=3D2><B>From:</B> =
Torbj=F6rn Sj=F6lander=20
[mailto:[email protected]] <BR><B>Sent:</B> Tuesday, May =
08, 2007=20
5:41 AM<BR><B>To:</B> =
[email protected]<BR><B>Subject:</B>=20
[Wackamole-users] How should I make two hosts to share an=20
IP?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=3DSection1>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Hi,<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I'm trying to configure =
wackamole to=20
share an IP between two hosts.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">The IP should only exist =
on one=20
machine at the time.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">How should I set up =
wackamole (and=20
spread?) to make the hosts pass information between each=20
other?<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Where do I set which host =
that will=20
be "primary", owning the shared IP by =
default?<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Or did I misunderstand =
the whole=20
wackamole concept?<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Best=20
regards,<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Torbjorn<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: =
12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BODY></HTML>

------_=_NextPart_001_01C79297.4BB1BAE1--


--===============8462943486906056091==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
wackamole-users mailing list
[email protected]
http://lists.backhand.org/mailman/listinfo/wackamole-users

--===============8462943486906056091==--