Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2023 03:22:52 -0400
From:      Steven Friedrich <freebsdlouisville@gmail.com>
To:        Olivier <Olivier.Nicole@cs.ait.ac.th>
Cc:        freebsd-questions@freebsd.org
Subject:   [SOLVED] Re: Can my bhyve virtual machine get a dhcp request out of the local host?
Message-ID:  <4c354198-d4f2-b052-2826-57967c44b1fe@Gmail.com>
In-Reply-To: <wu7y1lvk6mb.fsf@banyan.cs.ait.ac.th>
References:  <wu7y1lvk6mb.fsf@banyan.cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/10/23 9:18 PM, Olivier wrote:
> Steven Friedrich <freebsdlouisville@gmail.com> writes:
>
>> Or do I have to enable a dhcp server on the local host?  Can I just
>> manually set an ip adx?  My Netgear router runs a dhcp server for my
>> network.  Perhaps the host machine is not passing the dhcp broadcasts to
>> the network?
> If your host is passing the dhcp requests correctly, you should see them
> exiting the host via the interface re0
>
> A
>          tcpdump -i re0 port 67 or port 68
> should show such requests.
>
> Eventually, you can run a similar requests on the virtual machine and on
> any machine on your LAN. dhcp requests are broadcasted so any device
> connected on your LAN would receive them.
>
> You should see the dhcp request packet on the VM and on the host
> interfcae re0 at the same time.
>
> Best regards,
>
> Olivier

Thank you so much, Oliver.  You added to my knowledge of TCP/IP. I saw 
the dhcp requests and realized my Netgear router has Access Control, and 
I configure it to block unknown devices, until I enable them 
specifically.  I enabled the new device and bada-bing, My guest got a 
address from my router.

Mystery solved.  Again, thank you so much.

-- 
FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4c354198-d4f2-b052-2826-57967c44b1fe>