Date: Tue, 13 Aug 2013 15:34:58 +0200 From: Daniel Hartmeier <daniel@benzedrine.cx> To: Karl Pielorz <kpielorz_lst@tdx.co.uk> Cc: freebsd-net@FreeBSD.org Subject: Re: Create CARP interface in state INIT? Message-ID: <20130813133458.GA31184@insomnia.benzedrine.cx> In-Reply-To: <E39649AA101CBB2533571741@Mail-PC.tdx.co.uk> References: <E39649AA101CBB2533571741@Mail-PC.tdx.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 08, 2013 at 01:11:58PM +0100, Karl Pielorz wrote: > Is there any way from rc.conf of creating a carp interface in the > 'down' state - i.e. INIT? I think any interface configured with ifconfig_* in rc.conf will cause an explicit additional "ifconfig up" call from /etc/network.subr. Furthermore, ifconfig itself will add "up" when setting the IP address. So, don't configure the carp interface in rc.conf, but do it in /etc/rc.local, and be careful to add the address while the vhid is not yet configured, as in: ifconfig carp0 create ifconfig carp0 inet 192.168.107.21 ifconfig carp0 down ifconfig carp0 vhid 21 pass secret advskew 100 HTH, Daniel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130813133458.GA31184>