Re: Can't figure out getting network into bhyve instance.

From: Steven Friedrich <freebsdlouisville_at_gmail.com>
Date: Fri, 05 May 2023 17:54:27 UTC
BTW, I invoked the sysctls.  Wait, were those on the host on in the vm?

On 5/5/23 13:22, Tomek CEDRO wrote:
> On Fri, May 5, 2023 at 5:55 PM Steven Friedrich wrote:
>> I had found a bhyve tutorial on the Internet: https://klarasystems.com/articles/from-0-to-bhyve-on-freebsd-13-1/
>> (..)
> In a simple scenario read `man vm` :-)
>
> Just add public switch with selected physical port / interface.
> Machines will use that for networking by default.
>
> I had the same problem(?). Packets were not going out of the guest vm.
> There are some sysctls to do in order to pass the bridged traffic.
>
> sysctl net.link.bridge.ipfw=0
> sysctl net.link.bridge.pfil_bridge=0
> sysctl net.link.bridge.pfil_member=0
>
> I have provided a man page update on that, any comments welcome :-)
>
> https://github.com/churchers/vm-bhyve/pull/510
>
> Hope that helps :-)
>
-- 
uname -a
FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE FREEBSD amd64