I'm curious whether it is possible to use the Pi in the following configuration:

 ╔══════════╗        ╔══════════╗
 ║ internet ║        ║ device 1 ║
 ╚═════╤════╝        ╚═════╤════╝
       │            ╔══════╧══════╗ ░░░░░░░░░░░░░░ ╔══════════╗
       └────────────╢ wifi/router ║ ░░░░ wifi ░░░░ ║ device 2 ║
         cable      ╚═════════════╝ ░░░░░░░░░░░░░░ ╚══════════╝
                        ░░░░░░
                        ░░░░░░                        . . .
                        ░wifi░
                        ░░░░░░  Here is no
                        ░sig-░  cable possible!
                        ░nal ░
                        ░░░░░░
                        ░░░░░░
         cable      ╔═════════════╗
       ┌────────────╢ raspberrypi ║
       │            ╚═════════════╝
       │       Following devices are out of range
     ╔═╧═╗     of the wifi signal:
     ║ S ║     ╔══════════╗
     ║ w ╟─────╢ device 5 ║
     ║ i ║     ╚══════════╝
     ║ t ║     ╔══════════╗
     ║ c ╟─────╢ device 4 ║
     ║ h ║     ╚══════════╝
     ╚═══╝

I need not only internet connection for device 5 and device 4, but also I must be able to log in to device 5 and device 4 using ssh from device 1 or device 2. Is there any possible solution using a raspberry pi? Where the pi is still able to be logged in and just forwarding the network traffic.

If it is not possible to use the pi in this configuration while still be able to ssh in to the pi, is there a possibility to use the pi like a "invisible bridge/switch" then?

I'm trying to accomplish something like this:

router       192.168.  1.  1  (the one and only dhcp, gateway to the internet)
device 1     192.168.  1.  2
device 2     192.168.  1.  3
raspberrypi  192.168.  1.  4 ?
device 4     192.168.  1.  5
device 5     192.168.  1.  6

I found things like this post, but I wonder, why the Pi should act as a DHCP. Is there a way that the wifi/router is the only DHCP there?

  • There is nothing in this question specific to the PI, which would not apply to any computer running Linux. You will get more answers on unix.stackexchange.com/questions – Milliways Nov 4 '17 at 4:10
  • In general you should NOT run multiple DHCP servers on a single network segment. PS If you do ask on U&L specify what distribution you are running and mention this is Debian based. – Milliways Nov 4 '17 at 4:18
  • 1
    Adding a RPi specific note: You can certainly use the RPi as a wireless bridge in this manner, but the performance of the on-board wifi is not stellar. There are lower-cost travel routers (e.g. GLi) that perform better. You might also check out PowerLine solutions if the systems share an electrical system. – bobstro Nov 4 '17 at 7:06

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.