Date: Mon, 13 Feb 2017 08:16:17 -0700 From: The Doctor <doctor@doctor.nl2k.ab.ca> To: "C. L. Martinez" <carlopmart@gmail.com> Cc: freebsd-virtualization@freebsd.org Subject: Re: tap interfaces disappears after bhyve guests shutdowns Message-ID: <20170213151617.GA84767@doctor.nl2k.ab.ca> In-Reply-To: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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!!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170213151617.GA84767>