Date: Fri, 12 Sep 2014 07:33:39 -0700 From: Freddie Cash <fjwcash@gmail.com> To: Peter Wemm <peter@wemm.org> Cc: Steven Hartland <killing@multiplay.co.uk>, FreeBSD Stable <freebsd-stable@freebsd.org> Subject: Re: Using CARP with multiple IP aliases (FBSD 10.0) Message-ID: <CAOjFWZ5K-mQL=DgdZdniU%2BnOzzRQXhniEgUATQF7WizdKooVSg@mail.gmail.com> In-Reply-To: <CAOjFWZ5VnuwdTP_r3QXV-%2BpX05iq_p63%2BnJ5dXDqkNWTja2iaQ@mail.gmail.com> References: <CAOjFWZ5_M_d3AStmkUJKk0TgesowJH-jWsKBbvZshwQ278o8ow@mail.gmail.com> <CAOjFWZ7L619Ms=r=G7vPnA9E-5EGc-tQcgf19NbV-bxCU5TJvw@mail.gmail.com> <7925563B043E419996CD7FEE8C7DFDB6@multiplay.co.uk> <2401599.spj3ijL0cc@overcee.wemm.org> <CAOjFWZ5VnuwdTP_r3QXV-%2BpX05iq_p63%2BnJ5dXDqkNWTja2iaQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 11, 2014 at 11:04 AM, Freddie Cash <fjwcash@gmail.com> wrote: > On Thu, Sep 11, 2014 at 10:39 AM, Peter Wemm <peter@wemm.org> wrote: > >> This is the method we use extensively in the freebsd.org cluster. eg: >> the >> routers have public IP addresses, private RFC1918, IPv6 etc addresses, >> all on >> the same vhid for each interface. >> >> * One vhid presence, with multiple aliases on the same vhid. >> * Configure vhid params once, aliases attached without params. >> >> carp state checking uses link local addresses to communicate. >> >> Having multiple IP's per vhid means they change master->backup state as = a >> group, not individually and that's what we wanted for things like router >> default gateways. >> > > =E2=80=8BExcellent. Thanks for the confirmation. > > =E2=80=8BI'll be testing the updated configuration tomorrow morning (set = all vhid > params in rc.conf.local, and only set vhid number in firewall scripts whe= n > adding IPs). > =E2=80=8B > =E2=80=8BEverything is working correctly now. :) /etc/rc.conf.local configures all the carp-related options. And the firewall scripts now only set the vhid when adding the IP to the interface, nothing else. Seems I also had a typo in one of my scripts that wasn't adding one of the IPs to the vhid on sys2, so the IP list on both systems wasn't identical, which could also be part of the reason they were both MASTER at the same time.=E2=80=8B Now, igb0 on each system is showing the correct CARP status (MASTER on sys1, BACKUP on sys2). And, downing any of the 4 interfaces on sys1 correctly sets all interfaces on sys2 to MASTER. Thanks for all the help, and for pointing me in the right direction. :D --=20 Freddie Cash fjwcash@gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ5K-mQL=DgdZdniU%2BnOzzRQXhniEgUATQF7WizdKooVSg>