From owner-freebsd-net@FreeBSD.ORG Thu Jun 19 00:24:59 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 0243C106594D for ; Thu, 19 Jun 2008 00:24:59 +0000 (UTC) (envelope-from hhw@pce-net.com) Received: from defout.telus.net (defout.telus.net [204.209.205.55]) by mx1.freebsd.org (Postfix) with ESMTP id B0A9E8FC12 for ; Thu, 19 Jun 2008 00:24:58 +0000 (UTC) (envelope-from hhw@pce-net.com) Received: from priv-edtnaa04.telusplanet.net ([154.5.184.6]) by priv-edtnes90.telusplanet.net (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20080619000910.SQXN2104.priv-edtnes90.telusplanet.net@priv-edtnaa04.telusplanet.net>; Wed, 18 Jun 2008 18:09:10 -0600 Received: from [192.168.3.9] (d154-5-184-6.bchsia.telus.net [154.5.184.6]) by priv-edtnaa04.telusplanet.net (BorderWare MXtreme Infinity Mail Firewall) with ESMTP id 63N2CFAPHB; Wed, 18 Jun 2008 18:09:09 -0600 (MDT) Message-ID: <4859A3A1.6070105@pce-net.com> Date: Wed, 18 Jun 2008 17:09:05 -0700 From: Han Hwei Woo User-Agent: Thunderbird 2.0.0.12 (X11/20080405) MIME-Version: 1.0 To: Giulio Ferro References: <4859877A.3020300@zirakzigil.org> In-Reply-To: <4859877A.3020300@zirakzigil.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org 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 00:24:59 -0000 Hi Giulio, Since the IP's are on the same subnet, you should try using a netmask of 255.255.255.255 on the aliases. Cheers, Han Hwei Woo Giulio Ferro wrote: > Scenario : freebsd 7.0 stable amd64 (compiled today), bce network > interface > > Simply put, I'm trying to create multiple aliases on the same carp > interface. > I did this without vlans (on physical interfaces) and it always worked. > > Here's what I do: > > ---rc.conf > ... > ifconfig_bce0="inet 192.168.1.1 netmask 255.255.255.0" > ifconfig_vlan10="inet 192.168.10.1 netmask 255.255.255.0 vlan 10 > vlandev bce0" > > ifconfig_carp10="vhid 10 pass qweq 192.168.10.10 netmask 255.255.255.0" > ifconfig_carp10_alias0="192.168.10.11 netmask 255.255.255.0" > ifconfig_carp10_alias1="192.168.10.12 netmask 255.255.255.0" > ifconfig_carp10_alias2="192.168.10.13 netmask 255.255.255.0" > ifconfig_carp10_alias3="192.168.10.14 netmask 255.255.255.0" > ifconfig_carp10_alias4="192.168.10.15 netmask 255.255.255.0" > ifconfig_carp10_alias5="192.168.10.16 netmask 255.255.255.0" > ifconfig_carp10_alias6="192.168.10.17 netmask 255.255.255.0" > ifconfig_carp10_alias7="192.168.10.18 netmask 255.255.255.0" > ifconfig_carp10_alias8="192.168.10.19 netmask 255.255.255.0" > ifconfig_carp10_alias9="192.168.10.20 netmask 255.255.255.0" > ... > --- > > First of all, whenever I try to reload a carp configuration by > /etc/rc.d/netif restart the system goes kernel panic. I always have > to restart the server to load the new configuration. This is not > the core of the problem, however. > > If I issue a > ifconfig carp10 > I can see all the aliases and the interface is in MASTER state. > > When I try to ping these addresses from another machine in the same > vlan (10), I can only ping the vlan base address (192.168.10.10) and the > first aliased address (192.168.10.11). All other aliases don't respond to > external pings. > > If I try to inspect incoming packets with tcpdump : > tcpdump -i vlan10 -n icmp > I can see the packets coming in, but the other aliased addresses seem > inactive. > > What is interesting is that an arp request actually takes places and > is answered > (all aliased ifs have the same mac address), but nobody respond to the > ping > but the first alias and the vlan base address. > > Does someone have any ideas? > > > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >