2

My company has given me a project where I need to provide internet access to a PC via a USB cable connected to the RPi (Model B), which in turn is connected to the router via Ethernet. I have in my possession the host-to-host USB cable. What would be the best way to share the connection via USB cable? Is it possible to map one of the Pi's USB ports as a network connector and then repeat the same step with one of the PC's USB ports? Or would it be better to configure the Pi as an RNDIS device, if that is even possible? I am a beginner when it comes to computer networks, so I am a bit lost implementing Ethernet over USB.

UPDATE: I have managed to get the Ethernet to USB bridge working on the Pi. I have connected the USB host-to-host cable to a notebook with Ubuntu and the internet worked just fine. However, I am having trouble with Windows, since I do not know how to get Windows to recognize the USB port as a NIC. Any ideas on how to do that?

Thank you for your support

  • 1
    What model Pi are you using? Why not connect the PI and PC via Ethernet or WiFi. This would require an WiFI dongle or USB to Ethernet adapter, but should make the rest fairly straightforward. – Steve Robillard Dec 21 '15 at 2:02
  • Raspberry Pi Model B. Unfortunately, connecting the Pi and PC via Ethernet or WiFi is not an option due to project restrictions. – ubermensch Dec 21 '15 at 2:20
  • 1
    A job's a job. Better question would be why was I assigned such a job, since I can't really grasp its purpose. But anyway, is it possible to set up the linux driver usbnet in order to share the connection over the USB host-to-host cable? – ubermensch Dec 21 '15 at 4:02
  • 2
    Check this question : superuser.com/questions/759822/…. It's reverse of what you're trying to achieve. As per the answer, linux supports ethernet over USB by default so with the help of proper drivers you should be able to do that. You will need to bridge interfaces to make internet available to PC. Good luck. :) – dhruvvyas90 Dec 21 '15 at 5:18
  • 2
    Yes, the company is making all sorts of experiments with the RPi, even if they are not practically viable. I have just been informed that this Pi will act as network monitor of a specific computer in the company. – ubermensch Dec 21 '15 at 14:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.