From owner-freebsd-net@FreeBSD.ORG Wed Jun 18 22:35:48 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 021091065675 for ; Wed, 18 Jun 2008 22:35:48 +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 419A88FC0C for ; Wed, 18 Jun 2008 22:35:47 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: (qmail 32891 invoked by uid 98); 18 Jun 2008 22:09:03 -0000 Received: from 192.168.229.11 by aurynhome1sv1.zirakzigil.org (envelope-from , uid 89) with qmail-scanner-1.25 ( Clear:RC:1(192.168.229.11):. Processed in 0.039447 secs); 18 Jun 2008 22:09:03 -0000 X-Qmail-Scanner-Mail-From: auryn@zirakzigil.org via aurynhome1sv1.zirakzigil.org X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.229.11):. Processed in 0.039447 secs) Received: from unknown (HELO aurynhome1ws2.zirakzigil.org) (postmaster@zirakzigil.org@192.168.229.11) by 0 with SMTP; 18 Jun 2008 22:09:03 -0000 Message-ID: <4859877A.3020300@zirakzigil.org> Date: Thu, 19 Jun 2008 00:08:58 +0200 From: Giulio Ferro User-Agent: Thunderbird 2.0.0.0 (X11/20070513) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Wed, 18 Jun 2008 22:35:48 -0000 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?