3

I have a situation where I need to share the Raspberry Pi's internet connection through the ethernet cable. The Raspberry Pi is already connected to the internet with a Wi-Fi dongle, but I'm not sure how to pipe that connection through the ethernet port.

The main problem is that everytime I plug in the ethernet cable, it seems to default to that for internet, even if none is available and my WiFi dongle does have internet available.

Any suggestions?

syb0rg
  • 8,178
  • 4
  • 38
  • 51

2 Answers2

4

Of course that's possible! Check out this site: http://imranasghar.blogspot.com/2009/09/how-to-make-ubuntudebian-as-router.html

What you're wanting to do is routing on your Raspberry Pi so that the Ethernet connection is downstream from the WiFi dongle. You can go ahead and skip the first few steps about DHCP since you'll only have one device, and can assign it any static IP in the range you specify. Looks like you'll want to start on Step 7 with the Forwarding and IPTables entries.

And probably lots of testing! Good luck!

armani
  • 141
  • 2
0

I found a tutorial video for this. Its super easy for windows user. Just share your wifi internet then plug your Ethernet cable to both PC and Rapberry Pi

https://youtu.be/2dBTDVr_fL0

Mia19
  • 41
  • 1