keepalived config is not working correctly with virtualbox vms
Paul RĂ¼der <[email protected]> Mon, 15 Apr 2013 10:45:54 +0200
| Newsgroups | gmane.linux.keepalived.announce |
|---|---|
| Message-ID | <CAPQPMVew7kuJtecoQZ7Za1ZnG0NqvRissGE=8A086Kf8RGS20w@mail.gmail.com> |
--===============7395050936643574657==
Content-Type: multipart/alternative; boundary=e89a8fb2017ee9767b04da62473a
--e89a8fb2017ee9767b04da62473a
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi,
my keepalived configuration is not working correctly (i don't know if this
is really a virtualbox issue).
I have two virtual testing machines (virtualbox) to try some things out
with keepalived/vrrp. Bot can ping each other flawlessly (internal
virtualbox network).
VM 1 (MASTER):
eth0: Management
eth1: 192.168.2.1/24
eth2: 192.168.2.2/24
keepalived.conf:
vrrp_instance test {
state MASTER
interface eth1
track_interface {
eth2
}
virtual_router_id 1
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.3.1/24 dev eth1
192.168.3.2/24 dev eth2
}
}
tcpdump on eth1:
12:44:54.720119 IP 192.168.2.1 > vrrp.mcast.net: VRRPv2, Advertisement,
vrid 1, prio 101, authtype simple, intvl 1s, length 24
12:44:55.049465 IP 192.168.2.3 > vrrp.mcast.net: VRRPv2, Advertisement,
vrid 1, prio 100, authtype simple, intvl 1s, length 24
tcpdump on eth2:
12:46:21.082264 IP 192.168.2.1 > vrrp.mcast.net: VRRPv2, Advertisement,
vrid 1, prio 101, authtype simple, intvl 1s, length 24
12:46:21.494239 IP 192.168.2.3 > vrrp.mcast.net: VRRPv2, Advertisement,
vrid 1, prio 100, authtype simple, intvl 1s, length 24
VM 2 (BACKUP):
eth0: Management
eth1: 192.168.2.3/24
eth2: 192.168.2.4/24
keepalived.conf:
vrrp_instance test {
state BACKUP
interface eth1
track_interface {
eth2
}
virtual_router_id 1
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.3.1/24 dev eth1
192.168.3.2/24 dev eth2
}
}
tcpdump on eth1:
12:53:12.265456 IP 192.168.2.1 > vrrp.mcast.net: VRRPv2, Advertisement,
vrid 1, prio 101, authtype simple, intvl 1s, length 24
12:53:12.670635 IP 192.168.2.3 > vrrp.mcast.net: VRRPv2, Advertisement,
vrid 1, prio 100, authtype simple, intvl 1s, length 24
tcpdump on eth2:
12:53:34.397374 IP 192.168.2.1 > vrrp.mcast.net: VRRPv2, Advertisement,
vrid 1, prio 101, authtype simple, intvl 1s, length 24
12:53:34.787327 IP 192.168.2.3 > vrrp.mcast.net: VRRPv2, Advertisement,
vrid 1, prio 100, authtype simple, intvl 1s, length 24
After starting keepalived on VM 2, it transits instantly to the master
state, which shouldnt be.
Why is this happening? Any help is very appreciated!
Regards,
Paul R=FCder
--e89a8fb2017ee9767b04da62473a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>my keepalived configurat=
ion is not working correctly (i don't know if this is really a virtualb=
ox issue).</div><div><br></div><div>I have two virtual testing machines (vi=
rtualbox) to try some things out with keepalived/vrrp. Bot can ping each ot=
her flawlessly (internal virtualbox network).</div>
<div><br></div><div>VM 1 (MASTER):</div><div><br></div><div>=A0 =A0 eth0: M=
anagement</div><div>=A0 =A0 eth1: <a href=3D"http://192.168.2.1/24">192.168=
.2.1/24</a></div><div>=A0 =A0 eth2: <a href=3D"http://192.168.2.2/24">192.1=
68.2.2/24</a></div>
<div><br></div><div>=A0 =A0 keepalived.conf:</div><div><br></div><div>=A0 =
=A0 vrrp_instance test {</div><div>=A0 =A0 state MASTER</div><div>=A0 =A0 i=
nterface eth1</div><div>=A0 =A0 track_interface {</div><div>=A0 =A0 =A0 =A0=
=A0 =A0 eth2</div><div>=A0 =A0 }</div>
<div>=A0 =A0 virtual_router_id 1</div><div>=A0 =A0 priority 101</div><div>=
=A0 =A0 advert_int 1</div><div>=A0 =A0 authentication {</div><div>=A0 =A0 =
=A0 =A0 =A0 =A0 auth_type PASS</div><div>=A0 =A0 =A0 =A0 =A0 =A0 auth_pass =
1111</div><div>=A0 =A0 }</div><div>=A0 =A0 virtual_ipaddress {</div>
<div>=A0 =A0 =A0 =A0 =A0 =A0 <a href=3D"http://192.168.3.1/24">192.168.3.1/=
24</a> dev eth1</div><div>=A0 =A0 =A0 =A0 =A0 =A0 <a href=3D"http://192.168=
.3.2/24">192.168.3.2/24</a> dev eth2</div><div>=A0 =A0 }</div><div>=A0 =A0 =
}</div><div><br></div><div>=A0 =A0 tcpdump on eth1:</div>
<div><br></div><div>=A0 =A0 12:44:54.720119 IP 192.168.2.1 > <a href=3D"=
http://vrrp.mcast.net">vrrp.mcast.net</a>: VRRPv2, Advertisement, vrid 1, p=
rio 101, authtype simple, intvl 1s, length 24</div><div>=A0 =A0 12:44:55.04=
9465 IP 192.168.2.3 > <a href=3D"http://vrrp.mcast.net">vrrp.mcast.net</=
a>: VRRPv2, Advertisement, vrid 1, prio 100, authtype simple, intvl 1s, len=
gth 24</div>
<div><br></div><div>=A0 =A0 tcpdump on eth2:</div><div><br></div><div>=A0 =
=A0 12:46:21.082264 IP 192.168.2.1 > <a href=3D"http://vrrp.mcast.net">v=
rrp.mcast.net</a>: VRRPv2, Advertisement, vrid 1, prio 101, authtype simple=
, intvl 1s, length 24</div>
<div>=A0 =A0 12:46:21.494239 IP 192.168.2.3 > <a href=3D"http://vrrp.mca=
st.net">vrrp.mcast.net</a>: VRRPv2, Advertisement, vrid 1, prio 100, authty=
pe simple, intvl 1s, length 24</div><div><br></div><div><br></div><div>VM 2=
(BACKUP):</div>
<div><br></div><div>=A0 =A0 eth0: Management</div><div>=A0 =A0 eth1: <a hre=
f=3D"http://192.168.2.3/24">192.168.2.3/24</a></div><div>=A0 =A0 eth2: <a h=
ref=3D"http://192.168.2.4/24">192.168.2.4/24</a></div><div><br></div><div>=
=A0 =A0 keepalived.conf:</div>
<div><br></div><div>=A0 =A0 vrrp_instance test {</div><div>=A0 =A0 state BA=
CKUP</div><div>=A0 =A0 interface eth1</div><div>=A0 =A0 track_interface {</=
div><div>=A0 =A0 =A0 =A0 =A0 =A0 eth2</div><div>=A0 =A0 }</div><div>=A0 =A0=
virtual_router_id 1</div><div>=A0 =A0 priority 100</div>
<div>=A0 =A0 advert_int 1</div><div>=A0 =A0 authentication {</div><div>=A0 =
=A0 =A0 =A0 =A0 =A0 auth_type PASS</div><div>=A0 =A0 =A0 =A0 =A0 =A0 auth_p=
ass 1111</div><div>=A0 =A0 }</div><div>=A0 =A0 virtual_ipaddress {</div><di=
v>=A0 =A0 =A0 =A0 =A0 =A0 <a href=3D"http://192.168.3.1/24">192.168.3.1/24<=
/a> dev eth1</div>
<div>=A0 =A0 =A0 =A0 =A0 =A0 <a href=3D"http://192.168.3.2/24">192.168.3.2/=
24</a> dev eth2</div><div>=A0 =A0 }</div><div>=A0 =A0 }</div><div><br></div=
><div>=A0 =A0 tcpdump on eth1:</div><div><br></div><div>=A0 =A0 12:53:12.26=
5456 IP 192.168.2.1 > <a href=3D"http://vrrp.mcast.net">vrrp.mcast.net</=
a>: VRRPv2, Advertisement, vrid 1, prio 101, authtype simple, intvl 1s, len=
gth 24</div>
<div>=A0 =A0 12:53:12.670635 IP 192.168.2.3 > <a href=3D"http://vrrp.mca=
st.net">vrrp.mcast.net</a>: VRRPv2, Advertisement, vrid 1, prio 100, authty=
pe simple, intvl 1s, length 24</div><div><br></div><div>=A0 =A0 tcpdump on =
eth2:</div>
<div><br></div><div>=A0 =A0 12:53:34.397374 IP 192.168.2.1 > <a href=3D"=
http://vrrp.mcast.net">vrrp.mcast.net</a>: VRRPv2, Advertisement, vrid 1, p=
rio 101, authtype simple, intvl 1s, length 24</div><div>=A0 =A0 12:53:34.78=
7327 IP 192.168.2.3 > <a href=3D"http://vrrp.mcast.net">vrrp.mcast.net</=
a>: VRRPv2, Advertisement, vrid 1, prio 100, authtype simple, intvl 1s, len=
gth 24</div>
<div><br></div><div>After starting keepalived on VM 2, it transits instantl=
y to the master state, which shouldnt be.=A0</div><div><br></div><div>Why i=
s this happening? Any help is very appreciated!</div><div><br></div><div st=
yle>
Regards,</div><div style><br></div><div style>Paul R=FCder</div></div>
--e89a8fb2017ee9767b04da62473a--
--===============7395050936643574657==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
--===============7395050936643574657==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Keepalived-announce mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-announce
--===============7395050936643574657==--