I want to make a router-access point with a Raspberry PI model B. But I need 5 LAN ports (4 WAN ports and 1 LAN).
So I tried this:
Can Debian read 4 LAN's over
USB hub-->USB-LAN adapter?
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
I don't see any reasonw why it wouldn't work.
Debian can read as many devices as you have plugged in.
Your bandwidth will be shocking though as all devices will be sharing the same bus, and thus bandwidth. CPU usage will also be very high due to the inefficient USB stack that the Pi uses.
This is all assuming that the USB LAN adapters you have don't have any issues.
Sure you can; you'll need a powered USB hub though, to power up all these adapters, and you'll have a hard time achieving 100mbit throughput. USB 2.0 is 480 Mbit/s half-duplex, over one cable between RPi and the hub, no matter what communicates with what, e.g. transmission between two local ports.
Enumerating and addressing all these devices in Linux before setting up routing will be a drudgery too. Doable, but IMHO not worth the effort.
Personally, I believe you'd be far better off using one USB-Ethernet adapter, turning RPi into a router with 1 WAN and 1 LAN port, and one dumb network switch for creating the remaining 4 LAN ports. That way you get 100mbit throughput to WAN and save up on 3 USB adapters.
Still, this all is an interesting but not very useful exercise. Getting a dedicated router where you can replace the firmware with your own will be more fault-proof, easier, and cheaper.