From owner-freebsd-questions@FreeBSD.ORG Sun Feb 15 18:37:51 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 ED51A1065670 for ; Sun, 15 Feb 2009 18:37:51 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: from ibctech.ca (v6.ibctech.ca [IPv6:2607:f118::b6]) by mx1.freebsd.org (Postfix) with SMTP id 88DF18FC19 for ; Sun, 15 Feb 2009 18:37:51 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: (qmail 96649 invoked by uid 80); 15 Feb 2009 18:39:09 -0000 Received: from 64.39.177.10 (SquirrelMail authenticated user steve@ibctech.ca) by webmail.ibctech.ca with HTTP; Sun, 15 Feb 2009 13:39:09 -0500 (EST) Message-ID: <3859.64.39.177.10.1234723149.squirrel@webmail.ibctech.ca> Date: Sun, 15 Feb 2009 13:39:09 -0500 (EST) From: "Steve Bertrand" To: "Steve Bertrand" User-Agent: SquirrelMail/1.4.11 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Reinhard Haller , 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: Sun, 15 Feb 2009 18:37:52 -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. I want to add to my post that it is not advisable to use your primary loopback interface for anything other than localhost. Keep lo0 as is, and use loN interfaces instead. To add new loopback interfaces, in rc.conf add: cloned_interfaces="lo1 lo2 lo3" #etc ...and then, add an 'UP' entry to ifconfig prior to interface use: ifconfig_lo1="UP" ifconfig_lo1="inet ..." ifconfig_lo1_alias0="inet6 ..." # etc. Steve