From owner-freebsd-net@FreeBSD.ORG Thu Jun 19 11:06:57 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 F1C9A1065678 for ; Thu, 19 Jun 2008 11:06:57 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from aurynhome1sv1.zirakzigil.org (mail.zirakzigil.org [82.63.178.63]) by mx1.freebsd.org (Postfix) with SMTP id 330AA8FC25 for ; Thu, 19 Jun 2008 11:06:56 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: (qmail 38775 invoked by uid 98); 19 Jun 2008 11:06:55 -0000 Received: from 89.96.52.22 by aurynhome1sv1.zirakzigil.org (envelope-from , uid 89) with qmail-scanner-1.25 ( Clear:RC:0(89.96.52.22):. Processed in 0.039938 secs); 19 Jun 2008 11:06:55 -0000 X-Qmail-Scanner-Mail-From: auryn@zirakzigil.org via aurynhome1sv1.zirakzigil.org X-Qmail-Scanner: 1.25 (Clear:RC:0(89.96.52.22):. Processed in 0.039938 secs) Received: from unknown (HELO aurynmob2.giulioferro.it) (auryn@zirakzigil.org@89.96.52.22) by 0 with SMTP; 19 Jun 2008 11:06:55 -0000 Message-ID: <485A3DC6.2030500@zirakzigil.org> Date: Thu, 19 Jun 2008 13:06:46 +0200 From: Giulio Ferro User-Agent: Thunderbird 2.0.0.5 (X11/20070724) MIME-Version: 1.0 To: Primeroz lists References: <4859877A.3020300@zirakzigil.org> <4859A3A1.6070105@pce-net.com> <485A28ED.9020103@zirakzigil.org> <55b8c6fe0806190330p225ec6d1g65f8424efeab9b41@mail.gmail.com> In-Reply-To: <55b8c6fe0806190330p225ec6d1g65f8424efeab9b41@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, Han Hwei Woo Subject: Re: Problems with vlan + carp + alias 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: Thu, 19 Jun 2008 11:06:58 -0000 Primeroz lists wrote: > Hi , > > I think you should setup ALL the carp address as alias/32 , like this: > > ifconfig_carp10="vhid 10 pass qweq 192.168.10.10 > netmask 255.255.255.255 " > ifconfig_carp10_alias0="192.168.10.11 netmask > 255.255.255.255 " > ... > ifconfig_carp10_aliasN="192.168.10.N netmask 255.255.255.255 > " > > and then please verify your routing table for everythin on 192.168.10 > > netstat -rn | grep 192.168.10 > > What you should have is > > 192.168.10/24 ...... vlan10 > 192.168.10.10 .... carp10 > ... > 192.168.10.N .... carp10 > > this is because the NETWORK range should be routed always through the > parent interface (vlan10 in this case) while all the carp addresses > has to be threated as alias. > > if you check now probably you will find that the 192.168.10/24 is > routed through your carp interface ... and that's wrong. > > Ciao > Francesco > Hi Primeroz, thanks for your answer. I set all the carp interfaces, both base and alias, to the 255.255.255.255 netmask as you suggested. This is my netstat now: ... 192.168.10.0/24 link#11 UC 0 0 vlan10 192.168.10.254 link#11 UHLW 2 0 vlan10 192.168.10.10 192.168.10.10 UH 0 0 carp10 192.168.10.11 192.168.10.11 UH 0 0 carp10 192.168.10.12 192.168.10.12 UH 0 0 carp10 ... As you see, the 192.168.10.0/24 is routed through the vlan10 interface, and this should be correct. As before, I can ping 192.168.10.10, but not 192.168.10.11 and above. Could this be a bug of carp with alias interfaces? Thanks again. Giulio.