From owner-freebsd-questions@FreeBSD.ORG Fri Jun 26 17:25:35 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF2A61065674 for ; Fri, 26 Jun 2009 17:25:35 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id 7C9DA8FC1F for ; Fri, 26 Jun 2009 17:25:35 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by yxe11 with SMTP id 11so1204876yxe.3 for ; Fri, 26 Jun 2009 10:25:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=JpvHYIgRzFSKgVIaqcx/ZxZzweRfLuf2va57QERUXeI=; b=X/QObdo1TyWFTWXpRB5eIW/baufXmhDg/VgYMimfdjiYQD5vDRhFnx4s+0q0fnUIow tZP6vGbmDCx9KhPL9ZKv0XxFy3cevdMXWIMCYftnMGNoX32Z9vmN7/V8tMoaTkqOMKbt EY01sDgWJhutsemR9Vh1MfwUXQZ7z0Heaz6xc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=nznZBOmyTJwlOM94AZw2gqRQRQ3FHp9I7N9kUsZNS0q4AyyhFX7bx3ueVv5cAtAfvX 5hCZuqQXnoMdZyd/aeNPthaODaOk0OnCoxqXD1H1woQryWFlmAUHnguWfTEanl8rRZo6 URHytJl7emNoul54c0HibAoVimiUp4hpFu8+s= MIME-Version: 1.0 Received: by 10.151.131.13 with SMTP id i13mr482471ybn.233.1246037134834; Fri, 26 Jun 2009 10:25:34 -0700 (PDT) In-Reply-To: <6201873e0906251254m1a5ccd9do6479f71310f831b@mail.gmail.com> References: <6201873e0906251254m1a5ccd9do6479f71310f831b@mail.gmail.com> Date: Fri, 26 Jun 2009 12:25:34 -0500 Message-ID: <6201873e0906261025m60fcdf65p8e2b0ee863ca799b@mail.gmail.com> From: Adam Vande More To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: vde2 tap brings down external networking 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: Fri, 26 Jun 2009 17:25:36 -0000 On Thu, Jun 25, 2009 at 2:54 PM, Adam Vande More wrote: > I'm trying to network a couple of qemu vm together and to the outside > world. After much pain and gnashing of teeth I found a setup that works > temporarily. I start both vm's with a command similar to this: > vde_switch -hub -tap /dev/tap0 > chmod -R 666 /var/run/vde.ctl > vdeqemu -vga cirrus -localtime -hda linux-boot-0.img -hdb linux-boot-1.img > \ > -hdc linux-data-0.img -hdd linux-data-1.img -m 392 -boot c -kernel-kqemu > > ipfw divert and natd are present. > > ifconfig looks like this: > > midco# ifconfig > xl0: flags=8802 metric 0 mtu 1500 > options=9 > ether 00:04:76:d2:50:25 > media: Ethernet 10baseT/UTP (10baseT/UTP ) > status: active > nfe0: flags=8943 metric 0 > mtu 1500 > options=19b > ether 00:04:4b:04:01:28 > inet 208.107.54.67 netmask 0xfffffe00 broadcast 208.107.55.255 > media: Ethernet autoselect (100baseTX ) > status: active > lo0: flags=8049 metric 0 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > bridge0: flags=8843 metric 0 mtu > 1500 > ether e6:56:26:6d:f8:f8 > inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: nfe0 flags=143 > ifmaxaddr 0 port 2 priority 128 path cost 200000 > > ipfw show: > midco# ipfw show > 65535 1483037 1334261656 allow ip from any to any > > once I add tap0 to bridge0 I have only a few minutes to access my external > network. Once it goes down, I am unable to revive via normal methods eg > /etc/rc.d/netif restart && /etc/rc.d/routed restart. Anything going to > external network timeouts, but tap/vm stuff is great. Even destroying > vm's/bridge/tap and bringing everything up doesn't restore networking, I > have to reboot. netstat -nr looks the same before and after. > midco# netstat -nr > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 208.107.54.1 UGS 0 591581 nfe0 > 127.0.0.1 127.0.0.1 UH 0 24 lo0 > 192.168.0.0/24 link#4 UC 0 0 bridge > 208.107.54.0/23 link#2 UC 0 0 nfe0 > 208.107.54.1 00:13:5f:05:e3:d9 UHLW 2 0 nfe0 1198 > > Internet6: > Destination Gateway Flags > Netif Expire > ::1 ::1 UHL > lo0 > fe80::%lo0/64 fe80::1%lo0 U > lo0 > fe80::1%lo0 link#3 UHL > lo0 > ff01:3::/32 fe80::1%lo0 UC > lo0 > ff02::%lo0/32 fe80::1%lo0 UC > lo0 > > /var/log/messages only had arp stuff relating to bridge which I suppressed. > > Thanks, > > PS bring up qemu networking in multicast mode to achieve this hangs my > cable modem. > > -- > Adam Vande More > Disabling divert rule fixed it, but unable to get nat to work -- Adam Vande More