From nobody Mon Aug 14 11:40:25 2023 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RPXXD5NBpz4qN4W for ; Mon, 14 Aug 2023 11:40:44 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from mail.punkt.de (mail.punkt.de [217.29.41.227]) (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 4RPXXD2Gy1z4Yw0 for ; Mon, 14 Aug 2023 11:40:44 +0000 (UTC) (envelope-from hausen@punkt.de) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2a00:b580:a000:c800::1000]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.punkt.de (Postfix) with ESMTPSA id CBE5838829; Mon, 14 Aug 2023 13:40:35 +0200 (CEST) Content-Type: text/plain; charset=utf-8 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: bhyve VM not getting as much upload bandwidth as the host From: "Patrick M. Hausen" In-Reply-To: Date: Mon, 14 Aug 2023 13:40:25 +0200 Cc: freebsd-virtualization@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <6012E30F-056B-4E80-9FC8-1A937BBDC29D@punkt.de> References: <096b2d73-b28c-bd6b-a6d3-2a3c3dbaea7e@h4ck.io> <38587cf9-29a7-1246-3b64-a3cf35933717@quip.cz> <96160FBF-4E48-48E3-B26C-026CEB5B03C2@punkt.de> To: Odhiambo Washington X-Mailer: Apple Mail (2.3731.600.7) X-Rspamd-Queue-Id: 4RPXXD2Gy1z4Yw0 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE] Hi all, this: > Am 14.08.2023 um 13:32 schrieb Odhiambo Washington = : > 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