2 ms·
Linux and one ethernet card will get the job done, using VLAN trunking. devA --notag-> switchA --tag100-> linux.eth0.100 -> ebtables (linux.br0) -> linux.eth0.
by mindslight 11y ago
Linux and one ethernet card will get the job done, using VLAN trunking.
devA --notag-> switchA --tag100-> linux.eth0.100 -> ebtables (linux.br0) -> linux.eth0.101 --tag101-> switchA --notag-> devB
Obviously there's a bandwidth bottleneck, but we're mostly concerned about piddly devices that exchange control messages or in the worst case stream video, not gigabit file transfers. And the latter case can obviously be scaled up with a quad port card on the Linux brouter, and/or more than one device on each VLAN.
After that's setup, what's the point of the complexity of separate subnets? You don't really need to route between IP subnets when ebtables / brouting will give you the same filtering functionality, transparent to level 3.