From owner-freebsd-current@FreeBSD.ORG Tue Nov 22 01:39:37 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9856106566B for ; Tue, 22 Nov 2011 01:39:37 +0000 (UTC) (envelope-from dan@sunsaturn.com) Received: from sunsaturn.com (mail1.sunsaturn.com [IPv6:2001:49f0:4004::2]) by mx1.freebsd.org (Postfix) with ESMTP id 832CE8FC0C for ; Tue, 22 Nov 2011 01:39:37 +0000 (UTC) Received: by sunsaturn.com (Postfix, from userid 1001) id 02376119CAA; Mon, 21 Nov 2011 19:39:36 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sunsaturn.com; s=gamma; t=1321925977; bh=bZ9mn6RdlMELumdY6xCY+e2Tv5HjMo2rThwRGUQ0KnA=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=lQI7MR7hAY8AGR57TlmRrXW4nSqY9ujpgnQysQ8DLCy44E+wLyPGgTqvK9ykDi9dB C4i/EAAlpanuDW9QdGurKEbNmplzBK38N9jrxtSMVplreT+lLPOvBTSgVcRxYsvq4C 1ebNMP2UgDEf2HNAYseNVVvQ4S2H6cqj+B47X+bY= Received: from localhost (localhost [127.0.0.1]) by sunsaturn.com (Postfix) with ESMTP id F16B7119CA7; Mon, 21 Nov 2011 19:39:36 -0600 (CST) Date: Mon, 21 Nov 2011 19:39:36 -0600 (CST) From: Dan The Man To: Stefan Bethke In-Reply-To: <5F3A6014-8DD4-4FDF-88E4-2DFF2322F963@lassitu.de> Message-ID: References: <5F3A6014-8DD4-4FDF-88E4-2DFF2322F963@lassitu.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: rc.conf changes IPV6 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2011 01:39:37 -0000 On Mon, 21 Nov 2011, Stefan Bethke wrote: > Am 21.11.2011 um 20:25 schrieb Dan The Man: > >> I notice we have changed way IPV6 is done in rc.conf now. >> I assume someone will update: >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ipv6.html >> >> My question now concerns aliases, and what the norm will end up being. >> Here is example below: >> Here we have the new layout with IPV6, the below works fine, however since >> the ifconfig lines for IPV4 and IPV6 are essentially the same other than the actual "inet" and "inet6", will it be ok to start with alias0 for both IPV4 and IPV6, or should I in this example be starting at alias4 for IPV6? >> I would like idea to keep it way it is each protocal starting at alias0. >> >> >> #GATEWAY >> defaultrouter="67.159.46.233" >> hostname="sunsaturn.com" >> #IPV4 >> ifconfig_em1="inet 67.159.46.238 netmask 255.255.255.248" >> ifconfig_em1_alias0="inet 67.159.46.234 netmask 255.255.255.248" >> ifconfig_em1_alias1="inet 67.159.46.235 netmask 255.255.255.248" >> ifconfig_em1_alias2="inet 67.159.46.236 netmask 255.255.255.248" >> ifconfig_em1_alias3="inet 67.159.46.237 netmask 255.255.255.248" >> >> #IPV6 >> ipv6_activate_all_interfaces="YES" >> ipv6_network_interfaces="em1" >> ipv6_defaultrouter="2001:49f0:4004:0000:0000:0000:0000:0001" >> ifconfig_em1_ipv6="inet6 2001:49f0:4004:0000:0000:0000:0000:0002 prefixlen 48" >> ifconfig_em1_alias0="inet6 2001:49f0:4004:0000:0000:0000:0000:0003 prefixlen 48" >> ifconfig_em1_alias1="inet6 2001:49f0:4004:0000:0000:0000:0000:0004 prefixlen 48" > > Remember that rc.conf follows shell syntax and sematics, so the second _alias0 and _alias1 will overwrite the previous ones. > > In 9.0 you can use the ipv4_addrs_ variable to set both the IPv4 "main" address as well as "alias" addresses, see rc.conf(5). There doesn't seem to be an equivalent IPv6 option, as best as I can tell. > > > Stefan > > -- > Stefan Bethke Fon +49 151 14070811 > > > > You would assume so Stefan, that the duplicate alias0 would overwrite, but it seems since ifconfig separates the namespace for IPV4/IPV6 it actually works. Which is good news I would assume, as I have time to time added a new IPV4 alias, and would have forgotten to update IPV6 alias numbers many times unless I revise my config to put ipv4 and ipv6 aliases together in rc.conf instead of separating the protocals in there. I looked at man page, thats a very nice config option ipv4_addrs_, I agree it would be nice to have an IPV6 equivalent considering how big the IPV6 range is. Dan. -- Dan The Man CTO/ Senior System Administrator Websites, Domains and Everything else http://www.SunSaturn.com Email: Dan@SunSaturn.com