From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 23:56:28 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 972CC106567F for ; Wed, 29 Oct 2008 23:56:28 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id 671978FC0A for ; Wed, 29 Oct 2008 23:56:28 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id E07BA11A2CAB; Wed, 29 Oct 2008 20:56:27 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 37792-02; Wed, 29 Oct 2008 20:56:25 -0300 (ADT) Received: from [192.168.1.2] (blk-224-204-104.eastlink.ca [24.224.204.104]) by hub.org (Postfix) with ESMTPA id D51E811A2874; Wed, 29 Oct 2008 20:56:24 -0300 (ADT) Date: Wed, 29 Oct 2008 20:56:22 -0300 From: "Marc G. Fournier" To: Bakul Shah , "Marc G. Fournier" Message-ID: <10559F9E70D606BEE694D258@ganymede.hub.org> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 23:56:28 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You nailed it ... I was missing the 'tap.up_on_open=1' ... once I put that in place, it works like a charm ... Thanks ... - --On Tuesday, October 28, 2008 22:37:58 -0700 Bakul Shah wrote: > 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. - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkI+CYACgkQ4QvfyHIvDvNuawCfQbUzADaZHkqvVRt9fwZ7H1Gm MGIAoJCUFsfUoCh2ty41nmjDGsSq0ec4 =n/85 -----END PGP SIGNATURE-----