From owner-freebsd-current@FreeBSD.ORG Fri Feb 29 15:48:56 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 B8B281065674 for ; Fri, 29 Feb 2008 15:48:56 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from postfix2-g20.free.fr (postfix2-g20.free.fr [212.27.60.43]) by mx1.freebsd.org (Postfix) with ESMTP id 6B72C8FC2B for ; Fri, 29 Feb 2008 15:48:56 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by postfix2-g20.free.fr (Postfix) with ESMTP id 534B423F1EBE for ; Fri, 29 Feb 2008 14:25:29 +0100 (CET) Received: from smtp5-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp5-g19.free.fr (Postfix) with ESMTP id 142FB3F61AB; Fri, 29 Feb 2008 16:26:02 +0100 (CET) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id B93903F61EF; Fri, 29 Feb 2008 16:26:01 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 4EDF29BF12; Fri, 29 Feb 2008 15:25:42 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 3FD64405B; Fri, 29 Feb 2008 16:25:42 +0100 (CET) Date: Fri, 29 Feb 2008 16:25:42 +0100 From: Jeremie Le Hen To: Julian Elischer Message-ID: <20080229152542.GD94339@obiwan.tataz.chchile.org> References: <47C44420.6050009@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47C44420.6050009@elischer.org> User-Agent: Mutt/1.5.15 (2007-04-06) 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: Fri, 29 Feb 2008 15:48:56 -0000 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. Any explanation will be welcome :). Thanks, [1] http://lists.freebsd.org/pipermail/freebsd-current/2008-February/083908.html Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >