From owner-freebsd-net@FreeBSD.ORG Tue Mar 22 03:30:59 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 C5839106566C for ; Tue, 22 Mar 2011 03:30:59 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 846558FC08 for ; Tue, 22 Mar 2011 03:30:59 +0000 (UTC) Received: by iwn33 with SMTP id 33so8379024iwn.13 for ; Mon, 21 Mar 2011 20:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:in-reply-to :message-id:references:user-agent:x-openpgp-key-id :x-openpgp-key-fingerprint:mime-version:content-type; bh=/M3gFO+9LXII5fxJCksMYwZDFbkDf9plAd7u4oQ49GY=; b=aGGA3HLScL0JX6FjbzEFx92tstt4uACNOpiHS/ttx8hzcXAcxA5TvqJEom0m6LGoRM 9GjUMOVcDJSmzCM9XxLsOZT/Vc2A+nGFU2paRJJD7sl77AOnBi6ufrFsz0T+zxhLFt0f ERwqKnZ0GZZJqFeubx29Jg4/4sW4yJd07BaRc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=Jk4SEjAUAk/lp9vQYhwAdIov+wqo694tb5LGpm6P/y3IpiB4m5DEWOqYOlzmKIloq5 UoojG74QFt/+/cNrs6jvzhuZVroOI0aAyAapV/J+h8jnhHWxDr/Duy9ReATAslb/RnqS 6sElyk4KGsmpxq41H7wSmkYjcVvsAc+W6+b+k= Received: by 10.43.57.80 with SMTP id wf16mr7893377icb.332.1300762811001; Mon, 21 Mar 2011 20:00:11 -0700 (PDT) Received: from disbatch.dataix.local ([99.181.148.152]) by mx.google.com with ESMTPS id u9sm4086377ibe.36.2011.03.21.20.00.07 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Mar 2011 20:00:08 -0700 (PDT) Sender: "J. Hellenthal" Date: Mon, 21 Mar 2011 23:00:00 -0400 From: "J. Hellenthal" To: Matt Smith In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 03:30:59 -0000 On Tue, 15 Mar 2011 10:37, matt.xtaz@ wrote: > On 15 March 2011 11:39, Matt Smith wrote: >> >> Hi, I have a question about source routing I hope you can help me with. > > I have been doing some more research into this and it appears the > proper way to accomplish what I want is to set > net.inet6.ip6.use_deprecated to 0 and then deprecate the IPv6 address > on the gif0 interface by setting the preferred lifetime to zero. This > apparently makes the source address selection algorithm choose the > alternative address on vr0. I can do the first part but I can't figure > out how to do the second part. Any ideas surrounding this? > > The windows command to do this is: "netsh interface ipv6 set address > IP6Tunnel preferredlifetime=0s" so I need a > FreeBSD equivalent of this command. Does such a thing exist? I've had > a quick search through the ifconfig man page etc but nothing jumps out > at me. > Hi Matt, Unofficially not sure if you have already checked into this so I am not sure if it is really a solution to your problem but may be a step forward. Check out the man page for ip6addrctl(8) that allows you to set a precedence for each prefix/route. The default output of ip6addrctl(8) can be dumped into /etc/ip6addrctl.conf where it will also be parsed and restored upon reboot. -- Regards, J. Hellenthal (0x89D8547E) JJH48-ARIN