From owner-freebsd-questions@FreeBSD.ORG Thu May 10 21:58:59 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 998FB16A400 for ; Thu, 10 May 2007 21:58:59 +0000 (UTC) (envelope-from pinhead@murus.stderror.at) Received: from murus.stderror.at (stdin.stderror.at [83.65.196.90]) by mx1.freebsd.org (Postfix) with ESMTP id 42EF813C44C for ; Thu, 10 May 2007 21:58:59 +0000 (UTC) (envelope-from pinhead@murus.stderror.at) Received: from murus.stderror.at (localhost [127.0.0.1]) by murus.stderror.at (Postfix) with ESMTP id 0681B5C25; Thu, 10 May 2007 23:58:57 +0200 (CEST) Date: Thu, 10 May 2007 23:58:57 +0200 Message-ID: <86tzukwdb2.wl%pinhead@murus.stderror.at> From: Toni Schmidbauer To: "P.U.Kruppa" In-Reply-To: <20070505074459.E16532@small> References: <20070505074459.E16532@small> User-Agent: Wanderlust Emacs Organization: stderror.at X-WWW-Home-Page: http://stderror.at X-PGP-Fingerprint: 53F2 28AE 8070 83E0 AFEC 0ABC BBF9 A34A 3ED1 3287 X-Operating-System: FreeBSD MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: Qemu Network with two virtual boxes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2007 21:58:59 -0000 At Sat, 5 May 2007 08:21:47 +0200 (CEST), P.U.Kruppa wrote: > ___________ _________________|_________________ > "Real" LAN |---| 192.168.10.1 | > ----------- | FreeBSD 6.2 | > | | | | > | ______|______ _______|______ | > | | 192.168.10.5| | 192.168.10.6 | | > | | Win2k on | | FreeBSD on | | > | | Qemu | | Qemu | | > | ------------- -------------- | > ----------------------------------- > > My real LAN uses 192.168.10.1 as gateway to the Internet. > > For now I can only connect one of the two virtual boxes to my real > network, but not both. This is how I do it: > > # kldload aio kqemu if_tap bridge > # sysctl net.link.ether.bridge_cfg=rl0,tap0 > # sysctl net.link.ether.bridge.enable=1 > # qemu-system-x86_64 -hda Win2k.img -m 512 -localtime \ > -net tap -net nic > > When now I try to connect the second virtual box, it will "steal" the > first box's network connection. i think you need two seperate tap interfaces: qemu -hda Win2k.img ... -net tap,ifname=tap0 and qemu -hda freebsd.img ... -net tap,ifname=tap1 but i'm not sure about the bridge configuration. my guess is you need two seperate clusters (see bridge(4)) sysctl net.link.ether.bridge_cfg=rl0:1,tap0:1,rl0:2,tap1:2 toni -- If you understand what you're doing, you're | toni at stderror dot at not learning anything. | Toni Schmidbauer -- Anonymous |