Date: Wed, 5 Dec 2007 08:22:20 +0100 From: Milan Obuch <freebsd-stable@dino.sk> To: freebsd-stable@freebsd.org Subject: Re: carp + rc.conf issue Message-ID: <200712050822.21965.freebsd-stable@dino.sk> In-Reply-To: <4956a5e50712042051v71b5f01w9f81b931e996a454@mail.gmail.com> References: <4956a5e50712042051v71b5f01w9f81b931e996a454@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712050822.21965.freebsd-stable>