carp interface stops responding

Ken Menzel kenfreebsd at icarz.com
Thu Nov 2 03:09:09 UTC 2006


I am wondering if I am understanding carp interfaces correctly.  I 
have a SPAM gateway that runs on two servers.  I want to enable a 
failover scenario.  I want to test the interface on the backup server. 
So the primary server is shut down.  I enable carp and it starts up 
fine and works for a while but after a while the port stops responding 
to ping or anything else.
Did I miss something in the setup or is this a bug of some sort?
Do I need preempt for a failover?
I assume the backup interface (advskew 100) can start without the 
primary being up yet?

Here are my settings:
net.inet.ip.same_prefix_carp_only: 0
net.inet.carp.allow: 1
net.inet.carp.preempt: 0
net.inet.carp.log: 1
net.inet.carp.arpbalance: 0
net.inet.carp.suppress_preempt: 0
FreeBSD geordi.icarz.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed 
Nov  1 15:13:18 EST 2006 
sysadm at geordi.icarz.com:/usr/obj/usr/src/sys/ICARZ  i386

Server2 (The backup)
ifconfig_fxp0="inet 207.99.22.23  netmask 255.255.255.128"
cloned_interfaces="carp0"
ifconfig_carp0="vhid 4 pass somepassword advskew 100 207.99.22.25/25"

fxp0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 
1500
        options=8<VLAN_MTU>
        inet 207.99.22.23 netmask 0xffffff80 broadcast 207.99.22.127
        ether 00:13:72:c0:0a:b8
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
carp0: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
        inet 207.99.22.25 netmask 0xffffff80
        carp: MASTER vhid 4 advbase 1 advskew 100

Server1 (The primary)  (currently shutdown,  IE the carp is disabled)
ifconfig_fxp0="inet 207.99.22.7  netmask 255.255.255.128"
cloned_interfaces="carp0"
ifconfig_carp0="vhid 4 pass somepassword advskew 0 207.99.22.25/25"

-----------------------------------------------------
Ken Menzel
kmenzel at wrenchead.com
/earth is 98% full ... please delete anyone you can. 



More information about the freebsd-stable mailing list