Found this very informative video of building 10gb switch using vyos
It's a small m-itx board that already has a dual port 10gbe nic in it's only pcie slot.@nj47 why not just use pfSense with all the NICs?
IIRC aren't there 4 port 10Gb NICs that have switches on the NIC? Maybe that's the answer.
This was a cool idea years ago but these days 10gb gear is dirt cheap. 40gb is going to be next since everyone's moving to 25/50/100
Just got my ubiquiti saturday, how ever the build quality is excellent for mine, and if performs well too.@nj47, it would be dirt cheap. And it would perform like it...
There are some fundamental problems you have to overcome. You can get all the features and capabilities you want with vyos. But its running in Linux user space - which means you will have significant latency getting packets off the NIC and into the software switch. For a 1Gbe switch this can be troublesome - but for a 10Gbe switch it is a disaster. Even a few ms latency at 10Gbe can be larger than the transport time of a single 9000 byte MTU packet, meaning you cut your speed by at least half right out of the gate. Latency interactions with protocols like TCP will make it even worse.
The whole thing gets more complicated if you have more than 1 link actively transmitting. With vyos in a VM, even with NIC passthrough, you lose features like RSS that let you spread network traffic across multiple cores efficiently.
I'd wager that you wont get more than 2-3Gbps throughput/NIC on such a switch - worse, much worse, if your workload is skewed towards small packets. BTW - i tried this a couple of years back and proved to myself that what is viable at 1Gbe just doesn't work at 10.
It just makes no sense with 4+48 options running around $400 (X1052, others), high-power 200w 24 port options (LB6M) regularly hitting $250-400, and brand new, low power, 16 port options around $600 (Ubiquiti - albeit with crappy build quality - but still better than the Frankenswitch approach)
I tried a franken switch and it worked OK. I stuck a couple of 25 dollar 10GBE nics in a pfSense box and it "just worked". It worked at near wire-speed between a couple machines across the router. I posted my notes on this forum earlier this year.The franken switch would be ok if you have most everything laying around, if you have to purchase everything you'd be better off just getting a new one