Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a device that I connect to my host Ubuntu machine via Ethernet over USB. It shows up as usb0 in ifconfig and the device always has the same address: I have the following two problems:

  1. When I initially connect the device, the interface will connect and disconnect several times before settling down. I suspect this is because the dhclient is trying to obtain an IP address. The device does not support DHCP and this fails several times.
  2. After the interface is stable, I have to configure the interface manually with ifconfig.

To solve the two issues I tried configuring /etc/networking/interfaces:

    allow-hotplug usb0
    iface usb0 inet static

This does not seem to work at all and the interface never shows up. I also tried configuring the interface in /etc/dhcp/dhclient.conf:

interface "usb0" {

Anyone know what I am missing?

share|improve this question
Can you clarify what you mean by the device not supporting DHCP? This is not something a device can choose to support or not support. – Paul Nov 16 '11 at 22:55
@Paul: What I meant is that the device will never act as a DHCP server and give an IP address to the host. – waffleman Nov 17 '11 at 16:14
What is this device? It is a computer of some kind, a phone or something? Can you provide an excerpt of dmesg when it is plugged in? – Paul Nov 17 '11 at 20:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.