From owner-freebsd-questions@FreeBSD.ORG Thu Jun 25 19:54:57 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 E0AD1106566C for ; Thu, 25 Jun 2009 19:54:57 +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 90ED28FC08 for ; Thu, 25 Jun 2009 19:54:57 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by yxe11 with SMTP id 11so111826yxe.3 for ; Thu, 25 Jun 2009 12:54:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=XzTRgv14WqD/ctNTqWqq2W5jUoUtq0/2g0sK9Jy0eoU=; b=YMVFm7lKVqJDaujwh+qJX7Er8dlcP5JrHjL/h8WQ4QUP/RycgKirY//KcICLPbT1jC d+Ez32kWQayQ/MLYpWSrpszRYNzmRKxyZABWf3B8BZOjtAVbxsQCxLxxDdIt1KC/nr1p 4cS0TvcOaJYhAp/tpOlorfmtlKq2mGnaXCYTk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=S8J+5geSHRGMsm6sUE7My8ddUSB+du7/qT4noxkAWZ1dBA6QqZpAnB6Ylz4EzNU4op ySkf7QjF7iLe01IJIyOB/MZ4LFx1epOW+7fjUatrjqf0boDoQLW8BSw2oBRjlZ6nUxIJ bej3vDcC2Y9QVvUbScIKiWFAgXOl8IiposHlc= MIME-Version: 1.0 Received: by 10.151.128.5 with SMTP id f5mr5357361ybn.36.1245959697074; Thu, 25 Jun 2009 12:54:57 -0700 (PDT) Date: Thu, 25 Jun 2009 14:54:57 -0500 Message-ID: <6201873e0906251254m1a5ccd9do6479f71310f831b@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: 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: Thu, 25 Jun 2009 19:54:58 -0000 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