From owner-freebsd-net@FreeBSD.ORG Wed Jan 13 06:48:42 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 1713F1065670 for ; Wed, 13 Jan 2010 06:48:42 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id B76988FC1D for ; Wed, 13 Jan 2010 06:48:41 +0000 (UTC) Received: (qmail 22354 invoked by uid 399); 13 Jan 2010 06:48:40 -0000 Received: from localhost (HELO ?192.168.0.110?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 13 Jan 2010 06:48:40 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Date: Tue, 12 Jan 2010 22:48:43 -0800 (PST) From: Doug Barton To: Brett Lee In-Reply-To: <4B4CEB41.3000805@Sun.COM> Message-ID: References: <4B4CEB41.3000805@Sun.COM> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-message-flag: Outlook -- Not just for spreading viruses anymore! X-OpenPGP-Key-ID: 0xD5B2F0FB Organization: http://SupersetSolutions.com/ MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org Subject: Re: How to enable IPv6 on a subset of interfaces 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: Wed, 13 Jan 2010 06:48:42 -0000 On Tue, 12 Jan 2010, Brett Lee wrote: > Hello, > > Using FreeBSD 8.0-RELEASE, and am trying variations in /etc/rc.conf in an > attempt to enable IPv6 on ONLY one of the systems two interfaces. > > Specifically, em0 should be enabled IPv4 DHCP, and bge0 should be enabled > IPv6 only. > > From the KAME link below, and the files /etc/network.subr and > /etc/defaults/rc.conf, am reading that "ipv6_network_interface" should work; > however the following still results in em0 obtaining IPv6 addresses: > > http://www.kame.net/~suz/freebsd-ipv6-config-guide.txt That link is prehistoric. While I haven't read it (past the date) I would not rely on it heavily. > ifconfig_em0="DHCP" > ipv6_enable="YES" > ipv6_network_interface="bge0" There is no such option in rc.conf. Spelling counts. :) > ipv6_network_interfaces="bge0" You want to include lo0 in this list. You haven't specified what IPv6 addresses you're seeing on em0 that you don't want to see. At minimum you will see the link local address (it starts with fe80::) but that is simply an artifact of having IPv6 in the kernel, and is not avoidable. It also isn't going to hurt anything. It would also be helpful if you could be more specific about what your goals are. In other words, why do you want IPv6 on only one interface? If we had more information we could help you better. Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ Computers are useless. They can only give you answers. -- Pablo Picasso