首页 > 编程知识 正文

centos7dhcp服务器配置,lvs和keepalived区别

时间:2023-05-06 19:59:54 阅读:129402 作者:3744

Centos7-keepalived配置防火墙:症状:主备份节点同时绑定VIP时无法切换。 查看防火墙d的状态:查看防火墙d的状态

系统状态防火墙d启动防火墙d

关闭systemctlstartfirewalldfirewall

如何配置系统停止防火墙d :配置前必须启动防火墙服务

系统开始防火墙d使用防火墙配置

firewall-cmd-- add-rich-rule=' ruleprotocolvalue=' vrrp ' accept '-- permanent firewall-cmd-- reload是可兼容的

iptables-I输入- p vrrp-jacceptiptables-save/etc/sys config/iptablessystemctlrestartiptables参考文档https://acess

firewallrequirementsifyouarerunningafirewall (bymeansoffirewalldoriptables )、 youmustallowvrrptraffictopassbetweenthekeepalivednodes.toconfigurethefirewalltoallowthevrrptrafficwithfirewalld, runthefollowingcommands 3360 #防火墙- cmd-- add-rich-rule=' ruleprotocolvalue=' vrrp ' accept '-permanent # firewall-cmd---- reloadifthezoneisomittedthedefaultzonewillbeused.if,however, youneedtoallowthevrrptrafficwithiptables runthefollowingcommands 3360 # iptables-I输入- p vrrp-j接受# iptables-save /

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。