From owner-freebsd-questions@FreeBSD.ORG Tue Feb 20 12:03:32 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9E37216BA75 for ; Tue, 20 Feb 2007 12:00:27 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from claire.ber.rewt.org.uk (claire.ber.rewt.org.uk [217.160.200.67]) by mx1.freebsd.org (Postfix) with ESMTP id 573ED13C4A6 for ; Tue, 20 Feb 2007 12:00:27 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from localhost (localhost [127.0.0.1]) by claire.ber.rewt.org.uk (Postfix) with ESMTP id 70741B81C; Tue, 20 Feb 2007 12:00:26 +0000 (GMT) X-Virus-Scanned: amavisd-new at claire.ber.rewt.org.uk Received: from claire.ber.rewt.org.uk ([127.0.0.1]) by localhost (claire.ber.rewt.org.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4vlTrbZq3MFY; Tue, 20 Feb 2007 12:00:16 +0000 (GMT) Received: from [192.168.10.147] (dsl172-67.as6911.net [62.84.172.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by claire.ber.rewt.org.uk (Postfix) with ESMTP id B9F0AB936; Tue, 20 Feb 2007 12:00:15 +0000 (GMT) Message-ID: <45DAE2CB.4060601@joeholden.co.uk> Date: Tue, 20 Feb 2007 12:00:11 +0000 From: Joe Holden User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Arone Silimantia References: <382849.74059.qm@web58615.mail.re3.yahoo.com> In-Reply-To: <382849.74059.qm@web58615.mail.re3.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: help needed setting up NATIVE ipv6 connection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2007 12:03:32 -0000 Arone Silimantia wrote: > Hello, > > I am in a datacenter that provides native (not tunneled) ipv6 connectivity. > > Unfortunately, all of the howtos for FreeBSD are focused on tunneling ipv6 and using gif0, etc. This does not apply to me because I have a real ipv6 connection. > > Right now things are simple - I have a single ipv4 address, and a single default gateway. Easy. > > My provider has given me a /48. They emailed me and told me the following: > > - IP block is 1234:1234:1234::/48 > - gateway is ::1 > > That is all they told me. So my first instinct was to ifconfig an alias on em0 with inet6, and then add a inet6 default route. BUT, I keep reading that with ipv6 you don't want to manually configure addresses and routes - there is some kind of fancy autoconfigure you can do with your gateway so that you don't need to manually configure the addresses (?) > > So two questions: > > - is there indeed some fancy autoconfigure, and I don't need to manually ifconfig and 'route add inet6 default' > > - if not, assuming I just want to assign a single ipv6 address to myself (let's say, ::2, since ::1 is the gateway) what is the ifconfig syntax to add that one ipv6 address to my NIC (em0) as an alias that will not interfere with the ipv4 address that is already there ? > > Thanks. > Think of it in the same way as Static/DHCP v4 works. Static machines have manually assigned addresses, dynamic/moving clients have autoconfigure by dhcp. It works in a similiar way, you will need to configure ip addresses using ifconfig em0 inet6 as normal. It is highly recommended to split the /48 into 64's. I can't find the exact literature regarding proper ipv6 address topology. However if you just want to go ahead and configure with a /48, the command would be (for example)1234:1234:1234::2 prefixlen 64 Then for the default route: route add -inet6 default 1234:1234:1234::1 HTH, Joe