From owner-freebsd-net@FreeBSD.ORG Tue May 17 07:57:27 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 461F01065678 for ; Tue, 17 May 2011 07:57:27 +0000 (UTC) (envelope-from spork@bway.net) Received: from xena.bway.net (xena.bway.net [216.220.96.26]) by mx1.freebsd.org (Postfix) with ESMTP id 1054A8FC1B for ; Tue, 17 May 2011 07:57:26 +0000 (UTC) Received: (qmail 73523 invoked by uid 0); 17 May 2011 07:30:45 -0000 Received: from smtp.bway.net (216.220.96.25) by xena.bway.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 17 May 2011 07:30:45 -0000 Received: (qmail 73520 invoked by uid 90); 17 May 2011 07:30:45 -0000 Received: from unknown (HELO hotlap.nat.fasttrackmonkey.com) (spork@96.57.144.66) by smtp.bway.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 17 May 2011 07:30:45 -0000 Date: Tue, 17 May 2011 03:30:44 -0400 (EDT) From: Charles Sprickman X-X-Sender: spork@hotlap.nat.fasttrackmonkey.com To: freebsd-net@freebsd.org Message-ID: User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: IPv6 alias masks/masks for routed aliases X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2011 07:57:27 -0000 Hello, I'm having trouble finding the canonical answer on two uses of interface aliases. First, the easy one. For IPv6 aliases, what is the proper subnet? I've found some old info on the WIDE site stating that it should be the same as the main interface (ie: if I've got a /48, my alias should use /48 as well). This runs contrary to what I know of IPv4 aliases - if you've already got another IP on the adapter, further aliases in the same subnet should be created with a /32 mask. And the second one, which is also probably easy. We're going to move at some point from a bunch of subnets on the same wire to having our own router that gets our blocks routed to it. At that point I'd like to move to routing individual IPs (or small subnets) to each host behind the router. For example, say we have the following routed to our router: 10.1.0.0/27 10.2.0.0/27 10.3.0.0/27 All the hosts behind our router are in 10.1.0.0/27. I want to send some IPs from 10.2.0.0/27 and 10.3.0.0/27 to a host at 10.1.0.2, so I do the equivalent of "ip route 10.2.0.0 255.255.255.248 10.1.0.2" (cisco speak) on the router box. How should the aliases on 10.1.0.2 be defined? Should they all have /32 masks? Should the first get a /29 and the rest a /32? Is this even a valid config? In reality, we have way more subnets, totally non-contiguous, varying masks. With VRRP on the provider's side, we immediately lose 2 IPs from each subnet in our current setup, plus the network and broadcast IPs. I'm hoping that in a routed setup I can regain not only the VRRP IPs but the top and bottom of each subnet... Considering the scarcity of IPs these days, that would be a big help. Thanks, Charles