Re: no traffic from guest to host. guest can't get a dhcp response. ping says no route to host.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
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). </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 <freebsd@dreamchaser.org> 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: <br> > On my host: <br> > <br> > re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> <br> > metric 0 mtu 1500 <br> > options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE> <br> > <br> > <br> ether 10:62:e5:02:ef:45 <br> > inet 192.168.1.9 netmask 0xffffff00 broadcast 192.168.1.255 media: <br> > Ethernet autoselect (1000baseT <full-duplex>) status: active nd6 <br> > options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> lo0: <br> > flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 <br> > options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet6 <br> > ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet <br> > 127.0.0.1 netmask 0xff000000 groups: lo nd6 <br> > options=21<PERFORMNUD,AUTO_LINKLOCAL> bridge0: <br> > flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 <br> > ether 58:9c:fc:00:1b:70 id 00:00:00:00:00:00 priority 32768 hellotime <br> > 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout <br> > 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: <br> > re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 1 <br> > priority 128 path cost 55 groups: bridge nd6 <br> > options=9<PERFORMNUD,IFDISABLED> vm-public: <br> > flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 <br> > ether 52:5a:45:37:95:e7 id 00:00:00:00:00:00 priority 32768 hellotime <br> > 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout <br> > 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 groups: <br> > bridge vm-switch viid-4c918@ nd6 options=9<PERFORMNUD,IFDISABLED> <br> > <br> > <br> > on my guest: <br> > <br> > ifconfig vtnet0: flags=8822<BROADCAST,SIMPLEX,MULTICAST <br> > metric 0 mtu 1500 options=80028 VLAN_MTU,JUMBO_MTU,LINKSTATE>X,MULTICAST <br> > metric 0 mtu 15 <br> > ether 58:9c:fc:0f:ef:34 media: Ethernet autoselect <br> > (10Gbase-T <full-duplex>) status: active nd6 <br> > options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL <br> > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 <br> > options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6 <br> > inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 <br> > inet 127.0.0.1 netmask 0xff000000 groups: lo <br> > nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL <br> > <br> > no traffic from guest to host. guest can't get a dhcp response. ping <br> > says no route to host. <br> > <br> > I tried dhclient bridge0 on the host and it assigned an ip adx to <br> > bridge0, but had no relief in the guest. <br> > <br> > i am not able to get guest access to the host. what can i do? <br> <br> I don't know anything about the vtnet driver for virtual hosts, <br> nor whether or not what you're running should automatically assign <br> the vtnet0 device an IP address. <br> <br> Is there a dhcpd (dhcp server) running on the host system? That's <br> where the client will get its IP address from. See man 8 dhcpd <br> and man 5 dhcpd.conf <br> <br> There's no route (and ping doesn't work) because there is no address <br> assigned to the vtnet0 interface on the guest system. <br> <br> netstat -rn <br> should show your existing routes <br> <br> <br> <br> Gary <br> <br> </p> </blockquote></div><br></div>