preempt not working?

Klavs Klavsen kl at vsen.dk
Tue Jul 12 15:06:25 GMT 2005


Hi guys,

Am I misunderstanding the meaning of preempt?

I have a test setup in vmware - and it looks like this:

fw09# ifconfig
lnc0: flags=108943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.11.209 netmask 0xffff0000 broadcast 192.168.255.255
        inet6 fe80::20c:29ff:fe80:e1a7%lnc0 prefixlen 64 scopeid 0x1
        ether 00:0c:29:80:e1:a7
lnc1: flags=108943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.9 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::20c:29ff:fe80:e1b1%lnc1 prefixlen 64 scopeid 0x2
        ether 00:0c:29:80:e1:b1
lnc2: flags=108943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        inet 172.16.1.9 netmask 0xffffff00 broadcast 172.16.1.255
        inet6 fe80::20c:29ff:fe80:e1bb%lnc2 prefixlen 64 scopeid 0x3
        ether 00:0c:29:80:e1:bb
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33208
pfsync0: flags=41<UP,RUNNING> mtu 1348
        pfsync: syncif: lnc2 maxupd: 128
carp0: flags=41<UP,RUNNING> mtu 1500
        inet 192.168.11.208 netmask 0xffffffff
        carp: BACKUP vhid 1 advbase 1 advskew 0
carp1: flags=41<UP,RUNNING> mtu 1500
        inet 10.0.0.1 netmask 0xffffff00
        carp: BACKUP vhid 2 advbase 1 advskew 0
carp2: flags=41<UP,RUNNING> mtu 1500
        inet 172.16.1.8 netmask 0xffffff00
        carp: BACKUP vhid 3 advbase 1 advskew 0
carp3: flags=41<UP,RUNNING> mtu 1500
        inet 192.168.11.210 netmask 0xffffffff
        carp: MASTER vhid 4 advbase 1 advskew 0
fw09# sysctl -a | grep pree | grep -v 118
net.inet.carp.preempt: 1

carp3 is master, because carp3 on the secondary isn't up. As I
understand the preempt flag, that should result in this host taking over
MASTER for all carp interfaces. The other host has an anskew of a 100
(as it is default secondary) - but it still stays MASTER for carp0,1 and
2 :(

-- 
Regards,
Klavs Klavsen, GSEC - kl at vsen.dk - http://www.vsen.dk
PGP: 7E063C62/2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62

"Those who do not understand Unix are condemned to reinvent it, poorly."
  --Henry Spencer


More information about the freebsd-pf mailing list