> On 22 Jul 2020, at 22:59, Guy Godfroy <guy.godf...@gugod.fr> wrote:
>
> Hello,
>
> So I read in 6.7 release note that it's finally possible to use dhclient on
> CARP interface. That's great news.
>
> However, I'm not sure how to use it on a hostname.if file. I tried to replace
> inet instruction directly with dhcp:
>
> dhcp vhid 11 carpdev em1 pass xxxx description "test"
>
>
> But that didn't do the trick: at boot time, none of my nodes carp were in
> master state so dhclient didn't manage to get any lease.
>
> So I have first to give a static IP to my carp in order to activate it, and
> only then trigger dhcp:
>
> inet [...] vhid 11 carpdev em1 pass xxxx description "test"
>
> dhcp
>
> It doesn't feel right. Is there a better way to do this?
hostname.if0 lines don't have to all be address configurations. generally
netstart just passes the statements directly to ifconfig.
does something like the following work in hostname.carp0?
description "test"
vhid 11 carpdev em1 pass xxxx
dhcp
dlg