IPv6 aliases on FreeBSD 10

Randal L. Schwartz merlyn at stonehenge.com
Sat Oct 25 16:29:34 UTC 2014


>>>>> "Darren" == Darren Pilgrim <list_freebsd at bluerosetech.com> writes:

Darren> On 10/25/2014 1:00 AM, pepe wrote:
>> I know it's usually done with /64, but my ISP just said: your block is
>> 2001:14b8:1801::/48 and
>> defaultrouter should be ::1. So I can't really change that.

Darren> They meant your allocation is 2001:14b8:1801::/48.  You can subnet that
Darren> however you like.  Subnetting at /64 is BCP for a lot of
Darren> reasons.

Here's what works for my ISP (I'm still on 8.4):

    ipv6_enable=YES
    ipv6_defaultrouter="fe80::1%em0"
    ipv6_ifconfig_em0="fe80::2/64"
    ipv6_ifconfig_em0_alias0="2607:f2f8:3080::/64"
    ipv6_gateway_enable=YES

I own the /48, but they want their leg to me to be the first /64 of
that.  Unlike most ISPs, they're using link-local addresses for that leg
for routing... and they send anything for my /48 to fe80::2 on that leg.

And yes, I'm using the ::0 address as my primary machine address.  It
works. :)

    $ host red.stonehenge.com
    red.stonehenge.com has address 208.79.95.2
    red.stonehenge.com has IPv6 address 2607:f2f8:3080::

:-)


-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix consulting, Technical writing, Comedy, etc. etc.
Still trying to think of something clever for the fourth line of this .sig


More information about the freebsd-questions mailing list