wlan0 not working in bhyve

It won't work because the WLAN interface basically has to spoof the MAC addresses of the VMs, and a WLAN interface won't allow you to do this. So you cannot bridge a wlan interface that's in STA (station; i.e. 'client') mode.
 
I don't use vm-bhyve, can it be working without vm-bhyve?
The problem isn't with bhyve(8), it's because of the way a wireless interface works. And sysutils/vm-bhyve is a collection of shell scripts that make life with bhyve(8) easier. How you set up PF for NAT is unrelated to this. You just have to translate the various interface/bridge names as sysutils/vm-bhyve uses a specific naming convention, and it might be different from yours. But that's all it is.
 
my wlan0 address is x.x.62.8/24
I created tap0 and bridge0, and set bridge0 x.x.61.1/24, then add "nat on wlan0 from { x.x.61.1 } to any -> (wlan0)" in /etc/pf.conf and started pf. I didn't use dnsmasq. I started bhyve by tap0 and set ip x.x.61.8 and gateway x.x.61.1, but it's still no network.
 
my wlan0 address is x.x.62.8/24
I created tap0 and bridge0, and set bridge0 x.x.61.1/24, then add "nat on wlan0 from { x.x.61.1 } to any -> (wlan0)"
Your traffic will have the source address of the VM (x.x.61.8?), not the bridge's IP address.
 
Back
Top