From owner-freebsd-net@FreeBSD.ORG Thu May 9 19:51:16 2013 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1F7D1353 for ; Thu, 9 May 2013 19:51:16 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) by mx1.freebsd.org (Postfix) with ESMTP id 1A88DEB2 for ; Thu, 9 May 2013 19:51:14 +0000 (UTC) Received: from alph.d.allbsd.org (p2175-ipbf701funabasi.chiba.ocn.ne.jp [122.25.209.175]) (authenticated bits=128) by mail.allbsd.org (8.14.5/8.14.5) with ESMTP id r49JovJq077800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 May 2013 04:51:08 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) (authenticated bits=0) by alph.d.allbsd.org (8.14.5/8.14.5) with ESMTP id r49JouQU059542; Fri, 10 May 2013 04:50:57 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Fri, 10 May 2013 04:49:31 +0900 (JST) Message-Id: <20130510.044931.944156092944449444.hrs@allbsd.org> To: florent@peterschmitt.fr Subject: Re: IPv6 configuration missunderstanding From: Hiroki Sato In-Reply-To: <518BFBF6.4040907@peterschmitt.fr> References: <518A6D5C.3030804@peterschmitt.fr> <20130510.041934.19893072298744952.hrs@allbsd.org> <518BFBF6.4040907@peterschmitt.fr> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Fri_May_10_04_49_31_2013_611)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.allbsd.org [133.31.130.32]); Fri, 10 May 2013 04:51:08 +0900 (JST) X-Spam-Status: No, score=-93.9 required=13.0 tests=CONTENT_TYPE_PRESENT, MIMEQENC,ONLY1HOPDIRECT,QENCPTR1,QENCPTR2,RCVD_IN_PBL,SAMEHELOBY2HOP, TO_NO_BRKTS_PCNT,USER_IN_WHITELIST autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on gatekeeper.allbsd.org 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: Thu, 09 May 2013 19:51:16 -0000 ----Security_Multipart(Fri_May_10_04_49_31_2013_611)-- Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Florent Peterschmitt wrote in <518BFBF6.4040907@peterschmitt.fr>: fl> Le 09/05/2013 21:19, Hiroki Sato a =E9crit : fl> > Florent Peterschmitt wrote fl> > in <518A6D5C.3030804@peterschmitt.fr>: fl> > = fl> > fl> Hi, fl> > fl> fl> > fl> I want to configure IPv6 in FreeBSD 9.1-RELEASE like this : fl> > fl> fl> > fl> ipv6_enable=3Dyes fl> > fl> ipv6_activate_all_interfaces=3Dyes fl> > fl> ifconfig_em0_ipv6=3D"inet6 2001:41D0:8:B81f:: prefixlen 64" fl> > fl> -interface em0" fl> > fl> ipv6_defaultrouter=3D"2001:41D0:8:B8ff:ff:ff:ff:ff" fl> > = fl> > Why the default router is not in 2001:41d0:8:b81f::/64? fl> > = fl> > fl> But at boot I have : fl> > fl> fl> > fl> default fe80::264:40ff:fe3a:fac0%em0 UG em0 fl> > = fl> > I guess this is provided by the router via Router Advertisement fl> > messages. fl> > = fl> > fl> And if ipv6_enable=3Dyes is not here (although it's depreciat= ed), no IPv6 fl> > fl> at all. fl> > = fl> > Please remove ipv6_enable=3Dyes and ipv6_activate_all_interfaces= =3Dyes fl> > unless you understand you really need them. fl> > = fl> > I think only the following line is sufficient for your environme= nt: fl> > = fl> > ifconfig_em0_ipv6=3D"inet6 2001:41d0:8:b81f::1 prefixlen 64 acce= pt_rtadv" fl> > = fl> > -- Hiroki fl> > = fl> I found how to configure it: fl> = fl> ip6addrctl_policy=3D"ipv6_prefer" fl> ipv6_activate_all_interfaces=3Dyes fl> ifconfig_em0_ipv6=3D"inet6 2001:41d0:8:b81f::1 prefixlen 64" fl> ipv6_defaultrouter=3D"2001:41d0:8:b8ff:ff:ff:ff:ff" fl> = fl> Router advertisement is disabled at OVH and the gateway is the give= n fl> one. Well, everything is good now ;) So, why do you need ipv6_activate_all_interfaces=3Dyes? And, using an address on the different subnet as the default router is wrong even if it looks working. -- Hiroki ----Security_Multipart(Fri_May_10_04_49_31_2013_611)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iEYEABECAAYFAlGL/csACgkQTyzT2CeTzy2f1ACgjTq/5kyZEjYoRs4zY+EyJw44 IN4AoIiNQavADI1f/vamz+HpHaYO9Oti =4fdw -----END PGP SIGNATURE----- ----Security_Multipart(Fri_May_10_04_49_31_2013_611)----