Don't get IP by USB direct connection

Discussion in 'UDOO NEO' started by szhvoj, Dec 11, 2018.

  1. szhvoj

    szhvoj New Member

    Joined:
    Dec 11, 2018
    Messages:
    2
    Likes Received:
    1
    Hi

    I have a PC with Windows 7 without administrator password. So I'm using an Oracle VirtualBox VM with newest Ubuntu. I am able to activate USB forwarding for the Udoo, and the Ubuntu is creating a new interface for the udoo. But it doesn't get an IP address (192.168.7.1).

    I'm further able to connect to the udoo by using minicom...

    How can I reset the IP configuration? dhclient doesn't work. How is the IP configuration handled?
    Thank you for any hints!
     
  2. szhvoj

    szhvoj New Member

    Joined:
    Dec 11, 2018
    Messages:
    2
    Likes Received:
    1
    I found the solution to set the IP address (192.168.7.1) manually. It worked for me for the moment.
     
    Laura likes this.
  3. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    @szhvoj, I found that setting a wider range of IP in interfaces and dhcp makes everything faster and more reliable.

    So /etc/network/interfaces:

    Code:
    [...]
    # USB OTG connection
    allow-hotplug usb0
    iface usb0 inet static
    address 192.168.7.2
    netmask 255.255.255.0
    [...]

    and /etc/dhcp/dhcpd.conf

    Code:
    [...]
    subnet 192.168.7.0 netmask 255.255.255.0 {
      option routers    192.168.7.2;
      option subnet-mask  255.255.255.0;
      range 192.168.7.1  192.168.7.100;
    }
    [...]
    
     

Share This Page