From owner-freebsd-virtualization@freebsd.org Thu Mar 17 04:01:15 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 2C66AAD3C1C for ; Thu, 17 Mar 2016 04:01:15 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id 0CD096DA for ; Thu, 17 Mar 2016 04:01:14 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 08C0ED9BE for ; Thu, 17 Mar 2016 04:01:14 +0000 (UTC) Subject: Re: newbie: bhyve basic networking problem To: freebsd-virtualization@freebsd.org References: <56EA24B6.10603@pinyon.org> From: Allan Jude Message-ID: <56EA2C06.6080705@freebsd.org> Date: Thu, 17 Mar 2016 00:01:10 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56EA24B6.10603@pinyon.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4T3WqJXuH3lDNQNUbQoJxutrTfmEi0f5m" 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 04:01:15 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4T3WqJXuH3lDNQNUbQoJxutrTfmEi0f5m Content-Type: multipart/mixed; boundary="6RF6p0JsDlNONPj6e09JjUXiHLLjllx26" From: Allan Jude To: freebsd-virtualization@freebsd.org Message-ID: <56EA2C06.6080705@freebsd.org> Subject: Re: newbie: bhyve basic networking problem References: <56EA24B6.10603@pinyon.org> In-Reply-To: <56EA24B6.10603@pinyon.org> --6RF6p0JsDlNONPj6e09JjUXiHLLjllx26 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016-03-16 23:29, Russell L. Carter wrote: > Greetings, >=20 > 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. >=20 > 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. >=20 > So here is what I see from inside the bhyve FreeBSD-current VM: >=20 > 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 >=20 > root@freebsd-current:~ # ifconfig -a > vtnet0: flags=3D8943 > metric 0 mtu 1500 > options=3D80028 > ether 00:a0:98:98:e6:ad > inet 10.0.10.20 netmask 0xffffff00 broadcast 10.0.10.255 > nd6 options=3D29 > media: Ethernet 10Gbase-T > status: active > lo0: flags=3D8049 metric 0 mtu 16384 > options=3D600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=3D21 > groups: lo >=20 > And then, on the host side: >=20 > root@feyerabend> ifconfig -a > em0: flags=3D8943 metri= c 0 > mtu 1500 >=20 > options=3D4219b >=20 > ether 00:15:17:bc:29:ba > inet 10.0.10.6 netmask 0xffffff00 broadcast 10.0.10.255 > nd6 options=3D29 > media: Ethernet autoselect (1000baseT ) > status: active > em1: flags=3D8843 metric 0 mtu = 1500 >=20 > options=3D4019b >=20 > ether 00:15:17:bc:29:bb > inet 10.0.11.6 netmask 0xffffff00 broadcast 10.0.11.255 > nd6 options=3D29 > media: Ethernet autoselect (1000baseT ) > status: active > lo0: flags=3D8049 metric 0 mtu 16384 > options=3D600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=3D21 > bridge0: flags=3D8843 metric 0 = mtu > 1500 > description: iohyve-bridge > ether 02:63:ec:5e:4b:00 > nd6 options=3D1 > 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=3D143 > ifmaxaddr 0 port 1 priority 128 path cost 20000 > tap0: flags=3D8843 metric 0 mtu= 1500 > description: iohyve-FreeBSD-current > options=3D80000 > ether 00:bd:81:b8:05:00 > nd6 options=3D29 > 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> >=20 > Any ideas appreciated. >=20 > 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 --=20 Allan Jude --6RF6p0JsDlNONPj6e09JjUXiHLLjllx26-- --4T3WqJXuH3lDNQNUbQoJxutrTfmEi0f5m Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJW6iwJAAoJEBmVNT4SmAt+fYAQALEY7+id2gvR3EPveSkJF6uN Uslf7qbQb0/kQCUKsbAtw/gKjTieJlkYLogep7gOSWSxeuA8KyrLHLLZoVwIadLP nYAg2GuMv0j8WhUW4+QpjknHF4Ao5+WmZBhgUZw9h8ZuUi5QVTF8DImbeW+F8p3R 79kBWtL0NWUZfw3sv6cwDYIgbWb/fNqW0yUoLvPWmgSGgYZuMSc/yeIs0pCyFRg0 na+E30oFu2Um2bqF51+16gpvpBSUtch/j6DupXOU0ru+q26dnCtiQ9vOFk3WbS/+ VHt39Cgn9K3Ane6uVQooszNi8/ijs2Tr0/dm51tjjVJSkOwdwsMyWvB7+g23Sslo +4+nFbXtIkYdSdBDh68cqCpPznR1E+wJFFL5JAf7oYVwRkVeSzoZM+/5E8Mk4ZbH 1l1EVnJ8Z6FiKwopW7gsQbahstTlBeYiajEGO/4CgcgQmyvrD/UYNMLs1QSBXrxm 5BKgyNW2YX8mTLGr3/ANKdtrmK0qktSoLgEqfxVvcFadtLHUCHUa/Epsokmv+RHu R9DBR6/zihY2bu1tPE5Wm0hf7UyAJmUTmZIriTKdqWaVMbgjTE+ArB9fnaUt04xK yZ2Gjfm90pkSsDL+Ze6qCZCn9jWOnhNPE8pF83eNTqsnIc2OjDWfMRxZx/omFHQG biR3v0uJlrR7q7iRAS73 =2HsS -----END PGP SIGNATURE----- --4T3WqJXuH3lDNQNUbQoJxutrTfmEi0f5m--