VRRP Help
"Andres E. Rodriguez Lazo" <[email protected]> Mon, 30 Mar 2009 18:15:53 -0500
| Newsgroups | gmane.linux.keepalived.announce |
|---|---|
| Message-ID | <[email protected]> |
--===============0668640321568701482==
Content-Type: multipart/alternative; boundary=0015175cbac2950a4804665e437f
--0015175cbac2950a4804665e437f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Hi All,
I was wondering if anyone can help me with my keepalived configuration.
What I actually want to know is how to configure keepalived to healthchek
over multiple interfaces. For example, I have two interfaces on each node
(2 node config). Both nodes have eth1 and eth2 interfaces. eth1 is a
crossover link between the nodes, and eth2 its for the network. I want to
make keepalived healthcheck with both interfaces so that if eth1 fails... it
won't failover because eth2 link is still up, and the VIP won't have to be
failovered two the BACKUP server. The only case where it should failover is
if both interfaces, eth1 and eth2 go down. Is this possible to do?
My actual configuration is:
vrrp_sync_group VG1 {
group {
VI_1
}
# to MASTER transition
notify_master "/usr/local/bin/change_status master"
# to BACKUP transition
notify_backup "/usr/local/bin/change_status backup"
# FAULT transition
notify_fault "/usr/local/bin/change_status fault"
}
vrrp_instance VI_1 {
state MASTER # (BACKUP for the secondary node)
interface eth1
virtual_router_id 49
priority 99
advert_int 1
authentication {
auth_type PASS
auth_pass 1234
}
virtual_ipaddress {
192.168.10.100/24 brd 192.168.10.255 dev eth2
}
}
If you can see, it will healthcheck only through eth1. How can I make it
healthcheck over eth2 aswell?
Thanks for the help, it will be very much appreciated.
--
Andres E. Rodriguez Lazo (4nDr3s - RoAkSoAx)
Ubuntu Counter Project - User # 17582
--0015175cbac2950a4804665e437f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi All,<br><br>I was wondering if anyone can help me with my keepalived con=
figuration.<br><br>What I actually want to know is how to configure keepali=
ved to healthchek over multiple interfaces.=C2=A0 For example, I have two i=
nterfaces on each node (2 node config). Both nodes have eth1 and eth2 inter=
faces. eth1 is a crossover link between the nodes, and eth2 its for the net=
work. I want to make keepalived healthcheck with both interfaces so that if=
eth1 fails... it won't failover because eth2 link is still up, and the=
VIP won't have to be failovered two the BACKUP server. The only case w=
here it should failover is if both interfaces, eth1 and eth2 go down. Is th=
is possible to do?<br>
<br>My actual configuration is:<br><br>vrrp_sync_group VG1 {<br>=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 group {<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 VI_1<br>=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }<br><br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 # to MASTER transition<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 notify_master "/usr/local/bin/change_status master"<br>
<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # to BACKUP transition<br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 notify_backup "/usr/local/b=
in/change_status backup"<br><br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 # FAULT transition<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 not=
ify_fault "/usr/local/bin/change_status fault"<br>}<br>
<br>vrrp_instance VI_1 {<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 stat=
e MASTER # (BACKUP for the secondary node)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 interface eth1<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 virtual_router_id 49<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 prio=
rity 99<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 advert_int 1<br>=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 authentication {<br>=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
auth_type PASS<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 auth_pass 1234<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 }<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 virtual_ipaddress {<br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 <a href=3D"http://192.168.10.100/24">192.168.10.100/24</a> =
brd 192.168.10.255 dev eth2<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }=
<br>}<br clear=3D"all"><br><br>If you can see, it will healthcheck only thr=
ough eth1. How can I make it healthcheck over eth2 aswell?<br>
<br>Thanks for the help, it will be very much appreciated.<br><br>-- <br>An=
dres E. Rodriguez Lazo (4nDr3s - RoAkSoAx)<br>Ubuntu Counter Project - User=
# 17582<br>
--0015175cbac2950a4804665e437f--
--===============0668640321568701482==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
--===============0668640321568701482==
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
--===============0668640321568701482==--