From nobody Sat Jun 3 10:17:18 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 4QYG5C1GvPz4ZCdv for ; Sat, 3 Jun 2023 10:17:19 +0000 (UTC) (envelope-from ronald@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QYG5C0ksxz3PZC; Sat, 3 Jun 2023 10:17:19 +0000 (UTC) (envelope-from ronald@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685787439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X3dR9CH/Hj+rqmSA+lMREgN2o2omtJME3E/uJilm8zE=; b=CtkUtXTDU/fD51iXrC9aXiEMFgBdOi3ParYpdk3//NonjYmNLD6sdVKZvOKQmmIAcsv04t zfSsJorvnGeC0HX6j0XkBa5mJ/go/UooTfvwFDHbGvx0QV6Fl1P64fquiSXa+NejpABYDM b2XoulMO5nk1hp5eDe+LVBpe+7/d59Ibs/GtQ1kaTGnkE8lqo8uQhZpdJG77gHVprr7qDX QLcEtA2y1NJ7s1lFhlJW4KrF23RBbDcr79xE6aytPcMgv388/Fd2yr9O/mSGMb/vZdnbZ0 Af7XpBJEr63+f8IlW8Tt4JZeQo5frIk2NhCgal0qZD+2GSHLauvQIFuXcjcTSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685787439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X3dR9CH/Hj+rqmSA+lMREgN2o2omtJME3E/uJilm8zE=; b=lMg61l6nTwrpfY6eF3Bi0qZMkr6NN1SktdSpN1ABFJY7R2exVE/TTiJuCLmAxZD8pgrfLP +f+VUzDwUvMlKH4UtovsTHnBcY3+qyDSeXVLZfs2xVEu9+YaVCoG2HsJCYAvxGTZm4C6Q/ qy36gj29F5q8EG7aEHSkHxbskamgzIw258XMGOSzPfZ8HdcTMZWoCnYAQSG3yCnHyn3Phg yI9/xpd4Hk0deb+RMURitoI4sKPtIRXZY9JwYHEHdA1cEeDNa+27lWL6Dz3Nsb4akisOiZ AZFC0tTp2YSZndiAnPBr493kbHA2PNEEhsGmhIeSMGAaSuxT+YNs+aXWE9kdeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685787439; a=rsa-sha256; cv=none; b=IsSEmGDSzU0qAuHBjiPwp9N5O84OOaiHZW/9rrDFTJCt4jb5jmoG9LfWcqwRjbNrU8F1eE QtVyVtcgmFNsWmNaq6c3TTCiPLsp0u2VFW5xMP/V1KDoBZbW0s3VgvNxSdc8h60RR8TQO+ tGj6WLec5UhPK9stN/aNlfDM5N9v6URHFTxR+Vbf2/Rejy3ZqpWNdOyJCZIZ/FbX90g7Pb WuKyD4VmjtOz9eUDjm3cMUgSJBASKYdzoR21qqrRRbfRgBhg2jlwMp+dzWBa0P8HrHUsBz 75IlgwSe8vOOvTE5k/UX2p2uAZ3W5UcaxRj445I0jzqgUhUSe/KN9qkgm1SqPQ== Received: from [IPV6:2001:1c00:2710:7910:19c8:997c:5b84:7ce8] (2001-1c00-2710-7910-19c8-997c-5b84-7ce8.cable.dynamic.v6.ziggo.nl [IPv6:2001:1c00:2710:7910:19c8:997c:5b84:7ce8]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: ronald/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QYG5B25FyzVVD; Sat, 3 Jun 2023 10:17:18 +0000 (UTC) (envelope-from ronald@FreeBSD.org) Message-ID: <28910362-3c77-d03c-f974-a6eb269e1dd7@FreeBSD.org> Date: Sat, 3 Jun 2023 12:17:18 +0200 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Subject: Re: macvlan like interface ? To: Benoit Chesneau , "freebsd-net@FreeBSD.org" References: <3jWu3NaiKsoJqSGVoBnHlFDl-4aA2KYN1DVBHlccIeqfpCFZ5WZv4MXLPreAjuToXkyGaW4lAQae8STdEzEDfyeXoVb3888W4rSqwyqnUPg=@enki-multimedia.eu> Content-Language: en-US From: Ronald Klop In-Reply-To: <3jWu3NaiKsoJqSGVoBnHlFDl-4aA2KYN1DVBHlccIeqfpCFZ5WZv4MXLPreAjuToXkyGaW4lAQae8STdEzEDfyeXoVb3888W4rSqwyqnUPg=@enki-multimedia.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ThisMailContainsUnwantedMimeParts: N On 6/2/23 23:54, Benoit Chesneau wrote: > I read this old post : > https://forums.freebsd.org/threads/second-mac-address-to-a-network-adapter.32176/#post-612587 > > Would ng_eiface + ng_bridge really replace a macvlan [1] [2] interface ? What would be the other way to have such interface? > > > BenoƮt > > [1] https://developers.redhat.com/blog/2018/10/22/introduction-to-linux-interfaces-for-virtual-networking#macvtap_ipvtap > [2] https://sreeninet.wordpress.com/2016/05/29/macvlan-and-ipvlan/ I just read some articles about macvlan. It looks like a simplified bridge setup without showing the bridge details to the user. https://i1.wp.com/ipwithease.com/wp-content/uploads/2021/09/MACVLAN-DP.jpg The use of if_bridge + if_epair is a common way to create such a setup in FreeBSD. NB: if_bridge + if_epair != ng_eiface + ng_bridge although functionality might look similar. NB2: What are you trying to accomplish? Regards, Ronald.