Re: WLAN and Bridge
- In reply to: Ben Hutton : "Re: WLAN and Bridge"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Jul 2025 23:49:23 UTC
Yes, the bridge would have an IPv4/IPv6 address, and would be acting as a layer three gateway for both. You can either route or NAT Ipv4/IPv6, it's up to you! On Sun, 13 Jul 2025 at 16:47, Ben Hutton <ben@benhutton.com.au> wrote: > Is that the same bridge you would normally configure for bhyve between an > Ethernet interface and a tap interface? Would the wlan interface be in the > bridge? > > Kind regards > Ben > On 7/13/25 10:37, Adrian Chadd wrote: > > hi, > > Yes and no. > > Yes, it's another 802.3 interface. > > No, not in STA mode, because in STA mode the only MAC address that can be > used is the MAC configured /for/ the station. You can use >1 MAC in > hostap mode and in WDS (4 address mode); however neither of them will do > what you really want (which is your wifi NIC to be a STA, and a bunch of > MAC addresses also work behind it.) > > (Yes, this is what WDS is for, however no APs support it out of the box > for random clients.) > > You'll need to setup a bridge interface for your bhyve VM tap interfaces > and then do pf/ipfw NAT. > > -adrian > > > On Sat, 12 Jul 2025 at 18:13, Farhan Khan <farhan@farhan.codes> > <farhan@farhan.codes> wrote: > >> On Sat, Jul 12, 2025, at 8:58 PM, Ben Hutton wrote: >> > Hi, >> > >> > Is it possible to use a wlan device with a bridge and tap device for >> use >> > with bhyve? When I've tried this I cannot seem to get traffic to route >> > past the bridge. >> > >> > My aim is to get bhyve working with network access on my laptop on >> WiFi. >> > So far I have had to use Ethernet connections. >> > >> > I have looked into NAT but am unsure how I would do this with bhyve? >> > >> > Kind regards >> > Ben >> >> I highpy suspect no because bhyve passes the device itself, whereas wlans >> are FreeBSD constructs around the device radio. >> >> I don't know bhyve too well, but you probably can create a virtual >> ethernet network between the host and VM, and then route or bridge traffic >> to the wlan. That might accomplish your goal. >> >> -- >> Farhan Khan >> >> >>