From owner-freebsd-stable@FreeBSD.ORG Wed Dec 5 07:23:05 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D3C916A473 for ; Wed, 5 Dec 2007 07:23:05 +0000 (UTC) (envelope-from freebsd-stable@dino.sk) Received: from loki.netlab.sk (ns1.netlab.sk [84.245.65.2]) by mx1.freebsd.org (Postfix) with ESMTP id 0E21C13C4F2 for ; Wed, 5 Dec 2007 07:23:04 +0000 (UTC) (envelope-from freebsd-stable@dino.sk) Received: from lex.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Wed, 05 Dec 2007 08:21:48 +0100 id 0002E027.4756518C.00017037 From: Milan Obuch To: freebsd-stable@freebsd.org Date: Wed, 5 Dec 2007 08:22:20 +0100 User-Agent: KMail/1.9.6 References: <4956a5e50712042051v71b5f01w9f81b931e996a454@mail.gmail.com> In-Reply-To: <4956a5e50712042051v71b5f01w9f81b931e996a454@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712050822.21965.freebsd-stable@dino.sk> Subject: Re: carp + rc.conf issue X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2007 07:23:05 -0000 On Wednesday 05 December 2007 05:51:47 Nenhum_de_Nos wrote: > hail, > > I am running 6.3-RC1 just recompiled to support CARP. the issue is > that I have two carp if, and just the second to appear in rc.conf gets > born in boot. > > I had to do this: > > cloned_interfaces="carp1" > ifconfig_carp1="vhid 2 192.168.254.81 advskew 100" > cloned_interfaces="carp0" > ifconfig_carp0="vhid 1 192.168.253.81 advskew 100" > cloned_interfaces="carp1" > ifconfig_carp1="vhid 2 192.168.254.81 advskew 100" > > so it creates both. > > matheus You should use cloned_interfaces="carp0 carp1" In your config everything before final cloned_interfaces= line gets forgotten. rc.conf is evaluated line by line, sourced in various scripts. Generally, you should not use more than one line with the same 'key' (variable name) in rc.conf, unless you are specifically utilize mentioned feature. I did it couple of time when I wanted note new configuration but not yet activate it... but you can achieve the same using '#' comments. Regards, Milan -- No need to mail me directly. Just reply to mailing list, please.