I try to connect my ps4 with my vpn connexion without using the computer. I install the vpn on a raspberry pi 2 and i connect my raspberry to internet by the ethernet connexion. I use the raspberry with SSH on my laptop. I also have an usb/ethernet shield and I want to plug this shield on my raspberry in order to share the ethernet connexion through usb/ethernet adaptor. Do you know how can i configure my usb/ethernet shield as output on my raspberry pi2 ? Thank you
1 Answer
Ethernet shields are neither input or output, they are both. Generally they are used as a transceiver where data is sent and received by the same shield over the same cable. If you can open a web page with it, it is working just fine both sending and receiving. I believe your best solution is to purchase a small ethernet switch, they are only a few shekels and already debugged.
-
Thank you for your answer. I know that ethernet/usb shield are input or output. But is it not necessary to define the ethernet/usb shield as output on my raspberry like the same thing on windows for exemple ? Because if i use the ethernet port of my pi2 as input and i plug the ethernet shield on the usb, how do the pi2 know that usb port is output for sharing connexion? Commented Jul 25, 2021 at 20:38
-
That would be software on the Pi and defined by the protocol you are using. For it to share it has to receive a request so somebody else knows it exists unless your protocol uses some form of broadcast.– GilCommented Jul 28, 2021 at 22:54