From owner-freebsd-stable@FreeBSD.ORG Fri Mar 11 05:19:08 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDF301065670 for ; Fri, 11 Mar 2011 05:19:08 +0000 (UTC) (envelope-from carlj@peak.org) Received: from oak.localnet (unknown [IPv6:2001:1938:266:0:6ef0:49ff:fe05:658b]) by mx1.freebsd.org (Postfix) with ESMTP id 68B298FC0C for ; Fri, 11 Mar 2011 05:19:08 +0000 (UTC) Received: from oak.localnet (localhost [127.0.0.1]) by oak.localnet (Postfix) with ESMTP id A276DC321 for ; Thu, 10 Mar 2011 21:19:00 -0800 (PST) Received: (from carlj@localhost) by oak.localnet (8.14.4/8.14.4/Submit) id p2B5J0FA090515; Thu, 10 Mar 2011 21:19:00 -0800 (PST) (envelope-from carlj@peak.org) X-Authentication-Warning: oak.localnet: carlj set sender to carlj@peak.org using -f From: Carl Johnson To: freebsd-stable@freebsd.org References: Mail-Followup-To: freebsd-stable@freebsd.org Date: Thu, 10 Mar 2011 21:19:00 -0800 In-Reply-To: (Daniel O'Connor's message of "Fri, 11 Mar 2011 11:02:35 +1030") Message-ID: <87oc5i5j5n.fsf@oak.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: if_bridge and IPv6 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2011 05:19:09 -0000 "Daniel O'Connor" writes: > Hi, I have a bridge interface with em0 and tap0/tap1 on it to run a > layer 2 VPN. > > I find that em0 gets an IPv6 link local address but bridge0 does not > (via net.inet6.ip6.auto_linklocal). I did some googling and it seems > that this is a deliberate policy decision, and unfortunately you can't > change it on a per interface basis :) > > It would be nice if I could suppress automatic link local for em0 and > enable it on bridge0 rather than having to delete & add them manually. > > Also, does anyone have a code snippet handy for generating link local > addresses? My google-fu was unable to find a description.. You should be able to do something like the following: ifconfig bridge0 inet6 fe80:: eui64 add That assumes that it has a MAC address already assigned. I can't help if it doesn't have one yet. -- Carl Johnson carlj@peak.org