My host is using the LAN interface in the network switch create via vm-bhyve and for the Linux guest. Inside the Linux guest, I am using pci passthru to work directly with the wifi adapter. Both the Ethernet and wifi adapters in the Linux guest are in a bridge which has a static IP belonging to the same subnet as the LAN interface. The Linux guest can get out to the Internet just fine. Neither the Ethernet nor the wifi adapters has an IP directly assigned to it.
The Linux guest has hostapd running and I am able to connect to it, but I cannot get a DHCP lease from the DHCP server listening on the LAN interface. I do see DHCP traffic on the wifi interface, but it isn't getting to the DHCP server listening on the LAN interface.
1. with a bridge, shouldn't the request get through? If not, would a DHCP relay work here? I tried a relay and it discarded all of the traffic because the wifi interface didn't have an IP address assigned to it.
2. excluding DHCP, and using a static IP on a client, I was still unable to get out to the Internet. I had setup a default gateway on the bridge. Since the client and bridge are on the same subnet as the LAN interface on the host which is the gateway, do I need to enable NAT?
Since the VM is on the same subnet, it doesn't make sense to me that I would need NAT. I was trying to keep this high-level to see if my understand was correct, I can provide more details as to IP addresses if that helps to clarify what I'm trying to do.
The Linux guest has hostapd running and I am able to connect to it, but I cannot get a DHCP lease from the DHCP server listening on the LAN interface. I do see DHCP traffic on the wifi interface, but it isn't getting to the DHCP server listening on the LAN interface.
1. with a bridge, shouldn't the request get through? If not, would a DHCP relay work here? I tried a relay and it discarded all of the traffic because the wifi interface didn't have an IP address assigned to it.
2. excluding DHCP, and using a static IP on a client, I was still unable to get out to the Internet. I had setup a default gateway on the bridge. Since the client and bridge are on the same subnet as the LAN interface on the host which is the gateway, do I need to enable NAT?
Since the VM is on the same subnet, it doesn't make sense to me that I would need NAT. I was trying to keep this high-level to see if my understand was correct, I can provide more details as to IP addresses if that helps to clarify what I'm trying to do.