Article 5GH9Z How to launch a Keepalived server?

How to launch a Keepalived server?

by
n00b_noob
from LinuxQuestions.org on (#5GH9Z)
Hello,
I used https://tecadmin.net/ip-failover-set...centos-redhat/ tutorial to configure Keepalived on two CentOS web servers:

Server 1: 192.168.56.7
Server 2: 192.168.56.9
Virtual IP: 192.168.56.110

And after it, I added below Firewalld rule:
Code:# firewall-cmd --add-rich-rule='rule protocol value="vrrp" accept' --permanent
# firewall-cmd --reload
#
# firewall-cmd --list-all
FedoraServer (active)
target: default
icmp-block-inversion: no
interfaces: enp0s3 enp0s8
sources:
services: dhcpv6-client http ssh
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
rule protocol value="vrrp" acceptBut I can't ping my Virtual IP address:
Code:# ping 192.168.56.110
PING 192.168.56.110 (192.168.56.110) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permittedAnd cURL doesn't show anything too:
Code:# curl -l 192.168.56.110I used "ip addr show NIC" command and Virtual IP address is assigned to my NIC:
Code:# ip addr show enp0s3
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:2b:47:38 brd ff:ff:ff:ff:ff:ff
inet 192.168.56.7/24 brd 192.168.56.255 scope global dynamic noprefixroute enp0s3
valid_lft 536sec preferred_lft 536sec
inet 192.168.56.110/32 scope global enp0s3
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe2b:4738/64 scope link noprefixroute
valid_lft forever preferred_lft foreverBut why it doesn't work? Which log files should be examined?

Thank you.latest?d=yIl2AUoC8zA latest?i=HINoHg3zrO4:iYxA6id794U:F7zBnMy latest?i=HINoHg3zrO4:iYxA6id794U:V_sGLiP latest?d=qj6IDK7rITs latest?i=HINoHg3zrO4:iYxA6id794U:gIN9vFwHINoHg3zrO4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments