Keepalived virtual router id冲突问题 bogus VRRP packet received one or more VIP associated with VRID mismatch actual

来自linux中国网wiki
跳转至: 导航搜索

keepalived 配置完获取不到vip

查看log 如下

[root@localhost keepalived]# tail  /var/log/keepalived.log 
Jul 13 22:00:44 localhost Keepalived_vrrp[30389]: ip address associated with VRID not present in received packet : 192.168.30.200
Jul 13 22:00:44 localhost Keepalived_vrrp[30389]: one or more VIP associated with VRID mismatch actual MASTER advert
Jul 13 22:00:44 localhost Keepalived_vrrp[30389]: bogus VRRP packet received on eth0 !!!
Jul 13 22:00:44 localhost Keepalived_vrrp[30389]: VRRP_Instance(HA_1) ignoring received advertisment...

搞了两天 一开始换上默认的配置就好了 还以为我自己写的配置有错呢 还想一行行对比呢

今天一来 就打开了keepalived 日志

Centos7配置rsyslog并为keepalived设置日志

拿到如上的log google一下看到了一个 virtual_router_id冲突问题

同一集群的keepalived的主、备机的virtual_router_id 必须相同,取值0-255 但是同一内网中不应有相同virtual_router_id的集群 突然想起我前几天也搞了个keepalived 也是用了 virtual_router_id 80 改为88搞定