From owner-freebsd-net@FreeBSD.ORG Fri May 30 10:18:41 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A4051065673 for ; Fri, 30 May 2008 10:18:41 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by mx1.freebsd.org (Postfix) with ESMTP id 43B238FC0A for ; Fri, 30 May 2008 10:18:41 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so4591272rvf.43 for ; Fri, 30 May 2008 03:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=5m9dYheGI7Ju1h/xwwisQKeGrTTXdsgfGXGXA1o8t7A=; b=YRAOGd4Dfgfbqg4XVpOoIHcm5PuL9fcoaaSs3rrjZ2QyLkCwd5VACnxiYqNWFOf6pcFTIlm6GXqRI4t3KXX3Bqlr10bm6QwNDzSU1G6Ve6OytwbLfEyWwd5FpDZxKlvACjaJQGtbLDz7riW61QaY0swdSfZHNSGE2UXU3ckrLAs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=KgITlxeK7iAe9QVyjG0pmpwDOi6JS7mFfrZ0fHapCqNhX6lQUOLotlEbjZnTfnGWsGr6hbWdq0/NDDkOiqaIRw1wanEDbzQS8mlbhTohjfvfT/CrW04pAJIu2BevsSqkXirhhQI+Ib9sSZOle2iFj3FZ9TYU/DTs9swoW3HH2W8= Received: by 10.140.127.13 with SMTP id z13mr2899949rvc.142.1212142720771; Fri, 30 May 2008 03:18:40 -0700 (PDT) Received: by 10.140.207.1 with HTTP; Fri, 30 May 2008 03:18:40 -0700 (PDT) Message-ID: <2e77fc10805300318t1924fbf4t8d171b801bfd8a26@mail.gmail.com> Date: Fri, 30 May 2008 13:18:40 +0300 From: "Niki Denev" Sender: ndenev@gmail.com To: Rudy In-Reply-To: <483FD1B6.3010602@monkeybrains.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <483FCC95.5060401@monkeybrains.net> <2e77fc10805300258t313e62e2p2c8ffd5e97959f85@mail.gmail.com> <483FD1B6.3010602@monkeybrains.net> X-Google-Sender-Auth: 392d6ac03dae5cf2 Cc: freebsd-net@freebsd.org Subject: Re: carp and vlan at the same time? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2008 10:18:41 -0000 On Fri, May 30, 2008 at 1:06 PM, Rudy wrote: > Niki Denev wrote: >> >> I'm currently using carp over VLANs over lagg and if works without >> problems. >> So I think you should have no problems running carp over vlan interfaces. > > Could you send me a sample configuration or point me to a resource that > covers carp over vlans? > > I'm interested in setting up a lagg as well... can you have your lagg > devices (em0 and em1 for instance) plug into different cisco switches and > then have those switches connected together? > > Thanks for you help! > Rudy > > > There is nothing special about carp over vlans, and something like this should work : cloned_interfaces="lagg0 vlan2 carp2" ifconfig_em0="up" ifconfig_em1="up" ifconfig_lagg0="laggport em0 laggport em1 laggproto failover up" ifconfig_vlan2="vlan 2 vlandev lagg0" ipv4_addrs_vlan2="192.168.0.2/24" ifconfig_carp2="vhid 1 pass PASS advskew 0 192.168.0.1/24 up" About using lagg to two different switches. Yes, you can do that, and this is the way I use it, but note that in this setup you must use "proto failover". lacp/load-balancing modes won't work. Also note that when using vlans over lagg you must NOT use the ifX.vlanY interface name style because of the problem that i mentioned here, in this thread : http://lists.freebsd.org/pipermail/freebsd-net/2008-May/018126.html P.S.: I'm including the list in my reply. Regards, Niki