运维开发网

keepalived高可用服务VIP访问不了

运维开发网 https://www.qedev.com 2021-04-28 17:18 出处:51CTO 作者:feko大魔王
问题描述:在两台centos7下使用yum安装keepalived服务,配置好/etc/keepalived/keepalived.conf,测试VIP可以在这两台机器上自动跳转,但是本机/所有机器ping不通这个VIP。看keepalived日志没报错,apr-n,route-n也正常。问题解答:查看官网配置解析https://www.keepalived.org/manpage.html#En
  • 问题描述:

    在两台centos7下使用yum安装keepalived服务,配置好/etc/keepalived/keepalived.conf,测试VIP可以在这两台机器上自动跳转,但是本机/所有机器ping不通这个VIP。看keepalived日志没报错,apr -n,route -n也正常。

  • 问题解答:

    查看官网配置解析https://www.keepalived.org/manpage.html

    # Enforce strict VRRP protocol compliance. This will prohibit:
    #   0 VIPs
    #   unicast peers
    #   IPv6 addresses in VRRP version 2 
    #   First IPv6 VIP is not link local
    vrrp_strict

    我本机启动了ipv6网卡地址,需要禁用注释#vrrp_strict这个参数,或者关掉ipv6网卡即可

0

精彩评论

暂无评论...
验证码 换一张
取 消