From owner-freebsd-net@FreeBSD.ORG Wed Oct 31 15:57:18 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 09E8EA48 for ; Wed, 31 Oct 2012 15:57:18 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7EE938FC12 for ; Wed, 31 Oct 2012 15:57:17 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id jf20so797587bkc.13 for ; Wed, 31 Oct 2012 08:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0/i3B11G/NLXDxZ8Ws4r+CcNlW9MWg8Jmk1UVmyYkwk=; b=rk+fx2dZcn77JEBv/AgXqC5y+4G/E7W4MsKux9omDA5rdOf5z6ICTOrn7z7rusXST6 lpWTNY4S0KWc+yURYzSAy5hasxvC8Ue9j5znU6Lyt4W0jK18zRhNtN8byfXrNPIwT8ye FLkwcaqN+LVJpa3N02RrCPHZ2atPMDltVnkMOoiO9+e0nKlcgZsXWy+Zc4he4Ja6K+2k /dLf1KWLsSa5giMp2kKGs35htsQj9MPRLPZYW92EtqFkNMt1tjOa9XEiJ7kSSwxu3ZN9 qoXsVLwdXogQPD07Qn8o9BXF0OPFeEYgB59DzQydhXUIqrXFeQwytZRzSkSvEaAkm39N HgiA== MIME-Version: 1.0 Received: by 10.204.6.75 with SMTP id 11mr11286937bky.10.1351699036326; Wed, 31 Oct 2012 08:57:16 -0700 (PDT) Sender: ermal.luci@gmail.com Received: by 10.204.143.148 with HTTP; Wed, 31 Oct 2012 08:57:16 -0700 (PDT) In-Reply-To: <509117E4.3000809@itmh.ru> References: <5090E884.4090901@itmh.ru> <509117E4.3000809@itmh.ru> Date: Wed, 31 Oct 2012 16:57:16 +0100 X-Google-Sender-Auth: GwLZce-9kNDhzuCCJ8GreDB6xJ8 Message-ID: Subject: Re: IPv6 aliases don't work on carp interface From: =?ISO-8859-1?Q?Ermal_Lu=E7i?= To: "tsaregorodtsev.denis@itmh.ru" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 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, 31 Oct 2012 15:57:18 -0000 On Wed, Oct 31, 2012 at 1:21 PM, tsaregorodtsev.denis@itmh.ru wrote: > On 31.10.2012 16:42, Ermal Lu=E7i wrote: >> >> On Wed, Oct 31, 2012 at 9:59 AM, tsaregorodtsev.denis@itmh.ru >> wrote: >>> >>> Hi, >>> I've run into a problem while adding IPv6 aliases on carp interface on >>> FreeBSD 8.1. >>> All IPv6 aliases on carp interface are unreachable from other devices b= ut >>> the first IPv6 on carp interface works well. >>> >>> # ifconfig >>> em0: flags=3D8943 metri= c 0 >>> mtu >>> 1500 >>> options=3D9b >>> ether 00:50:56:ad:00:5f >>> inet 172.16.249 netmask 0xffffff00 broadcast 255.255.255.224 >>> inet6 2001:db8:af:ff01:1:be60:80:700 prefixlen 64 >>> nd6 options=3D3 >>> media: Ethernet autoselect (1000baseT ) >>> status: active >>> ipfw0: flags=3D8801 metric 0 mtu 65536 >>> lo0: flags=3D8049 metric 0 mtu 16384 >>> options=3D3 >>> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 >>> inet6 ::1 prefixlen 128 >>> inet 127.0.0.1 netmask 0xff000000 >>> nd6 options=3D3 >>> carp0: flags=3D49 metric 0 mtu 1500 >>> inet6 2001:db8:af:ff01:1:be60:80:70f prefixlen 128 >>> inet6 2001:db8:af:ff01:1:be60:80:70e prefixlen 128 >>> nd6 options=3D3 >>> carp: MASTER vhid 250 advbase 1 advskew 0 >>> >>> # ping6 2001:db8:af:ff01:1:be60:80:70f >>> PING 2001:db8:af:ff01:1:be60:80:70f(2001:db8:af:ff01:1:be60:80:70f) 56 >>> data >>> bytes >>> 64 bytes from 2001:db8:af:ff01:1:be60:80:70f: icmp_seq=3D1 ttl=3D59 >>> time=3D0.793 >>> ms >>> 64 bytes from 2001:db8:af:ff01:1:be60:80:70f: icmp_seq=3D2 ttl=3D59 >>> time=3D0.837 >>> ms >>> >>> # ping6 2001:db8:af:ff01:1:be60:80:70e >>> PING 2001:db8:af:ff01:1:be60:80:70e(2001:db8:af:ff01:1:be60:80:70e) 56 >>> data >>> bytes From 2001:db8:af:ff00::1 icmp_seq=3D1 Destination unreachable: >>> Address >>> unreachable From 2001:db8:af:ff00::1 icmp_seq=3D4 Destination unreachab= le: >>> Address unreachable >>> >>> If I delete both IPs and add inet6 2001:db8:af:ff01:1:be60:80:70e befor= e >>> inet6 2001:db8:af:ff01:1:be60:80:70f then 2001:db8:af:ff01:1:be60:80:70= e >>> does work and 2001:db8:af:ff01:1:be60:80:70f does not. >>> >>> I googled this issue and found a >>> >>> patchhttp://lists.freebsd.org/pipermail/freebsd-net/2011-August/029619.= html >>> I've tried to apply it but the problem still exists. I've tested this >>> issue >>> on FreeBSD9.1 RC2 as well and there was the same problem. >>> >>> Best Regards, >>> Tsaregorodtsev Denis >>> >> On pfSense there is a patch carp_ip_aliasfix.diff found here >> >> https://github.com/bsdperimeter/pfsense-tools/tree/master/patches/RELENG= _8_3 >> Though the problem with that is that you have to apply many patches >> before it can be applied as well. > > Thank you for your answers. > Ermal I have several questions. Does carp_ip_alias_fix.diff solve the > problem with IPv6 aliases on carp interfaces? > To apply this patch I need to apply certain patches before. Is there a > complete list of these patches and the sequence order? The list of patches is https://github.com/bsdperimeter/pfsense-tools/blob/master/builder_scripts/p= atches.RELENG_8_3 Just use the ones with carp in the name. In pfSense carp ip aliases work quite ok on both v4 and v6. > >>> _______________________________________________ >>> 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" >> >> >> > --=20 Ermal