Date: Thu, 11 Sep 2014 10:39:19 -0700 From: Peter Wemm <peter@wemm.org> To: freebsd-stable@freebsd.org Cc: Steven Hartland <killing@multiplay.co.uk> Subject: Re: Using CARP with multiple IP aliases (FBSD 10.0) Message-ID: <2401599.spj3ijL0cc@overcee.wemm.org> In-Reply-To: <7925563B043E419996CD7FEE8C7DFDB6@multiplay.co.uk> References: <CAOjFWZ5_M_d3AStmkUJKk0TgesowJH-jWsKBbvZshwQ278o8ow@mail.gmail.com> <CAOjFWZ7L619Ms=r=G7vPnA9E-5EGc-tQcgf19NbV-bxCU5TJvw@mail.gmail.com> <7925563B043E419996CD7FEE8C7DFDB6@multiplay.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2430500.8OADSZRLu4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On Thursday, September 11, 2014 05:34:57 PM Steven Hartland wrote: > ----- Original Message ----- > From: "Freddie Cash" <fjwcash@gmail.com> > To: "Steven Hartland" <killing@multiplay.co.uk> > Cc: "FreeBSD Stable" <freebsd-stable@freebsd.org> > Sent: Thursday, September 11, 2014 5:24 PM > Subject: Re: Using CARP with multiple IP aliases (FBSD 10.0) >=20 > > On Thu, Sep 11, 2014 at 8:54 AM, Steven Hartland <killing@multiplay= .co.uk> > >=20 > > wrote: > >> I believe you need a seperate vhid per IP assuming you want each t= o fail > >> over > >> to another machine when it goes down e.g. > >> ifconfig igb0 inet 1.2.3.4/24 vhid 30 pass mypass > >> ifconfig igb0 inet 1.2.3.5/32 vhid 31 pass mypass alias > >> ifconfig igb0 inet 1.2.3.6/32 vhid 32 pass mypass alias > >> ifconfig igb0 inet 1.2.3.7/32 vhid 33 pass mypass alias > >=20 > > ifconfig igb0 inet 1.2.3.8/32 vhid 34 pass mypass alias > >=20 > >=20 > > =E2=80=8BThat's what I'm trying to avoid. :) And everything appea= rs to get added > > to the interf> >=20 > > ace correctly: > I can't say I've used it in that way and I'm not sure how carp decide= s how > to fail over when it has multiple IP's available. >=20 > I can confirm you don't need all the params when adding an IP to vhid= . > so you can for example configure the vhid and then add the IP's or do= > as you have done and configure it on the first IP. This is the method we use extensively in the freebsd.org cluster. eg: = the=20 routers have public IP addresses, private RFC1918, IPv6 etc addresses, = all on=20 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=20 group, not individually and that's what we wanted for things like route= r=20 default gateways. =2D-=20 Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI= 6FJV UTF-8: for when a ' or ... just won\342\200\231t do\342\200\246 --nextPart2430500.8OADSZRLu4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABAgAGBQJUEd5LAAoJEDXWlwnsgJ4EdIsIAL8a6qOpAosw6YoI0brMN2vU /ymChZSw7NGRYk/PunMAQwCKBGZSQlMImX44l8r5ST0D0I//nFyFi0fA9zCfK0P7 s46IMRuGC4Pd3Mvo4XrLAxxWBwHBqR8QrgNV+WlBxbLoDJ5rlN1VWA9pzVUuUmwD DSijMDO+MppGzX2cLq01082Hg7mAL3VNsSbEZJePALlqEFw15yqyYBImyvm9vEHc F8RIbl7GcmI617/Zxe+nb/OdnymZAJruW2JEXxN+xJvWkhAG6UzoC6RXgFRHq9ZG +vvULVn+rVg0jkTVUNYdhMc6sIEwNJgCJFEsWDXSHmxQXcmxQgycMPXJPPy8T1s= =ybvm -----END PGP SIGNATURE----- --nextPart2430500.8OADSZRLu4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2401599.spj3ijL0cc>