From owner-freebsd-net@FreeBSD.ORG Fri Mar 19 00:00:46 2010 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 A562A1065672 for ; Fri, 19 Mar 2010 00:00:46 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 6A1828FC0C for ; Fri, 19 Mar 2010 00:00:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id A470A7BAEB; Fri, 19 Mar 2010 13:00:45 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yr-rS8Ot5udY; Fri, 19 Mar 2010 13:00:40 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Fri, 19 Mar 2010 13:00:40 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 8B8DC11432; Fri, 19 Mar 2010 13:00:40 +1300 (NZDT) Date: Fri, 19 Mar 2010 13:00:40 +1300 From: Andrew Thompson To: Stefan Bethke Message-ID: <20100319000040.GC45454@citylink.fud.org.nz> References: <20091211052349.0000517a@unknown> <20091211065141.GL88840@marvin.timesinks.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-net@freebsd.org Subject: Re: Running rtadvd or DHCPv6 server via if_bridge 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, 19 Mar 2010 00:00:46 -0000 On Thu, Mar 18, 2010 at 11:27:43PM +0100, Stefan Bethke wrote: > Am 11.12.2009 um 07:51 schrieb Chris Cowart: > > > Bruce Cran wrote: > >> I have a router configured using if_bridge with a 4-port NIC that's > >> serving addresses over DHCP. I'd like to add in either rtadvd or > >> DHCPv6, but neither work because the bridge interface doesn't have an > >> IPv6 link-local address. Is there a way around this, or is it not > >> possible to serve IPv6 addresses over if_bridge interfaces? > > > > It's totally doable; you just have to assigned a link-local address to > > the bridge. There are some reasons why one isn't defined by default, > > which somebody more knowledgeable about the challenges in the > > implementation can highlight. > > > > Here's my configuration from rc.conf: > > > > ipv6_ifconfig_bridge0="2001:470:8337:10::1/64" > > ipv6_ifconfig_bridge0_alias0="fe80::2%bridge0 prefixlen 64" > > > > Once you're doing that, rtadvd will start doing the right thing. > > I've just stumbled over this the first time. > > I thought that best practice nowadays was to use the bridge interface for host communications, and leaving the physical interfaces unconfigured, so I'm a bit confused why if_bridge would not allow the auto-assignment of a link-local address. > > If you have two or more bridged interfaces now, and you enable automatic assignment of link-local addresses, you already have multiple link-locals this way; having the bridge have one as well wouldn't make things worse (I think). > http://svn.freebsd.org/viewvc/base?view=revision&revision=149829 "IPv6 auto-configuration is disabled. An IPv6 link-local address has a link-local scope within one link, the spec is unclear for the bridge case and it may cause scope violation." That is the reason. I dont know if its still true but you would need to find someone more familair with IPv6 to comment on it. cheers, Andrew