Date: Mon, 27 Feb 2017 15:37:14 -0800 From: Freddie Cash <fjwcash@gmail.com> To: Julien Cigar <julien@perdition.city> Cc: freebsd-net <freebsd-net@freebsd.org> Subject: Re: VLAN + CARP ? Message-ID: <CAOjFWZ72mVmxw-4q=5dOwUYMcxfeK4qg0ipO79tuTc4wu6vZLA@mail.gmail.com> In-Reply-To: <20170227231626.GJ6194@mordor.lan> References: <20170227231626.GJ6194@mordor.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 27, 2017 at 3:16 PM, Julien Cigar <julien@perdition.city> wrote= : > I wondered if it is possible to use CARP with VLAN interfaces? > =E2=80=8BYes, CARP-over-vLAN works well. Used just such a setup at work fo= r a couple years. Would something like this work (on 10.3)..?: > > =3D /etc/rc.conf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > vlans_em0=3D"neta netb" > create_args_neta=3D"vlan 101" > create_args_netb=3D"vlan 102" > > ifconfig_em0_neta=3D"inet 192.168.1.253/24" > ifconfig_em0_netb=3D"inet 10.209.1.253/24" > > ifconfig_em0_neta_alias0=3D"inet vhid 3 advskew 10 pass xx alias > 192.168.2.254/32" > ifconfig_em0_netb_alias0=3D"inet vhid 4 advskew 10 pass xx alias > 10.209.1.254/32" > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > =E2=80=8BThis is the setup we used (snipped for brevity): # em2 is the 3rd NIC port from the top of the quad-port NIC ifconfig_em2=3D"up" vlans_em2=3D"vlan110 vlan2000 vlan1000 vlan1010 vlan1110" create_args_vlan1000=3D"vlan 1000" ifconfig_vlan1000=3D"vhid 9 pass nxsp4ss =E2=80=8B1=E2=80=8B advskew 128 10.1.0.1/16" create_args_vlan2000=3D"vlan 2000" ifconfig_vlan2000=3D"vhid 20 pass nxsp4ss2 advskew 128 12.24.13.97/27" create_args_vlan1010=3D"vlan 1010" ifconfig_vlan1010=3D"vhid 21 pass nxsp4ss =E2=80=8B3 advskew 128 12.24.12.129/26" create_args_vlan1110=3D"vlan 1110" ifconfig_vlan1110=3D"vhid 11 pass nxsp4ss =E2=80=8B4 advskew 128 12.24.10.1/26" =E2=80=8Bem2 had no IPs associated with it, it was just the physical interf= ace that the vlans and carp traffic went over. We also only had a single subnet per vlan, so only a single IP per carp instance on each vlan. But you can do multiples using the alias syntax like you have.=E2=80=8B --=20 Freddie Cash fjwcash@gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ72mVmxw-4q=5dOwUYMcxfeK4qg0ipO79tuTc4wu6vZLA>