From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 17:17:02 2011 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 96A40106564A for ; Tue, 22 Mar 2011 17:17:02 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from mail.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id DBFE08FC08 for ; Tue, 22 Mar 2011 17:17:01 +0000 (UTC) Received: from yuga.mahoroba.org (ume@yuga.mahoroba.org [IPv6:2001:2f0:104:8010:21b:d3ff:fe38:5381]) (user=ume mech=DIGEST-MD5 bits=0) by mail.mahoroba.org (8.14.4/8.14.4) with ESMTP/inet6 id p2MHGrNN030675 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Mar 2011 02:16:54 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Wed, 23 Mar 2011 02:16:53 +0900 Message-ID: From: Hajimu UMEMOTO To: Matt Smith In-Reply-To: References: User-Agent: xcite1.60> Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.2 (i386-portbld-freebsd8.1) MULE/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 8.2-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (mail.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Wed, 23 Mar 2011 02:16:54 +0900 (JST) X-Virus-Scanned: clamav-milter 0.97 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on asuka.mahoroba.org Cc: freebsd-net@freebsd.org Subject: Re: IPv6 policy based source routing 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: Tue, 22 Mar 2011 17:17:02 -0000 Hi, >>>>> On Tue, 15 Mar 2011 14:37:20 +0000 >>>>> Matt Smith said: matt> I have been doing some more research into this and it appears the matt> proper way to accomplish what I want is to set matt> net.inet6.ip6.use_deprecated to 0 and then deprecate the IPv6 address matt> on the gif0 interface by setting the preferred lifetime to zero. This matt> apparently makes the source address selection algorithm choose the matt> alternative address on vr0. I can do the first part but I can't figure matt> out how to do the second part. Any ideas surrounding this? matt> The windows command to do this is: "netsh interface ipv6 set address matt> IP6Tunnel preferredlifetime=0s" so I need a matt> FreeBSD equivalent of this command. Does such a thing exist? I've had matt> a quick search through the ifconfig man page etc but nothing jumps out matt> at me. It's Rule 3 of RFC 3484 which avoids deprecated addresses. If this solves your problem, you can do it by the following command: ifconfig gif0 inet6 deprecated Please note that you don't need to set net.inet6.ip6.use_deprecated to 0 for this purpose. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/