From owner-freebsd-virtualization@freebsd.org Thu Mar 17 15:39:09 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BAF5DAD2458 for ; Thu, 17 Mar 2016 15:39:09 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: from quine.pinyon.org (quine.pinyon.org [65.101.5.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 972A3DC4 for ; Thu, 17 Mar 2016 15:39:09 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: by quine.pinyon.org (Postfix, from userid 122) id 6517016034D; Thu, 17 Mar 2016 08:39:08 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on quine.pinyon.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Received: from feyerabend.n1.pinyon.org (feyerabend.n1.pinyon.org [10.0.10.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by quine.pinyon.org (Postfix) with ESMTPSA id B1291160336 for ; Thu, 17 Mar 2016 08:39:05 -0700 (MST) Subject: Re: newbie: bhyve basic networking problem To: freebsd-virtualization@freebsd.org References: <56EA24B6.10603@pinyon.org> <56EA2C06.6080705@freebsd.org> From: "Russell L. Carter" Message-ID: <56EACF99.6080005@pinyon.org> Date: Thu, 17 Mar 2016 08:39:05 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <56EA2C06.6080705@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2016 15:39:09 -0000 On 03/16/16 21:01, Allan Jude wrote: > On 2016-03-16 23:29, Russell L. Carter wrote: >> Greetings, >> >> I have installed the latest -current snapshot iso as a bhyve guest on >> a -stable host, and I am unable to ping the network from either side. >> This is my first attempt at bhyve virtualization so likely I have made >> an error somewhere. >> >> I'm using the git iohyve script to orchestrate the install, but from >> looking at the commits and the script source (which is written quite >> beautifully), I don't see anything troublesome. >> >> So here is what I see from inside the bhyve FreeBSD-current VM: >> >> root@freebsd-current:~ # route -n show default >> route to: 0.0.0.0 >> destination: 0.0.0.0 >> mask: 0.0.0.0 >> gateway: 10.0.10.5 >> fib: 0 >> interface: vtnet0 >> flags: >> recvpipe sendpipe ssthresh rtt,msec mtu weight expire >> 0 0 0 0 1500 1 0 >> >> root@freebsd-current:~ # ifconfig -a >> vtnet0: flags=8943 >> metric 0 mtu 1500 >> options=80028 >> ether 00:a0:98:98:e6:ad >> inet 10.0.10.20 netmask 0xffffff00 broadcast 10.0.10.255 >> nd6 options=29 >> media: Ethernet 10Gbase-T >> status: active >> lo0: flags=8049 metric 0 mtu 16384 >> options=600003 >> inet6 ::1 prefixlen 128 >> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 >> inet 127.0.0.1 netmask 0xff000000 >> nd6 options=21 >> groups: lo >> >> And then, on the host side: >> >> root@feyerabend> ifconfig -a >> em0: flags=8943 metric 0 >> mtu 1500 >> >> options=4219b >> >> ether 00:15:17:bc:29:ba >> inet 10.0.10.6 netmask 0xffffff00 broadcast 10.0.10.255 >> nd6 options=29 >> media: Ethernet autoselect (1000baseT ) >> status: active >> em1: flags=8843 metric 0 mtu 1500 >> >> options=4019b >> >> ether 00:15:17:bc:29:bb >> inet 10.0.11.6 netmask 0xffffff00 broadcast 10.0.11.255 >> nd6 options=29 >> media: Ethernet autoselect (1000baseT ) >> status: active >> lo0: flags=8049 metric 0 mtu 16384 >> options=600003 >> inet6 ::1 prefixlen 128 >> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 >> inet 127.0.0.1 netmask 0xff000000 >> nd6 options=21 >> bridge0: flags=8843 metric 0 mtu >> 1500 >> description: iohyve-bridge >> ether 02:63:ec:5e:4b:00 >> nd6 options=1 >> id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 >> maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 >> root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 >> member: em0 flags=143 >> ifmaxaddr 0 port 1 priority 128 path cost 20000 >> tap0: flags=8843 metric 0 mtu 1500 >> description: iohyve-FreeBSD-current >> options=80000 >> ether 00:bd:81:b8:05:00 >> nd6 options=29 >> media: Ethernet autoselect >> status: active >> Opened by PID 1370 >> root@feyerabend> route -n show default >> route to: 0.0.0.0 >> destination: 0.0.0.0 >> mask: 0.0.0.0 >> gateway: 10.0.10.5 >> fib: 0 >> interface: em0 >> flags: >> recvpipe sendpipe ssthresh rtt,msec mtu weight expire >> 0 0 0 0 1500 1 0 >> root@feyerabend> >> >> Any ideas appreciated. >> >> Best regards, >> Russell >> _______________________________________________ >> freebsd-virtualization@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> To unsubscribe, send any mail to >> "freebsd-virtualization-unsubscribe@freebsd.org" > > Your tap0 is not a member of the bridge0. > > run: ifconfig bridge0 addm tap0 > Doh! Thanks! I have to say this bhyve+zfs stuff seems pretty cool to an old fart... Russell