From nobody Tue Mar 26 19:30:00 2024 X-Original-To: freebsd-net@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 4V40J81v0Pz5Ffmq for ; Tue, 26 Mar 2024 19:30:16 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V40J8092Xz41n3 for ; Tue, 26 Mar 2024 19:30:15 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-609fc742044so63203207b3.1 for ; Tue, 26 Mar 2024 12:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1711481413; x=1712086213; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RO1qmfauKzQJFpT7CmUfkUE3u+ofZur6sUeYfuiD2+8=; b=bAcNTx9zMVV53i6jk+dgqUQn4ktH+YfRxcYUijY8Q6Lwadgs7OCiaTzH02/Q8NJt2a 2FoW5WLkyAMN6LI85LMjuXU78dRcji+5DjCeTOGN8Pz+5FyicZWeegLiQyFsu+k3pt0C fuirfVnj+NPkFDU69Iny+OAhdHc1wlzB76bOx4QC8LzCzX0eP+qMv2bKo1+/kTQxiNJ7 kagtyuYLTflmIDaWU2Ohbp7x2f+Evz6AZONYpk76HRQiC8262ziH+3Letg8PBH//UJbh krdjwauLD5vRUGAIS/Tq8JbgCYO1upYpFW0rOm0ttyihZ5Drl51FKsvfV0QQQCMip3ib Arzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711481413; x=1712086213; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RO1qmfauKzQJFpT7CmUfkUE3u+ofZur6sUeYfuiD2+8=; b=rO5wh5D5HSUfnmO86zHOTil34riGR5fkL7DGc19htEiG7g2FMdmimo9b/m+Hna0A9C a/xDVZi+JpL1Cq0Xryr5AhY9T1m3FLyaOY6Wnu5QRRiYTy1VsQTnzijKMsh6eHalvKqu 0oLo7nHqeaikROZXM6lgpYVnKGF8nWnx7LKsx/jj21Si/VSAMJSQuzE8Q0U8PK/12TIF gCZbO0XSC5BDFP1R3BhR7OorIij5FG2/OC5VdRrlRublDiNwSl/gB35bKlk03HCLIc3h VBw2iIrbDYel4qpoFBCb3iJiTAbXb0fJ4VmOasYlVLvTeVj0doGQ3dIKF0etWDXiPtWV Xh9w== X-Gm-Message-State: AOJu0YxDT1rXIsVRzXtChtrXYJl6cZbx7daT2eo3ikKsMUa0tTG58ufw sa1C3Sn90ofyreqAN91PeQiFDstVaBg+FAzCgwHaP29jTaFyPezkXUSl25IIaqVlmWbGyjM19To = X-Google-Smtp-Source: AGHT+IGG7pOiPOWYit+8o80h/gMi3v0YGADm5ipCpztYZVKyAjkkZ6qH4OXV/qzC3vv2sbMja1zKeQ== X-Received: by 2002:a81:6d09:0:b0:611:22a:3dea with SMTP id i9-20020a816d09000000b00611022a3deamr658844ywc.17.1711481413132; Tue, 26 Mar 2024 12:30:13 -0700 (PDT) Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com. [209.85.219.170]) by smtp.gmail.com with ESMTPSA id g184-20020a8152c1000000b0060a304ca3f4sm1618798ywb.19.2024.03.26.12.30.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Mar 2024 12:30:12 -0700 (PDT) Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-dd10ebcd702so6065895276.2 for ; Tue, 26 Mar 2024 12:30:12 -0700 (PDT) X-Received: by 2002:a25:c706:0:b0:dd1:7908:3a49 with SMTP id w6-20020a25c706000000b00dd179083a49mr639780ybe.23.1711481411937; Tue, 26 Mar 2024 12:30:11 -0700 (PDT) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Tomek CEDRO Date: Tue, 26 Mar 2024 20:30:00 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: vnet with interfaces To: Benoit Chesneau Cc: "freebsd-net@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4V40J8092Xz41n3 On Tue, Mar 26, 2024 at 7:32=E2=80=AFPM Benoit Chesneau wrote: > How does work VNET with interfaces? Is this as efficient as using pci pas= strough in a vm ? > Beno=C3=AEt Vnet allows you to control networks by the system and make various configurations networks jails etc, example here: https://klarasystems.com/articles/virtualize-your-network-on-freebsd-with-v= net/ PCI passthrough would skip all kernel networking and give your vm access to the physical cable attached to a NIC. Note that passthrough needs entry in /boot/loader.conf and disables that device for use in system. I have a dedicated USB 3.0 controller working that way. A very simple and elegant shell management tool to play with bhyve is vm-bh= yve: https://www.freshports.org/sysutils/vm-bhyve/ Have fun :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info