From owner-freebsd-emulation@FreeBSD.ORG Thu Aug 2 19:38:56 2007 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 730B516A41B for ; Thu, 2 Aug 2007 19:38:56 +0000 (UTC) (envelope-from tnelson@onresolve.com) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.191]) by mx1.freebsd.org (Postfix) with ESMTP id 0C6EE13C442 for ; Thu, 2 Aug 2007 19:38:56 +0000 (UTC) (envelope-from tnelson@onresolve.com) Received: from [212.227.126.202] (helo=mrvnet.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1IGgDL-0006jX-00 for freebsd-emulation@freebsd.org; Thu, 02 Aug 2007 21:20:03 +0200 Received: from [172.23.1.26] (helo=xchgsmtp.exchange.xchg) by mrvnet.kundenserver.de with smtp (Exim 3.35 #1) id 1IGgDL-0001hq-01 for freebsd-emulation@freebsd.org; Thu, 02 Aug 2007 21:20:03 +0200 Received: from mapibe05.exchange.xchg ([172.23.1.25]) by xchgsmtp.exchange.xchg with Microsoft SMTPSVC(6.0.3790.3959); Thu, 2 Aug 2007 21:20:00 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 2 Aug 2007 21:18:56 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Qemu networking issue thread-index: AcfVOfh0c098/En2SI24XZB2V6NOew== From: "Trent Nelson" To: X-OriginalArrivalTime: 02 Aug 2007 19:20:00.0643 (UTC) FILETIME=[1EE40D30:01C7D53A] X-Provags-ID: kundenserver.de abuse@kundenserver.de ident:@172.23.1.26 Subject: Qemu networking issue X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 19:38:56 -0000 [ Please CC me on replies as I'm not subscribed to this list. ] I've got a 6.2-STABLE box that I'm running qemu 0.9.0 on, hosting a Windows 2003 guest OS. I've got an em0 interface configured with the IP address 216.203.62.30 (default route: 216.203.62.29), as well as ten aliased (public) IPs, one of which happens to be 205.97.38.47, which I want to dedicate to this particular virtual machine, as if it were a jail. How do I get the Windows guest to use the 205.97.38.47 IP address? After a day of googling and trying half a dozen different approaches, nothing I try seems to work. I've tried the sysctl net.link.ether.bridge and ifconfig bridge0 approaches mentioned in [1-4]. This initially involved having a tap0 inet 0.0.0.0 broadcast 0.255.255.255 interface, and a bridge0 with em0,tap0 (and no assigned IP for the bridge), but when I tried to tell the Windows box to use IP 205.97.38.47 (after I've removed this aliased IP from em0), subnet 0xffffff00, gateway 216.203.62.29, the local connection properties dialog would hang with 'Acquiring address...' then eventually fail. If I picked an IP address like 192.168.0.1, it would go through, but there wouldn't actually be any network connectivity between the host/guest. When 205.97.38.47 was aliased to em0, Windows would complain that there was another IP on the network with the same IP (which is to be expected I guess), and dmesg would have a bunch of arp messages about the qemu guest mac address '52:54:00:12:34:56' trying to use em0's 205.97.38.47, also to be expected. I tried a few things like using the qemu mac address for tap0, setting tap0's inet to 205.97.38.47 instead of 0.0.0.0, keeping 0.0.0.0 but having 205.97.38.47 as an alias, setting bridge0's inet to 205.97.38.47 and playing with the arp table to coerce things further, but nothing resulted in traffic between the host/guest. Anyone have any insight? Trent. [1]: http://www.nabble.com/Virtual-network-with-qemu-t3940434.html [2]: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=3D111250+0+archive/2007/free= b sd-emulation/20070603.freebsd-emulation [3]: http://forums.bsdnexus.com/viewtopic.php?id=3D1563 [4]: http://acidos.bandwidth-junkies.net/index.php?Sect=3Dqemu=20