同一網斷多套keepalived,vrid沖突問題排查


注意: 同一網段中virtual_router_id的值不能重復,否則會出錯,相關錯誤信息如下。

Keepalived_vrrp[27120]: ip address associated with VRID not present in received packet :
one or more VIP associated with VRID mismatch actual MASTER advert
bogus VRRP packet received on eth1 !!!
receive an invalid ip number count associated with VRID!
VRRP_Instance(xxx) ignoring received advertisment...
問題排查:

通過tcpdump抓包並過濾vrid,可以發現同一個vrid對應的主機,進而判斷是否這些主機隸屬同一個集群

tcpdump -nn -i any net 224.0.0.0/8

如:

[root@CN-DJI-PLB1 ~]# tcpdump -nn -i any net 10.104.15.0/24 |grep vrid
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
13:50:46.778532 IP 10.104.15.33 > 224.0.0.18: VRRPv2, Advertisement, vrid 55, prio 100, authtype simple, intvl 1s, length 20
13:50:47.778735 IP 10.104.15.61 > 224.0.0.18: VRRPv2, Advertisement, vrid 55, prio 95, authtype simple, intvl 1s, length 20
13:50:47.778748 IP 10.104.15.33 > 224.0.0.18: VRRPv2, Advertisement, vrid 55, prio 100, authtype simple, intvl 1s, length 20
13:50:48.778899 IP 10.104.15.63 > 224.0.0.18: VRRPv2, Advertisement, vrid 55, prio 98, authtype simple, intvl 1s, length 20
13:50:49.779096 IP 10.104.15.61 > 224.0.0.18: VRRPv2, Advertisement, vrid 55, prio 95, authtype simple, intvl 1s, length 20
13:50:50.779518 IP 10.104.15.33 > 224.0.0.18: VRRPv2, Advertisement, vrid 55, prio 100, authtype simple, intvl 1s, length 20
13:50:51.779755 IP 10.104.15.33 > 224.0.0.18: VRRPv2, Advertisement, vrid 55, prio 100, authtype simple, intvl 1s, length 20
13:51:01.783737 IP 10.104.15.61 > 224.0.0.18: VRRPv2, Advertisement, vrid 55, prio 95, authtype simple, intvl 1s, length 20
13:51:02.784253 IP 10.104.15.63 > 224.0.0.18: VRRPv2, Advertisement, vrid 55, prio 98, authtype simple, intvl 1s, length 20


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM