Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2017 09:54:48 +0100
From:      Julien Cigar <julien@perdition.city>
To:        Freddie Cash <fjwcash@gmail.com>
Cc:        freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: VLAN + CARP ?
Message-ID:  <20170228085447.GK6194@mordor.lan>
In-Reply-To: <CAOjFWZ72mVmxw-4q=5dOwUYMcxfeK4qg0ipO79tuTc4wu6vZLA@mail.gmail.com>
References:  <20170227231626.GJ6194@mordor.lan> <CAOjFWZ72mVmxw-4q=5dOwUYMcxfeK4qg0ipO79tuTc4wu6vZLA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Mon, Feb 27, 2017 at 03:37:14PM -0800, Freddie Cash wrote:
> 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?
> >
> 
> ​Yes, CARP-over-vLAN works well.  Used just such a setup at work for a
> couple years.
> 
> Would something like this work (on 10.3)..?:
> >
> > = /etc/rc.conf ============
> >
> > vlans_em0="neta netb"
> > create_args_neta="vlan 101"
> > create_args_netb="vlan 102"
> >
> > ifconfig_em0_neta="inet 192.168.1.253/24"
> > ifconfig_em0_netb="inet 10.209.1.253/24"
> >
> > ifconfig_em0_neta_alias0="inet vhid 3 advskew 10 pass xx alias
> > 192.168.2.254/32"
> > ifconfig_em0_netb_alias0="inet vhid 4 advskew 10 pass xx alias
> > 10.209.1.254/32"
> >
> > ===========================
> >
> 
> ​This is the setup we used (snipped for brevity):
> 
> # em2 is the 3rd NIC port from the top of the quad-port NIC
> ifconfig_em2="up"
> vlans_em2="vlan110 vlan2000 vlan1000 vlan1010 vlan1110"
> 
> create_args_vlan1000="vlan 1000"
> ifconfig_vlan1000="vhid 9 pass nxsp4ss
> ​1​
> advskew 128 10.1.0.1/16"
> 
> create_args_vlan2000="vlan 2000"
> ifconfig_vlan2000="vhid 20 pass nxsp4ss2 advskew 128 12.24.13.97/27"
> 
> create_args_vlan1010="vlan 1010"
> ifconfig_vlan1010="vhid 21 pass nxsp4ss
> ​3
>  advskew 128 12.24.12.129/26"
> 
> create_args_vlan1110="vlan 1110"
> ifconfig_vlan1110="vhid 11 pass nxsp4ss
> ​4
>  advskew 128 12.24.10.1/26"
> 
> ​em2 had no IPs associated with it, it was just the physical interface 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.​

excellent, this is exactly what I need, thanks!

> 
> -- 
> Freddie Cash
> fjwcash@gmail.com

-- 
Julien Cigar
Belgian Biodiversity Platform (http://www.biodiversity.be)
PGP fingerprint: EEF9 F697 4B68 D275 7B11  6A25 B2BB 3710 A204 23C0
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE7vn2l0to0nV7EWolsrs3EKIEI8AFAli1OtQACgkQsrs3EKIE
I8DoTxAAsPt/6DEPaXy+JevrWCZImudJbhRYyt3hV8pEuGoNpmrKdmgCoD9o71na
k91uBmUQflognd468V/PkqKWmwM7RSr9vC/jiTi2FzRYLZ2EHMRMT+LKDhHRGhYB
aAoSJ+EHjxDPyh3pYfb+w6zlW164tKngyCYL975t+oZu6PvFr00P3bgvZ/c/5g36
1CTALaowUdUIiOLbMd35W9UfEUXBf0NsN9I94J4Yvl5zcD3WAP4DSDUIeCwHkFv6
sMAHwDtMKwLYpj7Nqjk/w6i9i3UMVGmq1/CQwssCveOGDk7/auItRUAoK2jVbHCZ
+lmvH5cx30HrobjL7S0pvg09t/T/OZIC9HOmLZWpO4E2i2CnBxyiGQTaMvKXm3eF
CXDtLuKNZi+iZkvGANrbCXQMXdhF1RlDIu3Y0gUiUs5qN3Ou5F/YOKK/dDIcPtYm
S6KP2Uobjg1DeBzcjrP8tdvwGLHRiqDkEicZvhhtEwkUFLLrmdMvlqNUl0yJTEDY
ykCSMWYHKhf67MIivOA3BvsO/3s1ndq0drbKq3S+qkqTEFae1iO1cX+hNUP0dMuO
9FHQD0D8wGyFQpcFtWc2qm4P9xVPTRr8hTAchlKn44gVdICyMqiZBOfY4l78WouV
eofVHdvOLcHah1iykVBxkBnYG2y2tZwU+TBGy+hFnBLHftZPSLo=
=tBfI
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170228085447.GK6194>