NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD 10 -- new way of attaching virtual interfaces to bridge?



On Mon, May 23, 2022 at 11:50:21AM +0100, skip%mailbox.org@localhost wrote:
> tap(4) tells me "the tap driver can no longer be used as a bridge(4) endpoint because it supports a link state based on if it has been opened or not.  Use the vether(4) driver instead as it's been explicitly designed for this purpose."
> 
> It's been over ten years since I did all this with Xen. At that time it was straightforward to create a tap interface and attach it to a bridge for a domU
> 
> How are vether interfaces created and connected to a bridge?

The same way you do with tap I guess:
ifconfig vether0 create
ifconfig vether0 up
brconfig bridge0 add vether0 up

> 
> Ideally I would like domUs to connect to the internet through br0 (with the bridge attached to either the external interface or a separate vether interface), and to each other through a second bridge -- br1.

note that on NetBSD the bridges with be called bridge0, bridge1, ...

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index