1

I have a Pi connected to my computer (running linux) through ethernet. I need this configuration for other purposes as the raspberry collects data from sensors and the data is sent through ethernet to the pc. The problem I am facing is that I need internet connection on my raspberry pi, and I would like to be able to connect to the internet using the ethernet cable. I have managed to do so on Windows, checking the "Sharing" tab under "Internet Connection Sharing", but now I need to do the same in Linux and I haven't found a way to do so. Can someone help me? Thanks in advance.

Ps: my pc does not have a wifi option as it has no wifi interface and is connected to the internet using another ethernet cable.

7
  • You can use any kind of ftp eg, freeFTP to transfer files to/from PC Windows OS and Rpi OS through Ethernet (Cat5 cable, eg). Even my EditPlus text editor has ftp features.
    – tlfong01
    Commented May 19, 2022 at 11:20
  • Does this answer your question? How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS?
    – Milliways
    Commented May 19, 2022 at 22:39
  • Connect to Pi to your router.
    – Milliways
    Commented May 19, 2022 at 22:40
  • This is not a Pi question, it is a general Linux question. You want your computer to act as a router, possibly with DHCP server. Search for "configuring linux as a router" or something like that. Commented Jun 2, 2022 at 20:12
  • After researching for some time I reached the conclusion that there is no way the raspberry can access the internet obtaining shared connection from the computer through one ethernet cable. I did a workaround that got me the same result though: using a switch. The pc and the raspberry were connected to the switch with an ethernet cable each, and the switch had access to the internet through another ethernet cable. That allowed both devices having internet connection whilst being able to communicate with each other.
    – Javier
    Commented Jun 3, 2022 at 8:41

1 Answer 1

0

After researching for some time I reached the conclusion that there is no way the raspberry can access the internet obtaining shared connection from the computer through one ethernet cable. I did a workaround that got me the same result though: using a switch. The pc and the raspberry were connected to the switch with an ethernet cable each, and the switch had access to the internet through another ethernet cable. That allowed both devices having internet connection whilst being able to communicate with each other.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.