Hi,
I need a favor, i have setup 2 node cluster using keepalived, i am not able to reach Virtual IP from different subnet.
My conf file is as follows:
! Configuration File for keepalived
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
172.19.9.209 brd 172.19.9.255 dev eth0
}
}
My sysctl has following lines:
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 4294967295
kernel.shmall = 268435456
vm.overcommit_memory = 2
vm.overcommit_ratio = 80
net.ipv4.conf.lo.arp_ignore = 1
net.ipv4.conf.lo.arp_announce = 2
net.ipv4.conf.eth0.arp_ignore = 1
net.ipv4.conf.eth0.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
I have two setups one with VM and aonther with non VM. In Vm i am not able to reach the virtual ip at all.
But in the case of non VM virtual ip is reachable for sometime, after that i am not able to reach.
i am using latest keepalived(1.2.16) package.
Thanks a lot.
Looks like ARP request is coming to the Master node, but master is not responding to the APR request.
when i sent arping -U 172.19.9.210 -I eth0, virtual ip is reachable.
ip addr list:
-bash-3.2# ip addr list eth0
6: eth0: <broadcast,multicast,notrailers,up,lower_up> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0c:29:d7:f7:80 brd ff:ff:ff:ff:ff:ff
inet 172.19.9.48/24 brd 172.19.9.255 scope global eth0
inet 172.18.198.209/32 scope global eth0
inet 172.19.9.209/32 brd 172.19.9.255 scope global eth0
inet6 fe80::20c:29ff:fed7:f780/64 scope link
valid_lft forever preferred_lft forever
-bash-3.2#</broadcast,multicast,notrailers,up,lower_up>