-1

I've recently wanted to do a project with the Raspberry Pi Zero. Basically, I want to set up the Pi as an ethernet gadget for computers to be able to play games over WLAN. The computers have no wifi and each will have a Raspberry Pi. I need to make the Raspberry Pi's act like ethernet adapters to connect them together. The Raspberry Pi's would then connect to a wifi network that would allow them to create a wireless LAN. To get it to work, I would need multiple Pi's connecting to only one. I have more or less figured out how to set up the AP here: https://gist.github.com/ajfisher/a84889e64565d7a74888

The only problem I have is that the WLAN that the Pi's would create is not accessible through the ethernet gadget. How would I make it so that the WLAN is shared?

Ingo
  • 42,107
  • 20
  • 85
  • 197
drowZ
  • 121
  • 5
  • Just for understanding: you have several computer connected together over ethernet LAN using a switch to play games. To the switch is also connected your Raspberry Pi. How comes now wifi to play? For what do you want to use that? – Ingo May 26 '18 at 08:32
  • The computers have no wifi. I need to make the Raspberry Pi's act like ethernet adapters to connect them together. The Raspberry Pi's would then connect to a wifi network that would allow them to create a wireless LAN. – drowZ May 26 '18 at 13:37
  • You always write LAN in your question. That's a little bit confusing for me. Usually we distinguish between a LAN - devices connected with ethernet cables - and a WLAN - wireless LAN, no cables. Every computer should get a raspi to connect the computer to the shared WLAN, isn't it? – Ingo May 26 '18 at 21:43
  • Yes sorry. By LAN, I mean WLAN. – drowZ May 27 '18 at 00:35
  • again: every computer should get a raspi to connect the computer to the shared WLAN, isn't it? – Ingo Jul 01 '18 at 09:31
  • Yes, Ingo. Just imagine the computer having no internet interfaces at all, and I want to use the Raspberry Pi as an ethernet adapter. – drowZ Jul 11 '18 at 10:59

1 Answers1

0

There are mainly two ways to connect the gadgets to a common wifi network. First you can use routing but for a two way communication you must set static routes to each gadget and that is to much effort. The second way is to use bridging so the devices become member of the common network so as they where direct connected. Unfortunately Raspberry Pi does not support real bridging on wifi. But there is a possibility to use proxy arp. This will emulate a bridge on wifi. How to setup this you can look at Workaround for a wifi bridge on a Raspberry Pi with proxy arp.

Ingo
  • 42,107
  • 20
  • 85
  • 197