Raspberry Pi is currently being used as educational tools in computer networks laboratories in many university around the world, like Oxford and Yale, for hands-on education and learning of modern networking technology with software defined networking (SDN) and P4 [1],[2],[3],[4]. With readily available Ethernet port, Wi-Fi and Bluetooth, it come default with multiple standard networking technology. If you want multi-port Ethernet just use one of the available USB ports with USB-to-Ethernet converter as being practices by the mentioned references.
The main points that are probably missing from the people here is that the low cost nature of RPI and it cheaper clones for examples Banana Pi (MediaTek ARM) and Lichee Pi (RISC-V) are great for networking labs [5],[6]. As of now, if you want to learn hands-on computer networking you go straight to the big vendors equipment from Cisco, Juniper, Huawei, etc. This is not the current practice for properly learning car driving or plane piloting where the new learners will start form the most basic vehicles. Starting learning with the big vendors is like learning to drive with a Mercedes car or piloting with a Boeing plane, where the normal practice is to use entry level Daihatsu or Caessna [7]. This article coming from big vendor like Cisco is a big endorsement for this sane approach from the industry albeit subtly.
[1]P4Pi: P4 on Raspberry Pi for Networking Education:
https://www.cs.yale.edu/homes/soule/pubs/ccr2021.pdf
[2]P4Pi: P4 on Raspberry Pi for Networking Education (slides):
https://opennetworking.org/wp-content/uploads/2021/05/2021-P...
[3] P4Pi codes:
https://github.com/p4lang/p4pi
[4] Building an Internet Router with P4Pi:
https://dl.acm.org/doi/abs/10.1145/3493425.3502762
[5] Low Cost Banana Pi BPI-R2 Pro 5-Port Gigabit Ethernet Router Board:
https://news.ycombinator.com/item?id=28440718
[6] Lichee Pi 4A:
https://news.ycombinator.com/item?id=34137185
[7] Why the Cessna is such a badass plane (2019):
https://news.ycombinator.com/item?id=23253067