From nobody Sun Nov 26 22:24:00 2023 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Sdjtf4hmpz52sTh for ; Sun, 26 Nov 2023 22:24:10 +0000 (UTC) (envelope-from zec@fer.hr) Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2059.outbound.protection.outlook.com [40.107.241.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sdjtf23Hcz4jMM; Sun, 26 Nov 2023 22:24:09 +0000 (UTC) (envelope-from zec@fer.hr) Authentication-Results: mx1.freebsd.org; none ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XpOdA0MzFXb7AvfAD0JC7bV3VDl6ivup4bmPziiJPlQP67TXvhizew+cmfBwU9CMaEXcCz7YM5BcBdoGsKcId2/R5AC2OFEc81KpgzU9d7bHW4/FHp8RtDjupn+csjOxPVJnNKR9OjggoMSq0dIaeMdXcr9SQmoBCflnLwQ60nS6uxYUojMQJ4+ScSjZrNndA7vwUFPg7E/uuWPdKSaSB+Hea+SiQfrVL+kd1N2DZMilWS3zeqOFsLX1OkZUQcvEHEyeZ8XBKV4A0jqc6TFeVzCiE4d0MVWau7+9UU8G6/hVB0AOIIK3UBdDG9w88f+iNokTqt+7eoBjNuzbYlRhmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VaL3KFI+k7BEqyBHYtydFUIfVO7niGfSkyOK31yaJM4=; b=fTgG2vUbfn5ZrPpUMazUebKrEbxbZCW3QHvwLXW39OwaGCEOMlE2pVQt4QjQfjxdbCF0A+HBJuPdaEovkflvF1slrw1KNRSivDSgMKiCAZaq+bTMEdVKrVbJWK8CctcV9YNVwuvh9KvB+Q92WNdQoC9Y44bqc34g/2hTNJW4gJ/ROai/N1PUVi6CWlF85oOiT8vKd1g24/GuTgMVwOyZU0YrukZJgQ1ofBf6P119+jFZ2s6fCY8eBhEpqkKUSyC/ufX1Lc5r+L5tq43Eu1nZCZ8VLgu5Ua1i+QGx549yXfiuP7ikjMX/5o6XErIzX6BNH7lfKZ2IUSam6wcy+Lzojg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fer.hr; dmarc=pass action=none header.from=fer.hr; dkim=pass header.d=fer.hr; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ferhr.onmicrosoft.com; s=selector2-ferhr-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VaL3KFI+k7BEqyBHYtydFUIfVO7niGfSkyOK31yaJM4=; b=Od1cHa56NBymoEQnq1K/Zk2GXIRH7b1VSwt6jDdvHNGM7cZtgWCZ3QzQoqaenJ+hj4F08U4fYPuol2VTldzkQr6TY8t5mYz7aC0ZoD1BU6KkckxqrN66//hRt8lHM+/1wmj/pPwWSwW2NRCcdChnQxvCRFzPJi5/7/EdFaq1JnM= Received: from VE1PR08MB4783.eurprd08.prod.outlook.com (2603:10a6:802:a9::16) by AS4PR08MB7904.eurprd08.prod.outlook.com (2603:10a6:20b:51f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.27; Sun, 26 Nov 2023 22:24:06 +0000 Received: from VE1PR08MB4783.eurprd08.prod.outlook.com ([fe80::28d4:4654:ce54:8777]) by VE1PR08MB4783.eurprd08.prod.outlook.com ([fe80::28d4:4654:ce54:8777%7]) with mapi id 15.20.7025.022; Sun, 26 Nov 2023 22:24:05 +0000 Date: Sun, 26 Nov 2023 23:24:00 +0100 From: Marko Zec To: Benoit Chesneau Cc: Vincenzo Maffione , "freebsd-net@FreeBSD.org" Subject: Re: how to cross-connect 2 interfaces Message-ID: <20231126232400.3018be2d@x25> In-Reply-To: References: X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd13.2) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: VI1PR09CA0135.eurprd09.prod.outlook.com (2603:10a6:803:12c::19) To VE1PR08MB4783.eurprd08.prod.outlook.com (2603:10a6:802:a9::16) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4783:EE_|AS4PR08MB7904:EE_ X-MS-Office365-Filtering-Correlation-Id: ee7adb96-0b1e-4922-12ba-08dbeece6683 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zFucttzdJzflCl92CCegEYlFdKOO2h2D1MLcu/rqp7VIIfC5Yv4/7YOWCGh7nBVY1QVJouzD/AHSpM9GKWNMsGV8uJar6OturfOkIVlP8L1guDBZEGWn23h8BeZz0JJHo3bGBO0flZVPaeMMJAa/zZQ72ODfKrSRqUvDnwUwX/3c3DF1KRa5bk31Qo+c/TMZ+qbAhIfipMDp82F9Boj3jpHLEWs5gV64/VJcqT2m4QwUxQHzFDEY7aVCFG52NMkfsYAtJI15RxgTDcVF6HHB/jznu3hJJzEik7fpNY3X0AyQ4BtgIpsckxd6WL9L+pgJ5sZ2FDgVa0TfxTe0/+yK+j3o6C9mE7A+N43OT19jXbe5l/CRUOJq/8XgrDklEMEapLQjpvpMR5YPHhPd7Rd/+goXffHglPtFWOlSXpsjE1Gmb6wZ2LDphZtZKb0/kB/+O9zscESgyYw/+LAImNBnYRvPayP6cUfh2fWD1tMSudznMex53GrTTI7cUqMm8LwCArqC6pE1+SKJX+VCt1jNpT8cWOfiOLLaUK5pRXFK3Ms= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4783.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(39850400004)(396003)(376002)(346002)(136003)(366004)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(8676002)(8936002)(4326008)(5660300002)(66946007)(786003)(66556008)(6916009)(316002)(54906003)(66476007)(41300700001)(9686003)(6512007)(53546011)(55236004)(2906002)(6506007)(478600001)(6666004)(6486002)(1076003)(26005)(83380400001)(33716001)(38100700002)(86362001)(41320700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MnF1L2hKKytId1RuVUJ5VWZXSlFLbVNqVzM4UnhZTnVkU1h5NE5SM0oxeUJ6?= =?utf-8?B?VmZ5TDI3TW15TW03clZFa2V2T1MwUEYvalhTVk9JNFZIRXZva0RMQnlJZTho?= =?utf-8?B?SzlPNm1HendFOGdnc1R5cWtsa2Y5THZ5SGl1UEEyRU42RUwvVHdySnA5WSs1?= =?utf-8?B?ZndPcTJKZXJtZlBXZHd0b3RXc2FuN2ZqUzNxdEszamFCSnRRaWx1NXY3dklM?= =?utf-8?B?Sjh0OTRQbHNxbW45Rzd5WHFOd2hYWWphb21ldk5CMXNSU1V5M1g2NklLNWZ2?= =?utf-8?B?SDRBUEZEVkM5aFZsSnZsb0FROEYxMElZcEQrWk5wZFY4V0RheDFFTWNvdWxP?= =?utf-8?B?UXBVZzUxK0JPeElYeEl1bUdZYmdU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0b1e-4922-12ba-08dbeece6683 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4783.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2023 22:24:05.5722 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: ca71eddc-cc7b-4e5b-95bd-55b658e696be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0VPvzaC7nEWFULGsgJhNUgcxIHxlhFSHLP1OKEX7FQNQpLCFeknFVrD5+MUiIg01 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7904 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US] X-Rspamd-Queue-Id: 4Sdjtf23Hcz4jMM On Sun, 26 Nov 2023 21:35:50 +0000 Benoit Chesneau 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=C3=AEt > On Sunday, November 26th, 2023 at 21:43, Vincenzo Maffione > wrote: >=20 > > Or, the netmap(4) bridge example > > > > On Sun, Nov 26, 2023, 12:40 PM Benoit Chesneau > > wrote:=20 > >> thanks, I didn't noticed this one. > >> > >> Beno=C3=AEt Chesneau, Enki Multimedia > >> =E2=80=94 > >> t. +33608655490 > >> > >> Sent with [Proton Mail](https://proton.me/) secure email. > >> > >> On Saturday, November 25th, 2023 at 23:30, Jim Thompson > >> wrote:=20 > >>> ng_hub(4) > >>> =20 > >>>> On Nov 25, 2023, at 8:34=E2=80=AFAM, Benoit Chesneau > >>>> wrote: =20 > >>> =20 > >>>> =EF=BB=BF > >>>> Is there a way to cross-connect 2 interfaces without using a > >>>> bridge . Something similar to the command =CB=8Bl2 xconnect` in vpp > >>>> (or cisco) : > >>>> [https://docs.fd.io/vpp/16.12/vnet_vnet_l2.html](https://www.google.= com/url?q=3Dhttps%3A%2F%2Fdocs.fd.io%2Fvpp%2F16.12%2Fvnet_vnet_l2.html&ust= =3D1701531263000000&usg=3DAOvVaw3gotHKi-LVQOb_H5p6W-4d) > >>>> This could be quite handy to create a patch between diffrent > >>>> machines in the network. > >>>> > >>>> Beno=C3=AE =20