From owner-freebsd-net@freebsd.org Wed Nov 4 23:07:26 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE57BA26D72 for ; Wed, 4 Nov 2015 23:07:26 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EC9C1FDB for ; Wed, 4 Nov 2015 23:07:26 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: by wmeg8 with SMTP id g8so54077988wme.1 for ; Wed, 04 Nov 2015 15:07:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4wylJZ7yOnyACbxw4hD+eMsDUh+ntNuQNtxRBlnhjK4=; b=DQXm0DuMftue7PLawCTlgMbYUOlN9NUhmLU49ELAV7hPcox3jIVZaU8b2m5G1RONGE 3qRJL+6QiBu/d+pKkmxW4z91dluaHy+9b70gBrHJC2Z6nosynpGYTBTumfWlYq0E9z41 fi5Y9EnB3dmgxF/VaDyG+BEpHvLfZ9vw0uxBnmYpyUgG2Ja8jZ7TQoDWJJnSwTjMLs/9 6bq1Z8UC2JSriMuFDotj/rFNRMcf8zlyl2nKkkD4qD2D3+ydf4M4VdiCSK3w86uRpga7 05VgD/1vKJIaVJDJpsZhihaFtSUgPZgHF2aPiZ9+iFCAoRU0NzB8/47vTszUqOfTrSjY 6/pA== MIME-Version: 1.0 X-Received: by 10.28.54.197 with SMTP id y66mr26706024wmh.31.1446678444812; Wed, 04 Nov 2015 15:07:24 -0800 (PST) Received: by 10.27.1.139 with HTTP; Wed, 4 Nov 2015 15:07:24 -0800 (PST) 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> Date: Wed, 4 Nov 2015 15:07:24 -0800 Message-ID: Subject: Re: tap(4) and host-only networking between host and guest From: Neel Natu To: Victor Sudakov Cc: freebsd-net Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2015 23:07:26 -0000 Hi Victor, On Wed, Nov 4, 2015 at 10:45 AM, Victor Sudakov 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"