Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jul 2005 15:01:13 -0400
From:      Chris McGee <chris@xecu.net>
To:        freebsd-questions@freebsd.org
Subject:   Carp won't become master
Message-ID:  <7614224e37b910c674ddc809baa8135e@xecu.net>

next in thread | raw e-mail | index | archive | help
I have 2 machines in a test environment, the carp0 interface on the 
machines will not become master.  The config is as follows:

test1# ifconfig
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
         options=b<RXCSUM,TXCSUM,VLAN_MTU>
         inet 192.168.1.252 netmask 0xffffff00 broadcast 192.168.1.255
         inet6 fe80::230:48ff:fe82:a77c%em0 prefixlen 64 scopeid 0x1
         ether 00:30:48:82:a7:7c
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
         options=b<RXCSUM,TXCSUM,VLAN_MTU>
         inet 10.10.10.2 netmask 0xfffffff8 broadcast 10.10.10.7
         inet6 fe80::230:48ff:fe82:a77d%em1 prefixlen 64 scopeid 0x2
         ether 00:30:48:82:a7:7d
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
carp0: flags=41<UP,RUNNING> mtu 1500
         inet 192.168.1.10 netmask 0xffffff00
         carp: BACKUP vhid 1 advbase 1 advskew 0
carp1: flags=41<UP,RUNNING> mtu 1500
         inet 10.10.10.1 netmask 0xfffffff8
         carp: MASTER vhid 2 advbase 1 advskew 0

em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
         options=b<RXCSUM,TXCSUM,VLAN_MTU>
         inet 192.168.1.253 netmask 0xffffff00 broadcast 192.168.1.255
         inet6 fe80::230:48ff:fe80:21bc%em0 prefixlen 64 scopeid 0x1
         ether 00:30:48:80:21:bc
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
         options=b<RXCSUM,TXCSUM,VLAN_MTU>
         inet 10.10.10.3 netmask 0xfffffff8 broadcast 10.10.10.7
         inet6 fe80::230:48ff:fe80:21bd%em1 prefixlen 64 scopeid 0x2
         ether 00:30:48:80:21:bd
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
carp0: flags=41<UP,RUNNING> mtu 1500
         inet 192.168.1.10 netmask 0xffffff00
         carp: BACKUP vhid 1 advbase 1 advskew 100
carp1: flags=41<UP,RUNNING> mtu 1500
         inet 10.10.10.1 netmask 0xfffffff8
         carp: BACKUP vhid 2 advbase 1 advskew 100

both test1 and test2 have these sysctl variables:
net.inet.carp.allow: 1
net.inet.carp.preempt: 1
net.inet.carp.log: 1
net.inet.carp.arpbalance: 0

The carp1 interface seems to operate properly.  I can't get either box 
to become master for 192.168.1.10

If I do a tcpdump on the em0 interface on the boxes, I see multicast 
traffic out on em0 on test1 and I see multicast traffic from test1 on 
em0 of test2.  The only firewall rules are pass in all and pass out 
all.

On test1(should be the master):
 > netstat -ssp carp
carp:
        40572 packets received (IPv4)
                326 discarded for bad vhid
        160550 packets sent (IPv4)

On test2(the backup);
 > netstat -ssp carp
carp:
        134298 packets received (IPv4)

I'm hoping someone out here can help because this is driving me crazy 
and I can not even think about this for a production environment if I 
can't get it working in very simple test setup.

Thanks,
Chris




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7614224e37b910c674ddc809baa8135e>