Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 May 2016 12:03:20 +0000 (UTC)
From:      Fehmi Noyan ISI <fnoyanisi@yahoo.com>
To:        Trent Thompson <trentnthompson@gmail.com>,  FreeBSD virtualization <freebsd-virtualization@freebsd.org>
Subject:   Re: Cannot forward traffic over wlan0 with bhyve
Message-ID:  <882809015.206236.1463832200301.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <CAE7bWBrMAgU0kWwe=Zrs3Pe-c1wkbN_5Amrv9b3ZNSO5h1-SCw@mail.gmail.com>
References:  <231368807.5153885.1463691015944.JavaMail.yahoo.ref@mail.yahoo.com> <231368807.5153885.1463691015944.JavaMail.yahoo@mail.yahoo.com> <CAE7bWBrMAgU0kWwe=Zrs3Pe-c1wkbN_5Amrv9b3ZNSO5h1-SCw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Trent!

I found sometime (leftover time from a full-time work, a newborn and certificate study :/) today to give a try your advise. 


This is what I ended up with;
- assigning an static IP address to tap0 on the host machine
- assigning an static IP address to vtnet0 on the guest machine
- use pf(4) to forward traffic from tap0 to wlan0

This works, but, as you pointed out, definitely not the optimum way of doing it.

I updated the forum entity [1] I created previously, in the hope that that would be useful for some googlers (I have some couple of people having a similar issue)


[1] https://forums.freebsd.org/threads/56285/
________________________________
From: Trent Thompson <trentnthompson@gmail.com>
To: Fehmi Noyan ISI <fnoyanisi@yahoo.com>; FreeBSD virtualization <freebsd-virtualization@freebsd.org> 
Sent: Friday, May 20, 2016 5:25 PM
Subject: Re: Cannot forward traffic over wlan0 with bhyve



Fehmi,

I noticed in your forum post that you were trying to get a DHCP lease on your bhyve VM. Personally, I set my VM's over WiFi statically. I have written a quick guide to set this up on the iohyve wiki. It should work even if you do not use iohyve. 
https://github.com/pr1ntf/iohyve/wiki/Using-iohyve-over-WiFi

This set up may not be the most optimal, as it uses your host as a gateway, but it gets the job done for me. In the setup provided, my host (now a gateway) has an IP address of 10.10.123.1 on the "hyve" network, and my FreeBSD VM has an IP of 10.10.123.10, and a Windows VM with an IP address of 10.10.123.11 Note that I must set those IP Addresses statically inside of the VM for the internet to work. 

I hope you found this helpful, 
-Trent



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?882809015.206236.1463832200301.JavaMail.yahoo>