How to build a MAC-based Vlan using Linux ebtables and netdev

How to build a MAC-based Vlan using Linux ebtables and netdev In this guide, we will explore the potential of ebtables to build a Vlan like network-segment using the MAC addresses of a set of devices. Unlike Vlans, these segments will be semi-isolated broadcast domains. As illustrated below, the bridge splits the Ethernet traffic coming from Port_0 in between Port_1 and Port_2 based on MAC addresses. To avoid complexity, there is no split between Port_1 and Port2. However, it can be defined in the same fashion. Software Bridge Configuration No packet filter between Port_1 and Port_2 No packet filter from Port_1 to Port_0 No packet filter from Port_2 to Port_0 Selected packets flow to Port_1 from Port_0 All other packets flow to Port_2 from Port_0 ...