Hello,
I had write some thread about CARP config (https://forums.freebsd.org/threads/58270/)
but now I little change config, so create new thread.
Host A /etc/rc.config (network):
Host A - all CARP var from systemctl
Host B /etc/rc.config (network):
Host B - all CARP var from systemctl
Unfortunately - when restart host A or B, IP automatically change host...
logs from Host A (when rebooted):
Logs from host B
Why host B back IP to host A after reboot, preempt is disabled?
sorry, but WTF!!!
I had write some thread about CARP config (https://forums.freebsd.org/threads/58270/)
but now I little change config, so create new thread.
Host A /etc/rc.config (network):
Code:
#LAGG0 (for jails)
ifconfig_bce0="up"
ifconfig_em0="up"
ifconfig_lagg0="up laggproto lacp laggport bce0 laggport em0 10.10.1.101/24"
#LAGG0
ifconfig_lagg0_aliases="\
inet vhid 1 advskew 0 pass 0hqFZ6UnHuB alias 10.10.1.111/32 \
inet vhid 2 advskew 100 pass 1hqFZ6UnHuB alias 10.10.1.112/32"
Code:
net.inet.carp.allow: 1
net.inet.carp.preempt: 0
net.inet.carp.log: 1
net.inet.carp.demotion: 480
net.inet.carp.ifdown_demotion_factor: 240
net.inet.carp.senderr_demotion_factor: 240
Host B /etc/rc.config (network):
Code:
# LAGG0
ifconfig_bce0="up"
ifconfig_igb0="up"
ifconfig_lagg0="up laggproto lacp laggport bce0 laggport igb0 10.10.1.102/24"
# END LAGG0
ifconfig_lagg0_aliases="\
inet vhid 1 advskew 100 pass 0hqFZ6UnHuB alias 10.10.1.111/32 \
inet vhid 2 advskew 0 pass 1hqFZ6UnHuB alias 10.10.1.112/32"
Code:
net.inet.carp.allow: 1
net.inet.carp.preempt: 0
net.inet.carp.log: 1
net.inet.carp.demotion: 480
net.inet.carp.ifdown_demotion_factor: 240
net.inet.carp.senderr_demotion_factor: 240
logs from Host A (when rebooted):
Code:
Jan 13 14:37:01 opio1 kernel: [19] carp: demoted by 240 to 240 (send error 50 on lagg0)
Jan 13 14:37:01 opio1 kernel: [19] carp: demoted by 240 to 480 (send error 50 on lagg0)
Jan 13 14:37:26 opio1 kernel: [44] carp: 2@lagg0: MASTER -> BACKUP (more frequent advertisement received)
Jan 13 14:37:26 opio1 kernel: [44] ifa_maintain_loopback_route: deletion failed for interface lagg0: 3
Logs from host B
Code:
an 13 14:34:09 opio2 kernel: [112] carp: 2@lagg0: BACKUP -> MASTER (master timed out)
Jan 13 14:34:09 opio2 kernel: [113] carp: 1@lagg0: BACKUP -> MASTER (master timed out)
Jan 13 14:37:26 opio2 kernel: [309] carp: 1@lagg0: MASTER -> BACKUP (more frequent advertisement received)
Jan 13 14:37:26 opio2 kernel: [309] ifa_maintain_loopback_route: deletion failed for interface lagg0: 3
Why host B back IP to host A after reboot, preempt is disabled?
sorry, but WTF!!!