From owner-freebsd-questions@FreeBSD.ORG Thu Jul 8 16:58:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03EAA16A4CF for ; Thu, 8 Jul 2004 16:58:27 +0000 (GMT) Received: from pocky.capybara.org (H31.C18.B96.tor.eicat.ca [66.96.18.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2681A43D46 for ; Thu, 8 Jul 2004 16:58:23 +0000 (GMT) (envelope-from andrew@andrewkilpatrick.org) Received: from cubic.capybara.org (cubic.capybara.org [192.168.1.90]) by pocky.capybara.org (8.11.6/8.11.6) with ESMTP id i68GwKC20416 for ; Thu, 8 Jul 2004 12:58:22 -0400 (EDT) From: Andrew Kilpatrick Organization: Andrew Kilpatrick To: freebsd-questions@freebsd.org Date: Thu, 8 Jul 2004 12:58:20 -0400 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200407081258.20612.andrew@andrewkilpatrick.org> Subject: IP Aliasing Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2004 16:58:27 -0000 Hey, What I'm trying to do involves FreeBSD and IP aliases. Hopefully someone has some ideas. Here's the general idea of what I'm trying to do: I've got vr0, which is assigned to some IP address... let's say: 192.168.1.90 with a subnet mask of 255.255.255.0. This is all fine, and everything works. I'm implementing a protcol called ArtNet (which I didn't design) which uses 10.x.x.x network for controlling lighting. It's all UDP, and uses broadcast packets to 10.255.255.255. IP addresses of hosts are determined by a sort of shitty algorithm based on the MAC address, and can appear anywhere in the class A. This allows: a) IPv4 (yes, I know IPv6 would be better) and b) autoconfiguration without the need for a DHCP server. I didn't make it up, I'm just trying to make my stuff work with it. So, here's the deal.... I want to add 2 aliases to vr0 so that I can run 2 ArtNet services on the same machine. So, the aliases would look something like this: 10.0.38.237 netmask 255.0.0.0 10.255.38.237 netmask 255.0.0.0 Adding the first one like this works: ipconfig vr0 inet 10.0.38.237 netmask 255.0.0.0 alias However, adding the second fails, I'm assuming because the netmasks overlap. I can understand why this is so, but for my application I actually want this. Because programs listening on both addresses both need to receive broadcast packets sent to 10.255.255.255. So, how can this be done? Adding a second NIC is not an option. Cheers, Andrew