From owner-freebsd-net@FreeBSD.ORG Fri May 18 20:17:47 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 9014E1065673 for ; Fri, 18 May 2012 20:17:47 +0000 (UTC) (envelope-from jinmei@isc.org) Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) by mx1.freebsd.org (Postfix) with ESMTP id 7066A8FC12 for ; Fri, 18 May 2012 20:17:47 +0000 (UTC) Received: from bikeshed.isc.org (bikeshed.isc.org [IPv6:2001:4f8:3:d::19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mail.isc.org", Issuer "RapidSSL CA" (not verified)) by mx.pao1.isc.org (Postfix) with ESMTPS id E9968C97A2; Fri, 18 May 2012 20:17:35 +0000 (UTC) (envelope-from jinmei@isc.org) Received: from jmb.jinmei.org (unknown [IPv6:2001:4f8:3:64:29a7:30e7:acb3:2b21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bikeshed.isc.org (Postfix) with ESMTPSA id A11BA216C33; Fri, 18 May 2012 20:17:35 +0000 (UTC) (envelope-from jinmei@isc.org) Date: Fri, 18 May 2012 13:17:35 -0700 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: prabhakar lakhera In-Reply-To: References: User-Agent: Wanderlust/2.14.0 (Africa) Emacs/22.1 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mx.pao1.isc.org Cc: freebsd-net@freebsd.org Subject: Re: How to set the IPv6 linklocal scope id for an interface? 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: Fri, 18 May 2012 20:17:47 -0000 At Thu, 17 May 2012 15:13:08 -0700, prabhakar lakhera wrote: > Removing the hyperlinks (these seem to get appended by gmail: > > Hi, > > Is there any way for the administrator to set an interface's scope if > for link local scope? I don't think it's been merged to *BSDs, but the original KAME implementation contained a tool called "scope6config" http://www.kame.net/dev/cvsweb2.cgi/kame/kame/kame/scope6config/ If I understand you correctly, that does what (at least superficially) you asked. From a quick look the kernel already seems to have the underlying ioctl, so maybe you can simply fetch the source file of the tool and compile it. That said... > I am trying to avoid the following: > > Here's the problem. I have two interfaces A and B on same link. Both > learn RA for the link. One of these is used to add a default route > entry in the routing table. Lets say default router entry for A is > picked, we have the following default route entry: I'm afraid it's less likely that you can achieve this just by tweaking the scope zone configuration. I suspect there are other places in the kernel where one-to-one mapping between interfaces and links are assumed, either implicitly or explicitly, and you'll have another trouble. But that's a guess. Maybe you should at least give it a try. Good luck:-) --- JINMEI, Tatuya Internet Systems Consortium, Inc.