Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2023 13:40:25 +0200
From:      "Patrick M. Hausen" <hausen@punkt.de>
To:        Odhiambo Washington <odhiambo@gmail.com>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: bhyve VM not getting as much upload bandwidth as the host
Message-ID:  <6012E30F-056B-4E80-9FC8-1A937BBDC29D@punkt.de>
In-Reply-To: <CAAdA2WO0mNK0mSz--=XBNLK4q=d1Ubh%2B0bh5HbUVMbbSA1gbOQ@mail.gmail.com>
References:  <CAAdA2WN6FTT=Bn-p3EEGDk_-8=g_PoFicUb%2Be-ybcpKxjY5bwQ@mail.gmail.com> <096b2d73-b28c-bd6b-a6d3-2a3c3dbaea7e@h4ck.io> <CAAdA2WM8Qrro-md-Rg%2BXfj5BxNrP_A8chD6TGrxQD2G14oC86g@mail.gmail.com> <38587cf9-29a7-1246-3b64-a3cf35933717@quip.cz> <96160FBF-4E48-48E3-B26C-026CEB5B03C2@punkt.de> <CAAdA2WO0mNK0mSz--=XBNLK4q=d1Ubh%2B0bh5HbUVMbbSA1gbOQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi all,

this:

> Am 14.08.2023 um 13:32 schrieb Odhiambo Washington =
<odhiambo@gmail.com>:
> em1 is NOT a bridge member. It's the host's interface that is =
connected to the Internet.

and this:

> ifconfig_em1bridge=3D"addm em1 addm tap0 addm tap1 addm tap2 addm tap3 =
up"
> [...]
> Of course, because em1 is a bridge member, no?


contradict each other. em1 seems indeed to be the physical member =
interface of your
bridge. In that case you must move the IP address from em1 to em1bridge.

Like so:

ifconfig_em1=3D"-tso -lro -txcsum -rxcsum up"
cloned_interfaces=3D"bridge0 tap0 tap1 tap2 tap3"
ifconfig_bridge0_name=3D"em1bridge"
ifconfig_em1bridge=3D"addm em1 addm tap0 addm tap1 addm tap2 addm tap3 =
up"
ifconfig_em1bridge_alias0=3D"inet w.x.y.z netmask 255.255.255.0"

Again: a bridge member interface must not have an IP address. Which =
directly leads to
your last question:

>  One last question for today (although I should just go and RTFM): Do =
I really need several tap devices? Can't I just have all my VMs on tap0? =
Each with it's own IP in that range?

You do need one tap interface per VM but these are just "virtual =
ethernet cables" plugged into
a "virtual switch" (em1bridge). So they need not and *must* not  have an =
IP address configured
on the host side. Just create them and add them to the bridge.

All IP configuration is done in the VM guest and should match the =
network connected to em1, of course.

HTH,
Patrick
--=20
punkt.de GmbH
Patrick M. Hausen
.infrastructure

Sophienstr. 187
76185 Karlsruhe

Tel. +49 721 9109500

https://infrastructure.punkt.de
info@punkt.de

AG Mannheim 108285
Gesch=C3=A4ftsf=C3=BChrer: Daniel Lienert, Fabian Stein




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6012E30F-056B-4E80-9FC8-1A937BBDC29D>