Re: macvlan like interface ?

From: Ronald Klop <ronald_at_FreeBSD.org>
Date: Sat, 03 Jun 2023 10:17:18 UTC
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 <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 <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/ <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.