zoukankan      html  css  js  c++  java
  • 【keepalived】关于keepalived配置中的 mcast_src_ip 和 unicast_src_ip【转】

    keepalived官网解释

               # default IP for binding vrrpd is the primary IP
               # on interface. If you want to hide the location of vrrpd,
               # use this IP as src_addr for multicast or unicast vrrp
               # packets. (since it's multicast, vrrpd will get the reply
               # packet no matter what src_addr is used).
               # optional
               mcast_src_ip <IPADDR>
               unicast_src_ip <IPADDR>

    如果两节点的上联交换机允许组播,采用组播模式(默认)

    mcast_src_ip    发送多播包的地址,如果不设置默认使用绑定网卡的primary ip

     

    如果两节点的上联交换机禁用了组播,则只能采用vrrp单播通告的方式

    ###########################

    unicast_src_ip  xx.xx.xx.xx

    unicast_peer {

        xx.xx.xx.xx

     }

    #############################

     

     

    关于keepalived监测脚本的WARNING:

    Unsafe permissions found for script '/etc/keepalived/check_mysql.sh'.

    SECURITY VIOLATION - scripts are being executed but script_security not enabled. There are insecure scripts.

     
     

    Keepalived两节点出现双VIP的情况

    https://www.cnblogs.com/netonline/archive/2017/10/09/7642595.html

    keepalived 配置文件参数详解

    https://blog.csdn.net/mofiu/article/details/76644012

    https://www.cnblogs.com/along1226/p/5027838.html

    MySQL共享存储主备模式利用Keepalived实现双机高可用

    http://blog.51cto.com/7424593/1893767

    keepalived  Unsafe permissions found for script

    http://old.gebiji.com/2016/12/21/ka-warning-default-user/

    How do I enable: script_security?

    https://github.com/acassen/keepalived/issues/901

    Keepalived+Nginx架构整理版

    https://linuxeye.com/448.html

    LVS的原理介绍

    https://www.cnblogs.com/along1226/p/5014363.html


    转自
    作者:Bogon
    链接:https://www.jianshu.com/p/7c709c3be4a9
    来源:简书
    著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
  • 相关阅读:
    [C#] 多线程总结(结合进度条)
    [Winform] DataGridView 中 DataGridViewComboBox 的可编辑
    [Tool] 仿博客园插入代码的 WLW 插件
    [C#] 获取打印机列表
    [Access] C# 通过 COM 组件访问 Access 文件
    [Excel] 打印设置
    [Q&A] 应用程序清单生成失败
    [Excel] Worksheet.PasteSpecial
    canvas裁剪图片,纯前端
    javascript将base64编码的图片数据转换为file并提交
  • 原文地址:https://www.cnblogs.com/paul8339/p/15765517.html
Copyright © 2011-2022 走看看