From owner-freebsd-virtualization@FreeBSD.ORG Fri Oct 24 17:23:32 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F1B1D536 for ; Fri, 24 Oct 2014 17:23:32 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C5CD01E0 for ; Fri, 24 Oct 2014 17:23:32 +0000 (UTC) Received: from jre-mbp.elischer.org (ppp121-45-234-114.lns20.per1.internode.on.net [121.45.234.114]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id s9OHNS9h076201 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 24 Oct 2014 10:23:31 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <544A8B0B.4000202@freebsd.org> Date: Sat, 25 Oct 2014 01:23:23 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-lists@freebsd.org, freebsd-virtualization@freebsd.org Subject: Re: bhyve tapN additions References: <20141022140934.GA367@potato.growveg.org> In-Reply-To: <20141022140934.GA367@potato.growveg.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Fri, 24 Oct 2014 17:23:33 -0000 On 10/22/14, 10:09 PM, John wrote: > Hi all, > > I couldn't see the following answered clearly in the literature, so I'll > ask it here. > > When a freeBSD host is running a [anything] guest, a tap interface needs to be > created. Let's say I've done all this: > > # ifconfig tap0 create > # sysctl net.link.tap.up_on_open=1 > net.link.tap.up_on_open: 0 -> 1 > # ifconfig bridge0 create > # ifconfig bridge0 addm igb0 addm tap0 > # ifconfig bridge0 up > > I want to add another tap, I don't want to restart the host. If I do > > # ifconfig bridge0 addm tap1 > > then configure another vm to use tap1, can I expect it to work? Or, If I want 2 > vns with 2 taps, do I need to do this: > > # ifconfig bridge0 create > # ifconfig bridge0 addm igb0 addm tap0 addm tap1 > # ifconfig bridge0 up > > The reason I ask, is because I'm expecting a freebsd vm to work on tap1, and it's > not. > > thanks, I do this on 10-stable.. it works for me..