It's suprisingly easy to build a network switch, wrote a blog post about it :Dhttps://blog.brixit.nl/making-a-linux-managed-network-switch/