CARP under 10.3 - can't "ifconfig down" one or more VHIDs?

Karl Pielorz kpielorz_lst at tdx.co.uk
Fri Sep 22 13:21:12 UTC 2017


Hi,

We've been using CARP for a long time - initially under FreeBSD 9.x.

We're just looking at setting it up on some 10.3 boxes, and have hit a 
snag. Some of the syntax for setting it up has changed, but that's Ok, 
we've read up and got it working.

The issue we've got is if I want to "disable CARP" on one of the 9.x boxes, 
temporarily I can do:

  ifconfig carp0 down
  ifconfig carp1 down
  ifconfig carp2 down


The host's base NIC IP address (i.e. non-vhid) address is left usable, and 
intact - but all the CARP interfaces get set as "INIT" - so they're still 
there, but they're not going to participate in CARP, until you do a 
"ifconfig carpX up" on them.


If I try this under 10.3 - e.g. with a NIC with 3 vhid's setup:

  carp: BACKUP vhid 1 advbase 1 advskew 100
  carp: BACKUP vhid 2 advbase 1 advskew 100
  carp: BACKUP vhid 3 advbase 1 advskew 100

So, I do:

  ifconfig em0 vhid 1 down

And, they *all* go to INIT:

  carp: INIT vhid 1 advbase 1 advskew 100
  carp: INIT vhid 2 advbase 1 advskew 100
  carp: INIT vhid 3 advbase 1 advskew 100

And, worse - em0 is now also down.

Trying to set the 'state' to "INIT" on an individual vhid doesn't work 
either (no error, but it does nothing).

Is there a way under 10.3 to "disable" (i.e. set to INIT) the CARP vhid's - 
without disabling the underlying NIC?

We tend to do this for maintenance where we're taking services down, and 
don't want the host to 'accidentally' pickup stray CARP vhid's from other 
boxes (because there's no service running).

Thanks,

-Karl


More information about the freebsd-net mailing list