User Tools

Site Tools


docu:tutos:net:rpi_to_router

This is an old revision of the document!


Convert your Raspberry Pi into a Router


Today we are going to convert our raspberry pi into an effective router to create a new local subnet where we can safely host our servers and their services.

The device we are going to use is a Raspberry Pi 3b model, but any device with *nix, an ethernet adapter and 1 free usb slot (either 2.0, 3.0, usb c, micro usb) with usb-to-ethernet support compiled, should work.


THINGS YOU WILL NEED:

a small device (in this case a Pi), a usb-to-ethernet cable (to create a new physical address), a switch (in case you want to extend your connections), ethernet cables (with different sizes, depends on your setup)


Let's get things started!

  1. Connect the your small device to a working router (any router with internet access would do the work), connect it using the onboard ethernet adapter. In this case the gateway interface will be eth0
  2. Connect your usb-to-ethernet dongle to any free usb slot on your device.
  3. You should see a new interface, our subnet will be on eth1. If you don't see the new interface sure your system supports usb-to-ethernet)
I highly recommend you do this operations on a physical screen
connected to your device, and a usb keyboard.
Some operations over SSH could make you lose access.
docu/tutos/net/rpi_to_router.1581166680.txt.gz · Last modified: 2020/02/08 12:58 by admin