From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 05:37:59 2008 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 B2B961065694 for ; Wed, 29 Oct 2008 05:37:59 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id 906D48FC14 for ; Wed, 29 Oct 2008 05:37:59 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id C638C5B46; Tue, 28 Oct 2008 22:37:58 -0700 (PDT) To: "Marc G. Fournier" In-reply-to: Your message of "Wed, 29 Oct 2008 01:38:38 -0300." <7762927ECAFF08B969F9E5A0@ganymede.hub.org> References: <20081029041428.DC80C5B46@mail.bitblocks.com> <7762927ECAFF08B969F9E5A0@ganymede.hub.org> Comments: In-reply-to "Marc G. Fournier" message dated "Wed, 29 Oct 2008 01:38:38 -0300." Date: Tue, 28 Oct 2008 22:37:58 -0700 From: Bakul Shah Message-Id: <20081029053758.C638C5B46@mail.bitblocks.com> Cc: freebsd-net@freebsd.org Subject: Re: Problem with Bridging ... and bge devices under FreeBSD 7.x? 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: Wed, 29 Oct 2008 05:37:59 -0000 On Wed, 29 Oct 2008 01:38:38 -0300 "Marc G. Fournier" wrote: > > I only have one VM running on one server ... Ok. Here are some debugging suggestions. - /etc/sysctl.conf should have the following; net.link.tap.user_open=1 net.link.tap.up_on_open=1 run sysctl manually to set these. - if you are running qemu as user foo (and not root) you will need own tap0 foo:foo in /etc/devfs.conf and do /etc/rc.d/devfs restart. - start qemu with -monitor stdio as this will give you a command line interface to qemu. Now you can type info network to see what qemu sees. You should see something like VLAN 0 devices: tap: ifname=tap0 setup_script=/usr/local/etc/qemu-ifup rtl8139 pci macaddr=52:54:00:d2:56:03 - I no longer remember if qemu-ifup is needed but without it you may need to manually bring up tap0. - tcpdump on tap0 to see if ping packets (sent from the VM) get through. Next tcpdump on bridge0. Next tcpdump on bge0. I'd still like to see the topology and ip addresses on various interfaces.