【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
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

 

posted @ 2022-01-05 09:41  paul_hch  阅读(1472)  评论(0编辑  收藏  举报