Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2016 00:01:10 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: newbie: bhyve basic networking problem
Message-ID:  <56EA2C06.6080705@freebsd.org>
In-Reply-To: <56EA24B6.10603@pinyon.org>
References:  <56EA24B6.10603@pinyon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--4T3WqJXuH3lDNQNUbQoJxutrTfmEi0f5m
Content-Type: multipart/mixed; boundary="6RF6p0JsDlNONPj6e09JjUXiHLLjllx26"
From: Allan Jude <allanjude@freebsd.org>
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: <UP,GATEWAY,DONE,STATIC>
>  recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
>        0         0         0         0      1500         1         0
>=20
> root@freebsd-current:~ # ifconfig -a
> vtnet0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST>
> metric 0 mtu 1500
>         options=3D80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
>         ether 00:a0:98:98:e6:ad
>         inet 10.0.10.20 netmask 0xffffff00 broadcast 10.0.10.255
>         nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: Ethernet 10Gbase-T <full-duplex>
>         status: active
> lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
>         options=3D600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
>         inet6 ::1 prefixlen 128
>         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
>         inet 127.0.0.1 netmask 0xff000000
>         nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
>         groups: lo
>=20
> And then, on the host side:
>=20
> root@feyerabend> ifconfig -a
> em0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metri=
c 0
> mtu 1500
>=20
> options=3D4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,=
WOL_MAGIC,VLAN_HWTSO>
>=20
>         ether 00:15:17:bc:29:ba
>         inet 10.0.10.6 netmask 0xffffff00 broadcast 10.0.10.255
>         nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: Ethernet autoselect (1000baseT <full-duplex>)
>         status: active
> em1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu =
1500
>=20
> options=3D4019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,=
VLAN_HWTSO>
>=20
>         ether 00:15:17:bc:29:bb
>         inet 10.0.11.6 netmask 0xffffff00 broadcast 10.0.11.255
>         nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: Ethernet autoselect (1000baseT <full-duplex>)
>         status: active
> lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
>         options=3D600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
>         inet6 ::1 prefixlen 128
>         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
>         inet 127.0.0.1 netmask 0xff000000
>         nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
> bridge0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 =
mtu
> 1500
>         description: iohyve-bridge
>         ether 02:63:ec:5e:4b:00
>         nd6 options=3D1<PERFORMNUD>
>         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<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
>                 ifmaxaddr 0 port 1 priority 128 path cost 20000
> tap0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu=
 1500
>         description: iohyve-FreeBSD-current
>         options=3D80000<LINKSTATE>
>         ether 00:bd:81:b8:05:00
>         nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         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: <UP,GATEWAY,DONE,STATIC>
>  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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56EA2C06.6080705>