3 Replies Latest reply on May 29, 2015 12:54 PM by jbromley

    Ethernet Over USB on Ubuntu Linux


      I am trying to connect to my Edison via ssh and I need it to be connected to the same network as my desktop machine. The problem is my PC uses an internal network connection (and has no wireless). I have seen topics on how to enable a bridged connection for the USB for a MAC and a Windows: Edison - Ethernet Over USB (RNDIS) on Mac but there is no mention of how to to achieve the same thing under Linux. I can connect to my Edison via the screen command, and I can also make it connect to wireless networks, but I need ssh access from this particular desktop machine that has an internal network (and no wireless card).


      Any help is greatly appreciated.


        • 1. Re: Ethernet Over USB on Ubuntu Linux

          I figured it out. So, essentially usb0 needs to be configured as a network interface. I followed these steps to enable it.


          1) add the following line at the end of your /etc/network/interfaces file:

          iface usb0 inet dhcp

          2) sudo ifup usb0

          3) sudo ifconfig usb0


          After this when you do ifconfig you should see an entry for usb0 with an inet addr: You can then connect to the Edison via ssh root@ Apparently the IP address gets assigned by default to the Edison.


          • 2. Re: Ethernet Over USB on Ubuntu Linux

            Great Petko, I encourage you to keep posting new things in the communities.


            Best Regards;


            • 3. Re: Ethernet Over USB on Ubuntu Linux

              A slightly easier way is to put all of the usb0 interface information in the /etc/network/interfaces file. The following stanza is sufficient.


              iface usb0 inet static




              Note that you should use static IP assignment rather than DHCP (unless you have something on the 192.168.2.x network providing DHCP). Once you have this information in your interfaces file, simply running ifup usb0 will configure everything properly to be able to talk to the Edison over the USB network interface.