From owner-freebsd-virtualization@freebsd.org Mon Feb 13 15:16:36 2017 Return-Path: Delivered-To: freebsd-virtualization@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 8B8FDCDDBB2 for ; Mon, 13 Feb 2017 15:16:36 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor.nl2k.ab.ca (doctor.nl2k.ab.ca [204.209.81.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6F6A01F12 for ; Mon, 13 Feb 2017 15:16:36 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor by doctor.nl2k.ab.ca with local (Exim 4.89_RC5) (envelope-from ) id 1cdIMT-000MiI-Tl; Mon, 13 Feb 2017 08:16:17 -0700 Date: Mon, 13 Feb 2017 08:16:17 -0700 From: The Doctor To: "C. L. Martinez" Cc: freebsd-virtualization@freebsd.org Subject: Re: tap interfaces disappears after bhyve guests shutdowns Message-ID: <20170213151617.GA84767@doctor.nl2k.ab.ca> References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2017 15:16:36 -0000 On Mon, Feb 13, 2017 at 12:09:38PM +0000, C. L. Martinez wrote: > Hi all, > > Why when a bhyve guest shutdowns or reboot tap interfaces goes down and lost IP assigned address?. I need to use same tap interface for several guests and assign an IP to this tap interface to act as a router for these guests. > > How can I do a "persistent tap" interface?? > > Thanks. > I > -- > Greetings, > C. L. Martinez Here is wht I do in my /etc/rc.local file /sbin/ifconfig tap8 inet 204.209.81.52 netmask 0xffffff00 /sbin/ifconfig tap0 inet 204.209.81.53 netmask 0xffffff00 /sbin/ifconfig tap1 inet 204.209.81.54 netmask 0xffffff00 /sbin/ifconfig tap7 inet 204.209.81.55 netmask 0xffffff00 /sbin/ifconfig tap2 inet 204.209.81.56 netmask 0xffffff00 /sbin/ifconfig tap4 inet 204.209.81.57 netmask 0xffffff00 /sbin/ifconfig tap3 inet 204.209.81.58 netmask 0xffffff00 /sbin/ifconfig tap6 inet 204.209.81.59 netmask 0xffffff00 /sbin/ifconfig bridge0 alias 204.209.81.60 netmask 0xffffff00 /sbin/ifconfig tap5 inet 204.209.81.61 netmask 0xffffff00 /sbin/ifconfig tap9 inet 204.209.81.62 netmask 0xffffff00 /sbin/ifconfig tap10 inet 204.209.81.63 netmask 0xffffff00 /sbin/ifconfig tap11 inet 204.209.81.64 netmask 0xffffff00 /sbin/ifconfig tap12 inet 204.209.81.65 netmask 0xffffff00 /sbin/ifconfig tap13 inet 204.209.81.66 netmask 0xffffff00 /sbin/ifconfig tap14 inet 204.209.81.67 netmask 0xffffff00 /sbin/ifconfig tap15 inet 204.209.81.68 netmask 0xffffff00 You can do something similar in /etc/rc.conf > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" -- Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising! http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism God is dead! Yahweh lives! Jesus his only begotten Son is the Risen Saviour!!