Bug 229547 - CARP preempt didn't work
Summary: CARP preempt didn't work
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.2-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-net mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-05 18:39 UTC by nicolas
Modified: 2018-07-05 19:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nicolas 2018-07-05 18:39:31 UTC
Issue:

When using net.inet.carp.preempt: 1, it's expected router1 move back to MASTER state when it's back online and router2 move to BACKUP state when router1 is back online with MASTER state.


router1

CARP settings: advbase 1 advskew 0

# sysctl -a | grep carp
device	carp
net.inet.carp.ifdown_demotion_factor: 240
net.inet.carp.senderr_demotion_factor: 240
net.inet.carp.demotion: 240
net.inet.carp.log: 1
net.inet.carp.preempt: 1
net.inet.carp.allow: 1
net.pfsync.carp_demotion_factor: 240
# 

---

router2

CARP settings: advbase 1 advskew 100

# sysctl -a | grep carp
device	carp
net.inet.carp.ifdown_demotion_factor: 240
net.inet.carp.senderr_demotion_factor: 240
net.inet.carp.demotion: 240
net.inet.carp.log: 1
net.inet.carp.preempt: 0
net.inet.carp.allow: 1
net.pfsync.carp_demotion_factor: 240
# 

---


How reproduce issue:

Shutdown router1, router2 move from BACKUP state to MASTER state.

Start router1

When router1 is back, router1 have BACKUP state and router2 keep MASTER state.