From owner-freebsd-questions@FreeBSD.ORG Thu Jul 8 17:14:08 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 7AF5C16A4CE for ; Thu, 8 Jul 2004 17:14:08 +0000 (GMT) Received: from mediamonks.com (siripandita.mediamonks.net [62.192.127.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB07F43D67 for ; Thu, 8 Jul 2004 17:14:07 +0000 (GMT) (envelope-from root@mediamonks.net) Received: from manrikigusari [62.108.12.68] by mediamonks.com with ESMTP (SMTPD32-8.12) id A0D63695014A; Thu, 08 Jul 2004 19:13:58 +0200 From: "Terrence Koeman" To: "'Andrew Kilpatrick'" , Date: Thu, 8 Jul 2004 19:13:56 +0200 Organization: MediaMonks B.V. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: <200407081258.20612.andrew@andrewkilpatrick.org> Thread-Index: AcRlDkQefsDBca+ETuSLTQgwhlrNcAAADnQg Message-Id: <200407081913970.SM07768@manrikigusari> X-Info: This e-mail was scanned for spam and viruses by mail.mediamonks.net. X-Info: Please send abuse reports about this e-mail to abuse@mediamonks.net. Subject: RE: IP Aliasing Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: root@mediamonks.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2004 17:14:08 -0000 Have you tried using: ifconfig vr0 alias 10.0.38.237 netmask 255.0.0.0 broadcast 10.255.255.255 ifconfig vr0 alias 10.255.38.237 netmask 255.255.255.255 broadcast 10.255.255.255 -- Regards, Terrence Koeman MediaMonks B.V. (www.mediamonks.com) Please quote all replies in correspondence. > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of > Andrew Kilpatrick > Sent: Thursday, July 08, 2004 18:58 > To: freebsd-questions@freebsd.org > Subject: IP Aliasing Question > > 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 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > >