Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2011 16:25:57 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: carp(4) on FreeBSD 8.2
Message-ID:  <20111214092557.GB38586@admin.sibptus.tomsk.ru>
In-Reply-To: <4EE857D3.2060504@gmail.com>
References:  <20111214050959.GA34547@admin.sibptus.tomsk.ru> <4EE857D3.2060504@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Johan Hendriks wrote:
> >
> > Are there any success stories or known issues with carp(4) on FreeBSD
> > 8.2? I have configured a carp interface:

[dd]
> > But for some reason I can ping 10.14.135.88, but cannot ping
> > 10.14.134.99. There seem to be ARP responses however:

[dd]

> > What am I doing wrong?
> Can you show your relevant rc.conf settings.

What settings are relevant? I really did not use rc.conf to configure
carp. I just did manually

ifconfig carp0 create
ifconfig carp0 vhid 1 pass XXXXXXXXX 10.14.134.99/23

and the same on the other host.
 
> For both master and slave machine, also the relevant sysctl.conf 
> settings could help.

sysctl.conf is really empty, these are just vanilla boxes in a lab.

router1# sysctl -a | grep carp
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
router1# ipfw list
65535 allow ip from any to any


Well, _almost_ vanilla boxes. They have custom kernels:

include GENERIC

ident FW

device		carp
device		lagg

options 	IPFIREWALL		#firewall
options 	IPFIREWALL_VERBOSE	#enable logging to syslogd(8)
options 	IPFIREWALL_VERBOSE_LIMIT=100	#limit verbosity
options 	IPFIREWALL_DEFAULT_TO_ACCEPT	#allow everything by default
options 	IPDIVERT		#divert sockets
options 	IPFIREWALL_FORWARD	#packet destination changes
options 	IPFIREWALL_NAT		#ipfw kernel nat support
options 	LIBALIAS
options 	QUOTA			#enable disk quotas
options         ROUTETABLES=4

# $Header: svn://big/configs/kernels/trunk/FW 2967 2011-12-13 10:08:29Z sudakov $

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov@sibptus.tomsk.ru



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