Create CARP interface in state INIT?

Damien Fleuriot ml at my.gd
Thu Aug 15 18:47:43 UTC 2013


On 15 Aug 2013, at 20:33, Karl Pielorz <kpielorz_lst at tdx.co.uk> wrote:

> 
> 
> --On 15 August 2013 17:13:15 +0200 Damien Fleuriot <ml at my.gd> wrote:
> 
>>> Hmmm, I tried that - and it leaves the interface in a 'weird' state (at
>>> least not the state I was expecting):
>>> 
>>> carp0: flags=9<UP,LOOPBACK> metric 0 mtu 1500
>>>      inet 192.168.107.21 netmask 0xffffff00
>>>      nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
>>> 
>>> Subsequently doing a 'ifconfig carp0' doesn't bring it up either :(
> 
>> Running CARP in production from rc.conf fine here.
> 
> Yeah, we have a number of boxes also using it from rc.conf - I'm trying to avoid rc.conf here though - as I need the interfaces to come up as INIT (i.e. not enabled / up) - to avoid any possibility of the box coming up, and 'stealing' MASTER even if the other machine is down... (something which you apparently can't achieve with rc.conf).
> 
>> What version of the OS are you using ?
> 
> 9.2-RC2 on amd64.
> 
> -Karl
> 

Oh I'm sorry I got that the other way around, thought you had it in INIT from rc.conf and wanted to fix that.

As has been pointed out, you prolly want to use rc.local

My apologies for the noise.


More information about the freebsd-net mailing list