Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Oct 2014 01:23:23 +0800
From:      Julian Elischer <julian@freebsd.org>
To:        freebsd-lists@freebsd.org, freebsd-virtualization@freebsd.org
Subject:   Re: bhyve tapN additions
Message-ID:  <544A8B0B.4000202@freebsd.org>
In-Reply-To: <20141022140934.GA367@potato.growveg.org>
References:  <20141022140934.GA367@potato.growveg.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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..




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?544A8B0B.4000202>