carp + rc.conf issue

Milan Obuch freebsd-stable at dino.sk
Tue Dec 4 23:23:05 PST 2007


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.


More information about the freebsd-stable mailing list