[v6ops] IPv6 prefix to use to store IPv4 prefixes in an IPv6 IP Address Managment System?
Ray Hunter <v6ops@globis.net> Tue, 17 May 2011 14:09 UTC
Return-Path: <v6ops@globis.net>
X-Original-To: v6ops@ietfa.amsl.com
Delivered-To: v6ops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A5C5E0823 for <v6ops@ietfa.amsl.com>; Tue, 17 May 2011 07:09:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.399
X-Spam-Level:
X-Spam-Status: No, score=-2.399 tagged_above=-999 required=5 tests=[AWL=0.200, BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jTPJHHUsvAUt for <v6ops@ietfa.amsl.com>; Tue, 17 May 2011 07:09:19 -0700 (PDT)
Received: from globis01.globis.net (RayH-1-pt.tunnel.tserv11.ams1.ipv6.he.net [IPv6:2001:470:1f14:62e::2]) by ietfa.amsl.com (Postfix) with ESMTP id C7329E0821 for <v6ops@ietf.org>; Tue, 17 May 2011 07:09:18 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by globis01.globis.net (Postfix) with ESMTP id 65B69870083; Tue, 17 May 2011 16:09:17 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at globis01.globis.net
Received: from globis01.globis.net ([127.0.0.1]) by localhost (mail.globis.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1VmeW3SaiTVr; Tue, 17 May 2011 16:09:11 +0200 (CEST)
Received: from Rays-iMac.local (unknown [192.168.0.3]) (Authenticated sender: Ray.Hunter@globis.net) by globis01.globis.net (Postfix) with ESMTPA id 4D19C870023; Tue, 17 May 2011 16:09:11 +0200 (CEST)
Message-ID: <4DD28187.6000806@globis.net>
Date: Tue, 17 May 2011 16:09:11 +0200
From: Ray Hunter <v6ops@globis.net>
User-Agent: Postbox Express 1.0.1 (Macintosh/20100705)
MIME-Version: 1.0
To: Mark Smith <ipng@69706e6720323030352d30312d31340a.nosense.org>, "v6ops@ietf.org WG" <v6ops@ietf.org>
Content-Type: multipart/alternative; boundary="------------090707090908010005000306"
Subject: [v6ops] IPv6 prefix to use to store IPv4 prefixes in an IPv6 IP Address Managment System?
X-BeenThere: v6ops@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: v6ops discussion list <v6ops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/v6ops>, <mailto:v6ops-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/v6ops>
List-Post: <mailto:v6ops@ietf.org>
List-Help: <mailto:v6ops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/v6ops>, <mailto:v6ops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 May 2011 14:09:20 -0000
I recently coded a system where I handled the IPv4 addresses as IPv4 mapped IPv6 addresses = ::ffff:a.b.c.d addresses in a single table for all prefixes for an application. It was convenient in the end, but it took quite a lot of code to handle the special human readable forms properly. I can let you have the PERL library if you want. I would certainly avoid use of deprecated addresses ::0000:a.b.c.d. There is some overlap e.g. ::1 & ::0 I also found some problems with libraries handling things like ::ffff:10.0 Another equally valid approach is to use completely separate tables for IPv4 and IPv6, depending on your application. How, for example, in a firewall rules system, would you distinguish a match rule for an IPv4 mapped IPv6 address being carried over a native IPv6 packet, versus a normal native IPv4 encapsulated packet? You'd anyway need to keep track of the encapsulation on the wire. http://tools.ietf.org/html/draft-itojun-v6ops-v4mapped-harmful-02 Sometimes it's just better to treat IPv4 and IPv6 as completely separate address families. best regards, RayH > Subject: > [v6ops] IPv6 prefix to use to store IPv4 prefixes in an IPv6 IP > Address Managment System? > From: > Mark Smith <ipng@69706e6720323030352d30312d31340a.nosense.org> > Date: > Tue, 17 May 2011 20:44:23 +0930 > > To: > v6ops@ietf.org > > Content-Transfer-Encoding: > 7bit > Precedence: > list > MIME-Version: > 1.0 > Message-ID: > <20110517204423.2e2d2bc7@opy.nosense.org> > Content-Type: > text/plain; charset=US-ASCII > Message: > 4 > > > Hi, > > It recently occurred to me that it could be useful to store IPv4 prefix > information in an IPv6 IP address management system, so that both IPv4 > and IPv6 prefix information are kept in the same address > management database. > > The only question I have about doing that is what IPv6 prefix to use > for these IPv4 prefix entries. The deprecated IPv4-Compatible IPv6 > Address format would be convenient for this purpose as all bits > preceding the IPv4 prefix are zeros, making these entries very easy to > spot if you happen to be looking at the IPv6 form of them. Would that > be safe and reasonable to use the ::/96 prefix? Would it be worth me > writing up an ID proposing the recycing of this form of IPv6 address > for this purpose? > > Thanks, > Mark. > >
- Re: [v6ops] IPv6 prefix to use to store IPv4 pref… Mohacsi Janos
- [v6ops] IPv6 prefix to use to store IPv4 prefixes… Mark Smith
- Re: [v6ops] IPv6 prefix to use to store IPv4 pref… Philip Homburg
- Re: [v6ops] IPv6 prefix to use to store IPv4 pref… Mark Smith
- Re: [v6ops] IPv6 prefix to use to store IPv4 pref… Mark Smith
- [v6ops] IPv6 prefix to use to store IPv4 prefixes… Ray Hunter
- Re: [v6ops] IPv6 prefix to use to store IPv4 pref… Joel Jaeggli
- Re: [v6ops] IPv6 prefix to use to store IPv4 pref… Mark Smith
- Re: [v6ops] IPv6 prefix to use to store IPv4 pref… Mark Smith