Date: Wed, 4 Nov 2015 15:07:24 -0800 From: Neel Natu <neelnatu@gmail.com> To: Victor Sudakov <vas@mpeks.tomsk.su> Cc: freebsd-net <freebsd-net@freebsd.org> Subject: Re: tap(4) and host-only networking between host and guest Message-ID: <CAFgRE9EiXrqfMte7a36vkWtA7kisYTT=nBh5p8HNW9FaR69VSA@mail.gmail.com> In-Reply-To: <20151104184503.GC1117@admin.sibptus.tomsk.ru> References: <20151104075454.GA99850@admin.sibptus.tomsk.ru> <5639FF12.1020109@freebsd.org> <20151104131230.GA1117@admin.sibptus.tomsk.ru> <20151104184503.GC1117@admin.sibptus.tomsk.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Victor, On Wed, Nov 4, 2015 at 10:45 AM, Victor Sudakov <vas@mpeks.tomsk.su> wrote: > Victor Sudakov wrote: >> Julian Elischer wrote: >> > > >> > > I am experimenting with bhyve which uses tap(4) for network access. >> > > >> > > I don't want to bridge tap0 with any of the hosts's real NICs. How can >> > > I create a private network just between the host and the guest? >> > you are thinking too hard! >> > >> > tap IS the interface.. >> > >> > ifconfig tap0 $address... >> > and in the VM, ifconfig vtnet0 ${some_other_address} >> >> Thank you, Julian! It works. I felt I was missing something obvious. > > For some reason, after a guest is shutdown or rebooted, the IP address > on the host's tap0 interface is deleted. > Try using 'vmnet0' instead of 'tap0'. It will retain the IP address even after a guest reboot/shutdown. best Neel > It's kind of inconvenient. > > -- > Victor Sudakov, VAS4-RIPE, VAS47-RIPN > sip:sudakov@sibptus.tomsk.ru > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgRE9EiXrqfMte7a36vkWtA7kisYTT=nBh5p8HNW9FaR69VSA>