From owner-freebsd-questions@FreeBSD.ORG Sat Oct 25 08:00:37 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B2B2C829 for ; Sat, 25 Oct 2014 08:00:37 +0000 (UTC) Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7BEDF1D2 for ; Sat, 25 Oct 2014 08:00:37 +0000 (UTC) Received: by mail-oi0-f46.google.com with SMTP id e131so243311oig.19 for ; Sat, 25 Oct 2014 01:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pv+erUycI0zP5Bib4jOYTuWkoMFp8PGIWmZz1oyMuec=; b=i0wjOxdR1oWy7P0uvCu0joLe3HmGk78YO+rNQSEwe52wsQjJjCC8tJd5QsQGxtt5Qb f4+fcnM3a8x/q2oRyyOC/a72v/hAZdMA0f8D4FNz39dw9M7vtvJU5T7KBBJk0Xr0BquY xvGrRgnE6WzjCNIuGCD6BS8gY2UfEOsEPmMt9QLB+LCoG4K8PBthoTaCpAUQGV20/kqu Bh3RIFZkji/tPX1KEtLaZIGfbBt5E9JngF4cELiD9lTbibAEIpG0+DqJTTRp7Y7oO+XH UQe+ZjLGOGzAr2Pnm5Gy+02O35wrQfKKfYqfk3fexVlCxyWvtd2XFu+MgTEs6EsHS1W9 96ZQ== MIME-Version: 1.0 X-Received: by 10.60.160.33 with SMTP id xh1mr107720oeb.57.1414224036775; Sat, 25 Oct 2014 01:00:36 -0700 (PDT) Received: by 10.76.19.83 with HTTP; Sat, 25 Oct 2014 01:00:36 -0700 (PDT) In-Reply-To: <54490752.7080504@radel.com> References: <5447AD3F.8060304@bytecamp.net> <54490752.7080504@radel.com> Date: Sat, 25 Oct 2014 11:00:36 +0300 Message-ID: Subject: Re: IPv6 aliases on FreeBSD 10 From: pepe To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Oct 2014 08:00:37 -0000 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. My rc.conf was like that when I copied it from fbsd 8 server, but new server is fbsd 10 so ipv6 section is like this: ifconfig_em0_alias59="inet 62.165.159.154 netmask 255.255.255.255" ipv6_activate_all_interfaces="YES" ipv6_defaultrouter="2001:14b8:1801::1" ifconfig_em0_ipv6="inet6 2001:14b8:1801:c001::1 prefixlen 48" ifconfig_em0_alias60="inet6 2001:14b8:1801:c001::2 prefixlen 48" ifconfig_em0_alias61="inet6 2001:14b8:1801:c001::3 prefixlen 48" ifconfig_em0_alias62="inet6 2001:14b8:1801:c001::4 prefixlen 48" ifconfig_em0_alias63="inet6 2001:14b8:1801:c001::5 prefixlen 48" ifconfig_em0_alias64="inet6 2001:14b8:1801:c001::6 prefixlen 48" ifconfig_em0_alias65="inet6 2001:14b8:1801:c001::7 prefixlen 48" ifconfig_em0_alias66="inet6 2001:14b8:1801:c001::8 prefixlen 48" ifconfig_em0_alias67="inet6 2001:14b8:1801:c001::9 prefixlen 48" ifconfig_em0_alias68="inet6 2001:14b8:1801:c001::10 prefixlen 48" ifconfig_em0_alias69="inet6 2001:14b8:1801:c001::42 prefixlen 48" On Thu, Oct 23, 2014 at 4:49 PM, Jon Radel wrote: > On 10/23/14, 1:19 AM, pepe wrote: > >> prefix 128 didn't work either. only first real address is working. none of >> the aliases work with 48, 64 or 128... >> our network is 2001:14b8:1801::/48 so that prefixlen 48 is right for ::1 >> address isn't it? and well, it works so >> I think it is right... >> >> > It would be rather unusual to have a /48 there. There are many things in > IPv6 that assume you're using a /64 network on each LAN segment / collision > domain / however-you-want-to-think-of-it. So while, in some senses, > using a /48 there isn't *wrong*, after all, one might need to have 1.208 x > 10^24 addresses on a single LAN segment [but so much else would break], in > your case it's probably wrong. > > Things will probably go more smoothly in general if you use IPv6-think: > You were assigned 2^16 (65,536) networks (each a /64). You were *not* > assigned 2^80 addresses. (Obviously you were actually assigned 2^80 > addresses, but that's really not a useful way to think of IPv6 addresses > when planning your network.) > > Assign a /64 to the network this machine is connected to. Obviously other > equipment has to play along and have a matching prefix length. > > You might also want to show us what is in your rc.conf, not just what > ifconfig reports. Here's an example from an 8.3 server: > > ipv6_ifconfig_fxp0="2001:470:880a:5237::10:1 prefixlen 64" > ipv6_ifconfig_fxp0_alias0="2001:470:880a:5237::12:1 prefixlen 128" > ipv6_ifconfig_fxp0_alias1="2001:4830:1707:5237::10:1 prefixlen 64" > ipv6_ifconfig_fxp0_alias2="2001:4830:1707:5237::12:1 prefixlen 128" > ipv6_defaultrouter="2001:470:880a:5237::1" > > That works fine. > > --Jon Radel > jon@radel.com > > > -- pepe