-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Host interface isn't 'up' #4
Comments
The dhcp client of your OS should normally take care of that. That does require that you have networkmanager, dhcpcd, systemd-networkd, or similar running, which may not always be the case with Debian. |
Thanks. Changing /etc/network/interfaces makes it get the correct address. It now only needs 'ifup usb0' to get things working. |
You can also try constructs like "allow-hotplug usb0" in /etc/network/interfaces.
Sometimes other changes you do can indeed affect things. If you then at some point change /etc/network/interfaces so to that eth0 gets a static network configuration, that dhcp client may no longer run, and as a side effect no longer manages other interfaces as well. |
I don't actually have 'dhcp' on the main ethernet interface - in fact, it's not mentioned in /etc/network/interfaces at all, but it does get the address from the router at startup. So there may be some other simplified network manager running. |
I built and installed this, and it worked perfectly - but only after I'd manually brought the host side interface up.
The host is debian 11 on x86
After plugging in, the usb0: device appeared but it wasn't routed, had no address assigned and wasn't 'up'.
I could fix this with
ifconfig usb0: 192.1.7.10 up
(or, presumably, the equivalent 'ip' command)
However in my previous experience of the gadget interface on beaglebone this was done automatically, presumably by dhcp on the gadget side.
Is this normal for this code or has something failed in my build / host ?
The text was updated successfully, but these errors were encountered: