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.

user68186
  • 524
  • 1
  • 7
  • 16
Javier
  • 11
  • 3

1 Answers1

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.

Javier
  • 11
  • 3