From nobody Thu May 11 01:18:52 2023 X-Original-To: freebsd-questions@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 4QGvDk0Pn0z49QhW for ; Thu, 11 May 2023 01:19:02 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4QGvDg54TZz3vsZ for ; Thu, 11 May 2023 01:18:59 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.ait.ac.th header.s=selector1 header.b="L iwvazh"; spf=pass (mx1.freebsd.org: domain of Olivier.Nicole@cs.ait.ac.th designates 192.41.170.16 as permitted sender) smtp.mailfrom=Olivier.Nicole@cs.ait.ac.th; dmarc=pass (policy=none) header.from=cs.ait.ac.th Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id AB11389282; Thu, 11 May 2023 08:18:54 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :received:received:received; s=selector1; t=1683767934; x= 1685582335; bh=f8naaxIfdlsxUVrWIlt8vwRIVuM9ZVlaL17hsrmwW2w=; b=L iwvazhSbVXjeBOu6N2Agci9JYjUg4/1d9S5uH4hT28loZAvbA/5kG5XzYyjYA1KP LCgliDBc5iJA70smVV9O5zy2/VSFrCYQ2SVHxSRIAt8dVxorn+Gd/Rjl/SvIONrh nbWniFhoxJ2b/AfMa4BENOw4kWuO78v9ZnENMxNIPE= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yNS2fP-89S-R; Thu, 11 May 2023 08:18:54 +0700 (+07) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 1021A89281; Thu, 11 May 2023 08:18:53 +0700 (+07) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id 34B1Ird8016698; Thu, 11 May 2023 08:18:53 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: Steven Friedrich Cc: freebsd-questions@freebsd.org Subject: Re: Can my bhyve virtual machine get a dhcp request out of the local host? In-Reply-To: <3878ea2b-4de5-fd92-75a4-de0df4b32578@Gmail.com> (message from Steven Friedrich on Wed, 10 May 2023 12:53:43 -0400) Date: Thu, 11 May 2023 08:18:52 +0700 Message-ID: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-3.70 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[cs.ait.ac.th,none]; R_SPF_ALLOW(-0.20)[+mx]; RCVD_IN_DNSWL_MED(-0.20)[192.41.170.16:from]; R_DKIM_ALLOW(-0.20)[cs.ait.ac.th:s=selector1]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FREEMAIL_TO(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[cs.ait.ac.th:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:4767, ipnet:192.41.170.0/24, country:TH]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4QGvDg54TZz3vsZ X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Steven Friedrich writes: > Or do I have to enable a dhcp server on the local host?=C2=A0 Can I just= =20 > manually set an ip adx?=C2=A0 My Netgear router runs a dhcp server for my= =20 > network.=C2=A0 Perhaps the host machine is not passing the dhcp broadcast= s to=20 > 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