Re: no traffic from guest to host. guest can't get a dhcp response. ping says no route to host.

From: Dale Scott <dalescott_at_shaw.ca>
Date: Sat, 06 May 2023 21:36:44 UTC
<div dir='auto'>Sorry I can only moral support as I am investigating the same issue.<div dir="auto"><br></div><div dir="auto">Based on using VirtualBox previously, I need to configure a NAT interface instead of bridging, install a DHCP server on the host, and configure port forwarding for ssh from port 22 on the guest vm to some other port on the host (e.g. 3022).&nbsp;</div><div dir="auto"><br></div><div dir="auto">Does anyone have any favorite resources for learning how to do this?</div><br><div data-smartmail="gmail_signature">Thanks, Dale<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On May 6, 2023 2:42 PM, Gary Aitken &lt;freebsd@dreamchaser.org&gt; wrote:<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">On 5/6/23 05:43, Steven Friedrich wrote:&#13;<br>
&gt; On my host:&#13;<br>
&gt; &#13;<br>
&gt; re0: flags=8943&lt;UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST&gt;&#13;<br>
&gt; metric 0 mtu 1500 &#13;<br>
&gt; options=8209b&lt;RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE&gt;&#13;<br>
&gt;&#13;<br>
&gt; &#13;<br>
ether 10:62:e5:02:ef:45&#13;<br>
&gt; inet 192.168.1.9 netmask 0xffffff00 broadcast 192.168.1.255 media:&#13;<br>
&gt; Ethernet autoselect (1000baseT &lt;full-duplex&gt;) status: active nd6&#13;<br>
&gt; options=29&lt;PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL&gt; lo0:&#13;<br>
&gt; flags=8049&lt;UP,LOOPBACK,RUNNING,MULTICAST&gt; metric 0 mtu 16384 &#13;<br>
&gt; options=680003&lt;RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6&gt; inet6&#13;<br>
&gt; ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet&#13;<br>
&gt; 127.0.0.1 netmask 0xff000000 groups: lo nd6&#13;<br>
&gt; options=21&lt;PERFORMNUD,AUTO_LINKLOCAL&gt; bridge0:&#13;<br>
&gt; flags=8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; metric 0 mtu 1500 &#13;<br>
&gt; ether 58:9c:fc:00:1b:70 id 00:00:00:00:00:00 priority 32768 hellotime&#13;<br>
&gt; 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout&#13;<br>
&gt; 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member:&#13;<br>
&gt; re0 flags=143&lt;LEARNING,DISCOVER,AUTOEDGE,AUTOPTP&gt; ifmaxaddr 0 port 1&#13;<br>
&gt; priority 128 path cost 55 groups: bridge nd6&#13;<br>
&gt; options=9&lt;PERFORMNUD,IFDISABLED&gt; vm-public:&#13;<br>
&gt; flags=8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; metric 0 mtu 1500 &#13;<br>
&gt; ether 52:5a:45:37:95:e7 id 00:00:00:00:00:00 priority 32768 hellotime&#13;<br>
&gt; 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout&#13;<br>
&gt; 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 groups:&#13;<br>
&gt; bridge vm-switch viid-4c918@ nd6 options=9&lt;PERFORMNUD,IFDISABLED&gt;&#13;<br>
&gt; &#13;<br>
&gt; &#13;<br>
&gt; on my guest:&#13;<br>
&gt; &#13;<br>
&gt; ifconfig vtnet0: flags=8822&lt;BROADCAST,SIMPLEX,MULTICAST&#13;<br>
&gt; metric 0 mtu 1500 options=80028 VLAN_MTU,JUMBO_MTU,LINKSTATE&gt;X,MULTICAST&#13;<br>
&gt; metric 0 mtu 15&#13;<br>
&gt; ether 58:9c:fc:0f:ef:34 media: Ethernet autoselect&#13;<br>
&gt; (10Gbase-T &lt;full-duplex&gt;) status: active nd6&#13;<br>
&gt; options=29&lt;PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL&#13;<br>
&gt; lo0: flags=8049&lt;UP,LOOPBACK,RUNNING,MULTICAST&gt; metric 0 mtu 16384 &#13;<br>
&gt; options=680003&lt;RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6&#13;<br>
&gt; inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2&#13;<br>
&gt; inet 127.0.0.1 netmask 0xff000000 groups: lo&#13;<br>
&gt; nd6 options=21&lt;PERFORMNUD,AUTO_LINKLOCAL&#13;<br>
&gt; &#13;<br>
&gt; no traffic from guest to host.&nbsp; guest can't get a dhcp response. ping&#13;<br>
&gt; says no route to host.&#13;<br>
&gt; &#13;<br>
&gt; I tried dhclient bridge0 on the host and it assigned an ip adx to&#13;<br>
&gt; bridge0, but had no relief in the guest.&#13;<br>
&gt; &#13;<br>
&gt; i am not able to get guest access to the host.&nbsp; what can i do?&#13;<br>
&#13;<br>
I don't know anything about the vtnet driver for virtual hosts,&#13;<br>
nor whether or not what you're running should automatically assign&#13;<br>
the vtnet0 device an IP address.&#13;<br>
&#13;<br>
Is there a dhcpd (dhcp server) running on the host system?&nbsp; That's&#13;<br>
where the client will get its IP address from.&nbsp; See man 8 dhcpd&#13;<br>
and man 5 dhcpd.conf&#13;<br>
&#13;<br>
There's no route (and ping doesn't work) because there is no address&#13;<br>
assigned to the vtnet0 interface on the guest system.&#13;<br>
&#13;<br>
netstat -rn&#13;<br>
should show your existing routes&#13;<br>
&#13;<br>
&#13;<br>
&#13;<br>
Gary&#13;<br>
&#13;<br>
</p>
</blockquote></div><br></div>