From owner-freebsd-questions@FreeBSD.ORG Sat Feb 14 18:32:39 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5C5B10656F2 for ; Sat, 14 Feb 2009 18:32:39 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: from cohiba.eagle.ca (cohiba.eagle.ca [208.70.104.203]) by mx1.freebsd.org (Postfix) with ESMTP id 52CF08FC0C for ; Sat, 14 Feb 2009 18:32:38 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: (qmail 37734 invoked by uid 89); 14 Feb 2009 18:32:37 -0000 Received: from unknown (HELO ?192.168.1.114?) (steveb@eagle.ca@208.70.104.100) by cohiba.eagle.ca with ESMTPA; 14 Feb 2009 18:32:37 -0000 Message-ID: <49970E40.4030604@ibctech.ca> Date: Sat, 14 Feb 2009 13:32:32 -0500 From: Steve Bertrand User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Reinhard Haller References: <4996AFAC.1050707@interactive-net.de> In-Reply-To: <4996AFAC.1050707@interactive-net.de> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: ipv6 aliases in rc.conf 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: Sat, 14 Feb 2009 18:32:40 -0000 Reinhard Haller wrote: > Hi, > > I'm trying to add ipv6 aliases for my jails (7.1) in rc.conf. > > ifconfig_lo0_alias0="inet 192.168.64.1 netmask 255.255.255.0" > ifconfig_lo0_alias1="inet 192.168.64.2 netmask 255.255.255.255" > ipv6_ifconfig_lo0_alias0="inet6 fd08:2548:a3e8:40::1 prefixlen 48" > ipv6_ifconfig_lo0_alias1="inet6 fd08:2548:a3e8:40::2 prefixlen 128" ifconfig_lo0="inet 192.168.64.1 netmask 255.255.255.0" ifconfig_lo0_alias0="inet 192.168.64.2 netmask 255.255.255.255" ifconfig_lo0_alias1="inet6 fd08:2548:a3e8:40::1 prefixlen 48" ifconfig_lo0_alias2="inet6 fd08:2548:a3e8:40::2 prefixlen 128" ...works for me. Technically, IPv6 is designed for multiple addresses on each interface, so the secondary (alias) parameter should not be needed at all. However, using ifconfig, we must abide by it's methods of usage. IPv6 addresses should be put inline with the IPv4 addresses under the alias numbering scheme, and things will hold together. Out of curiosity, why are you using a /48 prefixlen? I understand the /128 (when it is not inside of another assigned prefix), but IMHO, you should only use a /64 on an interface. Steve