From owner-freebsd-net@FreeBSD.ORG Mon May 28 13:28:26 2012 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 4E208106564A; Mon, 28 May 2012 13:28:26 +0000 (UTC) (envelope-from "."@babolo.ru) Received: from smtp1.babolo.ru (smtp1.babolo.ru [195.9.14.139]) by mx1.freebsd.org (Postfix) with ESMTP id BF1C58FC0A; Mon, 28 May 2012 13:28:25 +0000 (UTC) Received: from cicuta.babolo.ru (cicuta.babolo.ru [194.58.246.5]) by smtp1.babolo.ru (8.14.2/8.14.2) with SMTP id q4SDPR9D088821; Mon, 28 May 2012 17:25:27 +0400 (MSK) (envelope-from .@babolo.ru) Received: (nullmailer pid 30217 invoked by uid 136); Mon, 28 May 2012 13:23:00 -0000 Date: Mon, 28 May 2012 17:23:00 +0400 From: Aleksandr A Babaylov <.@babolo.ru> To: Darren Reed Message-ID: <20120528132300.GA30188@babolo.ru> References: <4FC36377.1080306@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FC36377.1080306@freebsd.org> Cc: freebsd-net@freebsd.org Subject: Re: Point-to-point connection between jails? 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: Mon, 28 May 2012 13:28:26 -0000 On Mon, May 28, 2012 at 09:37:27PM +1000, Darren Reed wrote: > I've looked through the list of network interfaces that are > supported with FreeBSD and none seem to meet my needs. What > I want is a network interface that I can configure up in > jail A with address 10.1.1.1 and for which I can configure > a mate in jail B with the address 10.2.2.2 and use the > network interface as the means by which two jails can > directly communicate with each other without the need to > send any packets out of the machine. Or another way to do > this would be to have a virtual network (something like the > "internal network" that VirtualBox has or the host only > network supported by VMWware Workstation) defined somewhere > and for there to be a specific driver that could be > configured and attached to a jail and that virtual network > so that you could have N:M communication between jails. > > Is what I'm looking for already present and google is failing > me or is the above functionality the basis for future work, > be it planned or otherwise? ifconfig lo1 create ifconfig lo1 inet 127.1.2.3/24 ifconfig lo1 inet 127.1.2.4/32 alias launch jail A with IP 127.1.2.3 and jail B with IP 127.1.2.4 No any packet leaves host. 127.1.2.0/24 will be something like the "internal network"