【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
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· 2 本地部署DeepSeek模型构建本地知识库+联网搜索详细步骤
2018-01-05 MySQL用户密码过期登陆报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.