Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2007 12:00:11 +0000
From:      Joe Holden <joe@joeholden.co.uk>
To:        Arone Silimantia <aronesimi@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: help needed setting up NATIVE ipv6 connection
Message-ID:  <45DAE2CB.4060601@joeholden.co.uk>
In-Reply-To: <382849.74059.qm@web58615.mail.re3.yahoo.com>
References:  <382849.74059.qm@web58615.mail.re3.yahoo.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?45DAE2CB.4060601>