3 ms·
Is there anyway to make a router using just a single port ethernet? I'd like to have an Intel NUC to act as the main router, but it has only a single ethernet p
by riobard 11y ago
Is there anyway to make a router using just a single port ethernet? I'd like to have an Intel NUC to act as the main router, but it has only a single ethernet port.
- skrause 11y agoYou could buy a simple USB-to-Ethernet adapter like this one: http://www.amazon.com/dp/B00M77HMU0/ http://www.amazon.com/dp/B00M77HMU0/
- StuffMaster 11y agoI don't know, it seems like running a router over USB kinda defeats the point.
- mwpmaybe 11y agoThere are some dual-LAN mini-PCs available, although I'm not sure if Intel makes one. You have several options. I use one of these[0] flashed to FreeBSD (pfSense), but it will run Linux if that's what you prefer. 0. http://store.netgate.com/ADI/RCC-VE-2440.aspx http://store.netgate.com/ADI/RCC-VE-2440.aspx
- kijiki 11y agoNetgear has a cheap 5 port switch (GS105e, IIRC) that can do VLANs and trunking. There also have larger models. You'd configure the switch port that the router is plugged into as a trunk, and then configure the other 4 switch ports as untagged in different VLANs (say, 101 for port 1, 102 for port 2, and so on). On the router side, you can use vconfig to create VLAN subinterfaces for each VLAN. You'd end up with eth0.101, eth0.102, and so on. You then just ignore eth0 on the router, and use eth0.# interfaces as stand-ins for the various switch ports. You can put them in Linux bridges, route to and from them, and so on. This is internally how most cheap wireless routers work. The CPU has only 1 or 2 ethernet interfaces, and an small onboard switch chip. Link level things like LLDP and STP may or may not work right with this config, depending on exactly how the switch chip (on board on a cheap wireless router, in the netgear switch for this DIY version). But most home and small business routers don't support LLDP and STP anyway.
- riobard 11y agoThanks a lot for the guide!