From owner-freebsd-current@FreeBSD.ORG Sat Mar 1 01:41:11 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40B4E106566B for ; Sat, 1 Mar 2008 01:41:11 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outD.internet-mail-service.net (outD.internet-mail-service.net [216.240.47.227]) by mx1.freebsd.org (Postfix) with ESMTP id 2A11C8FC1C for ; Sat, 1 Mar 2008 01:41:10 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Fri, 29 Feb 2008 17:41:10 -0800 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 9138F2D6014; Fri, 29 Feb 2008 17:41:09 -0800 (PST) Message-ID: <47C8B448.7050005@elischer.org> Date: Fri, 29 Feb 2008 17:41:28 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Jeremie Le Hen References: <47C44420.6050009@elischer.org> <20080229152542.GD94339@obiwan.tataz.chchile.org> In-Reply-To: <20080229152542.GD94339@obiwan.tataz.chchile.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: why vimage? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2008 01:41:11 -0000 Jeremie Le Hen wrote: > Hi Julian, > > On Tue, Feb 26, 2008 at 08:53:52AM -0800, Julian Elischer wrote: >> I can give a very simple example of something you can do trivially on >> vimage: >> >> Make three virtual machines on yhour laptop: >> The base machine and two others. >> Have the first 'other' machine be assigned an IP address on >> your HOME LAN. >> have the second virtual machine have an IP adddress on >> your WORK LAN. >> use the base machine to run encrypted tunnels from where-ever >> you happen to be to your work and home.. when you put the laptop to sleep >> (assuming the tcp sessions are quiescent (no keepalives)) >> then when you wake it up say an hour later.. as soon as the base machine has >> an IP address.. viola, your session on the virtual >> machines are still alive. > > On this post [1], Marko states: > > % Each NICs is logically attached to one and only one network stack > % instance at a time, and it receives data from upper layers and feeds > % the upper layers with mbufs in exactly the same manner as it does on > % the standard kernel. It is the link layer that demultiplexes the > % incoming traffic to the appropriate stack instance... > > As I understand it, there is only one vimage per interface. I'm surely > wrong or the setup you described wouldn't be possible. > physical interfaces can be forked out to several virtual interfaces which can be in different virtual machines.. Or the virtual interfaces could be connected to tunnels. > Any explanation will be welcome :). > Thanks, > > [1] http://lists.freebsd.org/pipermail/freebsd-current/2008-February/083908.html > > Regards,