Re: no traffic from guest to host. guest can't get a dhcp response. ping says no route to host.
Date: Sat, 06 May 2023 21:27:17 UTC
On 5/6/23 4:42 PM, Gary Aitken wrote: > On 5/6/23 05:43, Steven Friedrich wrote: >> On my host: >> >> re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> >> metric 0 mtu 1500 >> options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE> >> >> > ether 10:62:e5:02:ef:45 >> inet 192.168.1.9 netmask 0xffffff00 broadcast 192.168.1.255 media: >> Ethernet autoselect (1000baseT <full-duplex>) status: active nd6 >> options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> lo0: >> flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 >> options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet6 >> ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet >> 127.0.0.1 netmask 0xff000000 groups: lo nd6 >> options=21<PERFORMNUD,AUTO_LINKLOCAL> bridge0: >> flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 >> ether 58:9c:fc:00:1b:70 id 00:00:00:00:00:00 priority 32768 hellotime >> 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout >> 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: >> re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 1 >> priority 128 path cost 55 groups: bridge nd6 >> options=9<PERFORMNUD,IFDISABLED> vm-public: >> flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 >> ether 52:5a:45:37:95:e7 id 00:00:00:00:00:00 priority 32768 hellotime >> 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout >> 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 groups: >> bridge vm-switch viid-4c918@ nd6 options=9<PERFORMNUD,IFDISABLED> >> >> >> on my guest: >> >> ifconfig vtnet0: flags=8822<BROADCAST,SIMPLEX,MULTICAST >> metric 0 mtu 1500 options=80028 VLAN_MTU,JUMBO_MTU,LINKSTATE>X,MULTICAST >> metric 0 mtu 15 >> ether 58:9c:fc:0f:ef:34 media: Ethernet autoselect >> (10Gbase-T <full-duplex>) status: active nd6 >> options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL >> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 >> options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6 >> inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 >> inet 127.0.0.1 netmask 0xff000000 groups: lo >> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL >> >> no traffic from guest to host. guest can't get a dhcp response. ping >> says no route to host. >> >> I tried dhclient bridge0 on the host and it assigned an ip adx to >> bridge0, but had no relief in the guest. >> >> i am not able to get guest access to the host. what can i do? > > I don't know anything about the vtnet driver for virtual hosts, > nor whether or not what you're running should automatically assign > the vtnet0 device an IP address. > > Is there a dhcpd (dhcp server) running on the host system? That's > where the client will get its IP address from. See man 8 dhcpd > and man 5 dhcpd.conf > > There's no route (and ping doesn't work) because there is no address > assigned to the vtnet0 interface on the guest system. > > netstat -rn > should show your existing routes > > > > Gary > Thanks for taking the time to respond. My router (Netgear) acts as my dhcp server. It's at 192.168.1.1 The problem is the bridge between the guest and the host. I used the info from the vm man page, the freebsd handbook, and various tutorials on the internet. I have tried to remove the bridge, and vm-public, and re-create them, to no avail.