From owner-freebsd-stable@FreeBSD.ORG Sat Dec 22 15:29:50 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 351564D0; Sat, 22 Dec 2012 15:29:50 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 824498FC0A; Sat, 22 Dec 2012 15:29:49 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id o1so5715100wic.11 for ; Sat, 22 Dec 2012 07:29:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=4+Nrvn/SUsFo3ljulo5BoP2PQ8ylsjJy++kP3tolr3M=; b=e5wklcWNZPwAStw3i1cYcP+A2z4UB5wyQTU2yBeDvmJuvYnd6BRtK/OcmB0Qby0puX Oc65W5pjkKKu0S1G8PGv6rZW4XeTwtG8tQEWokAscfGd87iCMBx6nWRaIEVzk7b9CptK TEuQqS/ts66lG9WCn7sLQoxz+j3ABiHHIVRpN/UDsPmkiy81z+/OCj42qq2lyLTHRGiR HROSsk3K+Cut5rKMBG6dUR75ZspuKD5DvCQNYk2rKDY88KGXIKa7DaNSOPqWF0h2mqou uefcPf2Sb2pv/hlF5a5Q/0s3NmqSWYAMWwfjmVd1AYHJUS8Zubg6iFwBwOvRVFfVP4Al +/Bw== MIME-Version: 1.0 Received: by 10.180.24.198 with SMTP id w6mr20494243wif.27.1356190182237; Sat, 22 Dec 2012 07:29:42 -0800 (PST) Received: by 10.216.172.197 with HTTP; Sat, 22 Dec 2012 07:29:42 -0800 (PST) In-Reply-To: <50D5C2F4.1070104@wasikowski.net> References: <50D1C553.9060100@wasikowski.net> <20121220132750.GB99616@stack.nl> <50D4F2E4.7020600@wasikowski.net> <50D5C2F4.1070104@wasikowski.net> Date: Sat, 22 Dec 2012 17:29:42 +0200 Message-ID: Subject: Re: ipv6_addrs_IF aliases in rc.conf(5) From: Kimmo Paasiala To: =?UTF-8?Q?=C5=81ukasz_W=C4=85sikowski?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Dec 2012 15:29:50 -0000 On Sat, Dec 22, 2012 at 4:25 PM, =C5=81ukasz W=C4=85sikowski wrote: > W dniu 2012-12-22 04:41, Kimmo Paasiala pisze: > >>>> It looks like the reason for the difference to ipv4_addrs_IF is that >>>> the "alias" parameter for ifconfig(8) operates differently for IPv6 >>>> addresses, the first address of an interface can't be added with >>>> "alias", for IPv4 it does not care. I'll have to dig deeper but that's >>>> what the problem seems to be. >>>> >>>> -Kimmo >>> >>> The 'alias' parameter of ifconfig(8) is not the problem on the first >>> ipv6 address, I have verified that. However, there's probably >>> something in network.subr or /etc/rc.d/netif that I have overlooked >>> and causes my code to be skipped if there's no ifconfig_IF_ipv6 >>> variable defined in rc.conf(5). >>> >>> -Kimmo >> >> Yeah, this is problem in network.subr. An interface is not recognized >> as IPv6 capable if the interface is not in "ipv6_network_interfaces" >> and there's no "ifconfig_IF_ipv6" in rc.conf(5), bummer. For IPv4 it >> "just works" because the interface is always assumed to be IPv4 >> capable. > > Ok, I used ifconfig_em0_ipv6=3D"up" and it worked. So it looks like this: > > ipv6_activate_all_interfaces=3D"NO" > ipv6_network_interfaces=3D"em0" > ifconfig_em0_ipv6=3D"up" > ipv6_addrs_em0=3D"2001:6a0:1cb::1-ff/64" > ipv6_defaultrouter=3D"2001:6a0:1cb::ffff" > > Good job, thank you! :) > > -- > best regards, > Lukasz Wasikowski I'm looking into fixing the issue so you could just have the ipv6_addrs_em0 line in rc.conf. However I don't want to flood the PR and this mailing list with different versions of the patch. I want to get it right next time. Stay tuned. -Kimmo