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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to