<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-MY" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I want to setup a load balance to point to 2 VM in opennebula using keepalived, refer to ww.keepalived.org<o:p></o:p></p>
<p class="MsoNormal">I am having problem when implementing virtual ip or vip. <o:p>
</o:p></p>
<p class="MsoNormal">The vip which is actually an arbitrary ip in the same network can bind to my VM eth0 (this is the master server) and if the master is down, the vip will float and bind to the standby VM eth0.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But the vip cannot be ping from other VM except the VM that is binding the vip as below. Here my vip is 10.4.104.88 and my master and standby VM are 10.4.104.28 and 10.4.104.91 respectively, available below.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[root@DW-LB01-253 ~]# ping 10.4.104.88<o:p></o:p></p>
<p class="MsoNormal">PING 10.4.104.88 (10.4.104.88) 56(84) bytes of data.<o:p></o:p></p>
<p class="MsoNormal">64 bytes from 10.4.104.88: icmp_seq=1 ttl=64 time=0.127 ms<o:p></o:p></p>
<p class="MsoNormal">^C<o:p></o:p></p>
<p class="MsoNormal">--- 10.4.104.88 ping statistics ---<o:p></o:p></p>
<p class="MsoNormal">1 packets transmitted, 1 received, 0% packet loss, time 760ms<o:p></o:p></p>
<p class="MsoNormal">rtt min/avg/max/mdev = 0.127/0.127/0.127/0.000 ms<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[root@DW-LB02-254 ~]# ping 10.4.104.88<o:p></o:p></p>
<p class="MsoNormal">PING 10.4.104.88 (10.4.104.88) 56(84) bytes of data.<o:p></o:p></p>
<p class="MsoNormal">^C<o:p></o:p></p>
<p class="MsoNormal">--- 10.4.104.88 ping statistics ---<o:p></o:p></p>
<p class="MsoNormal">1 packets transmitted, 0 received, 100% packet loss, time 804ms<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[root@DW-LB01-253 ~]# ip add sh eth0<o:p></o:p></p>
<p class="MsoNormal">2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000<o:p></o:p></p>
<p class="MsoNormal"> link/ether 02:00:0a:04:68:1c brd ff:ff:ff:ff:ff:ff<o:p></o:p></p>
<p class="MsoNormal"> inet 10.4.104.28/24 brd 10.4.104.255 scope global eth0<o:p></o:p></p>
<p class="MsoNormal"> inet 10.4.104.88/32 scope global eth0<o:p></o:p></p>
<p class="MsoNormal"> inet6 fe80::aff:fe04:681c/64 scope link<o:p></o:p></p>
<p class="MsoNormal"> valid_lft forever preferred_lft forever<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[root@DW-LB02-254 ~]# ip add sh eth0<o:p></o:p></p>
<p class="MsoNormal">2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000<o:p></o:p></p>
<p class="MsoNormal"> link/ether 02:00:0a:04:68:5b brd ff:ff:ff:ff:ff:ff<o:p></o:p></p>
<p class="MsoNormal"> inet 10.4.104.91/24 brd 10.4.104.255 scope global eth0<o:p></o:p></p>
<p class="MsoNormal"> inet6 fe80::aff:fe04:685b/64 scope link<o:p></o:p></p>
<p class="MsoNormal"> valid_lft forever preferred_lft forever<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-MY">Thanks and best regards.<o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-MY"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-MY"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-MY">Lim<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>