Create CARP interface in state INIT?
Daniel Hartmeier
daniel at benzedrine.cx
Tue Aug 13 13:35:01 UTC 2013
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
More information about the freebsd-net
mailing list