Re: how to cross-connect 2 interfaces

From: Marko Zec <zec_at_fer.hr>
Date: Sun, 26 Nov 2023 22:24:00 UTC
On Sun, 26 Nov 2023 21:35:50 +0000
Benoit Chesneau <benoitc@enki-multimedia.eu> wrote:

> Thanks! I guess though it will only work for HW interfaces, not with
> vxlan interfaces?

If your goal is to brute-force patch two vxlans together then patch
them directly using netgraph:

kldload ng_ether
ngctl connect vxlan0: vxlan1: lower lower

no need for ng_hub or anything else inbetween...

> Benoît
> On Sunday, November 26th, 2023 at 21:43, Vincenzo Maffione
> <vmaffione@freebsd.org> wrote:
> 
> > Or, the netmap(4) bridge example
> >
> > On Sun, Nov 26, 2023, 12:40 PM Benoit Chesneau
> > <benoitc@enki-multimedia.eu> wrote: 
> >> thanks, I didn't noticed this one.
> >>
> >> Benoît Chesneau, Enki Multimedia
> >> —
> >> t. +33608655490
> >>
> >> Sent with [Proton Mail](https://proton.me/) secure email.
> >>
> >> On Saturday, November 25th, 2023 at 23:30, Jim Thompson
> >> <jim@netgate.com> wrote: 
> >>> ng_hub(4)
> >>>  
> >>>> On Nov 25, 2023, at 8:34 AM, Benoit Chesneau
> >>>> <benoitc@enki-multimedia.eu> wrote:  
> >>>  
> >>>> 
> >>>> Is there a way to cross-connect 2 interfaces without using a
> >>>> bridge . Something similar to the command ˋl2 xconnect` in vpp
> >>>> (or cisco) :
> >>>> [https://docs.fd.io/vpp/16.12/vnet_vnet_l2.html](https://www.google.com/url?q=https%3A%2F%2Fdocs.fd.io%2Fvpp%2F16.12%2Fvnet_vnet_l2.html&ust=1701531263000000&usg=AOvVaw3gotHKi-LVQOb_H5p6W-4d)
> >>>> This could be quite handy to create a patch between diffrent
> >>>> machines in the network.
> >>>>
> >>>> Benoî