大数跨境
0
0

解决keepalive脑裂问题,生产环境在用

解决keepalive脑裂问题,生产环境在用 开发运维devops
2025-10-22
3
导读:解决keepalive脑裂问题,教程不易,感觉有帮助的点个关注谢谢。
#防火墙放通vrrpfirewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.12.0/24" protocol value="vrrp" accept"firewall-cmd --reload
#MASTER:192.168.12.77 PS:interface 填网卡名称,unicast_peer 填 backup机器IP地址 auth_pass必需一致vi /etc/keepalived/keepalived.conf
global_defs {    router_id LVS_DEVEL_03}vrrp_instance VI_1 {    state MASTER    interface ens32    virtual_router_id 51    priority 100    advert_int 1
    unicast_src_ip 192.168.12.77    unicast_peer {        192.168.12.78    }
    authentication {        auth_type PASS        auth_pass test1234    }    virtual_ipaddress {        192.168.12.79    }}
systemctl restart keepalived    #重启keepalived
#BACKUP:192.168.12.78 PS:interface 填网卡名称,unicast_peer 填 master机器IP地址 auth_pass必需一致vi /etc/keepalived/keepalived.conf
global_defs {    router_id LVS_DEVEL_04}vrrp_instance VI_1 {    state BACKUP    interface ens32    virtual_router_id 51    priority 80    advert_int 1
    unicast_src_ip 192.168.12.78    unicast_peer {        192.168.12.77    }
    authentication {        auth_type PASS        auth_pass test1234    }    virtual_ipaddress {        192.168.12.79    }}
systemctl restart keepalived    #重启keepalived


【声明】内容源于网络
0
0
开发运维devops
10+老运维,devops相关文档精华。
内容 96
粉丝 0
开发运维devops 10+老运维,devops相关文档精华。
总阅读173
粉丝0
内容96