Rana Muhammad Waqas
2015-05-12 05:40:04 UTC
I am trying to set up the nginx using the keepalived to make sure the high
availability of nginx, I have this configuration of the keepalived on
Machine 1
! Configuration File for keepalived
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass 123
}
virtual_ipaddress {
192.168.1.132
}
}
Machine 2
! Configuration File for keepalived
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 123
}
virtual_ipaddress {
192.168.1.132
}
}
I have tried different virtual IP like 192.168.1.200 or different subnet
192.168.0.200 which is same on both machines like this tutorial says
<https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html>
but
It seems to have trouble which shows in /var/log/syslog
The system logs are
May 11 16:36:24 pc1-VirtualBox Keepalived_vrrp[4514]:
VRRP_Instance(VI_1) ignoring received advertisment...
May 11 16:36:25 pc1-VirtualBox Keepalived_vrrp[4514]: ip address
associated with VRID not present in received packet : 192.168.1.132
May 11 16:36:25 pc1-VirtualBox Keepalived_vrrp[4514]: one or more VIP
associated with VRID mismatch actual MASTER advert
May 11 16:36:25 pc1-VirtualBox Keepalived_vrrp[4514]: bogus VRRP
packet received on eth0 !!!
May 11 16:36:25 pc1-VirtualBox Keepalived_vrrp[4514]:
VRRP_Instance(VI_1) ignoring received advertisment...
May 11 16:36:26 pc1-VirtualBox Keepalived_vrrp[4514]: ip address
associated with VRID not present in received packet : 192.168.1.132
May 11 16:36:26 pc1-VirtualBox Keepalived_vrrp[4514]: one or more VIP
associated with VRID mismatch actual MASTER advert
May 11 16:36:26 pc1-VirtualBox Keepalived_vrrp[4514]: bogus VRRP
packet received on eth0 !!!
I am not sure what is causing this trouble, did some googling but couldnt
find much
Help!
availability of nginx, I have this configuration of the keepalived on
Machine 1
! Configuration File for keepalived
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass 123
}
virtual_ipaddress {
192.168.1.132
}
}
Machine 2
! Configuration File for keepalived
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 123
}
virtual_ipaddress {
192.168.1.132
}
}
I have tried different virtual IP like 192.168.1.200 or different subnet
192.168.0.200 which is same on both machines like this tutorial says
<https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html>
but
It seems to have trouble which shows in /var/log/syslog
The system logs are
May 11 16:36:24 pc1-VirtualBox Keepalived_vrrp[4514]:
VRRP_Instance(VI_1) ignoring received advertisment...
May 11 16:36:25 pc1-VirtualBox Keepalived_vrrp[4514]: ip address
associated with VRID not present in received packet : 192.168.1.132
May 11 16:36:25 pc1-VirtualBox Keepalived_vrrp[4514]: one or more VIP
associated with VRID mismatch actual MASTER advert
May 11 16:36:25 pc1-VirtualBox Keepalived_vrrp[4514]: bogus VRRP
packet received on eth0 !!!
May 11 16:36:25 pc1-VirtualBox Keepalived_vrrp[4514]:
VRRP_Instance(VI_1) ignoring received advertisment...
May 11 16:36:26 pc1-VirtualBox Keepalived_vrrp[4514]: ip address
associated with VRID not present in received packet : 192.168.1.132
May 11 16:36:26 pc1-VirtualBox Keepalived_vrrp[4514]: one or more VIP
associated with VRID mismatch actual MASTER advert
May 11 16:36:26 pc1-VirtualBox Keepalived_vrrp[4514]: bogus VRRP
packet received on eth0 !!!
I am not sure what is causing this trouble, did some googling but couldnt
find much
Help!