So, it's very likely you need the driver to come up before you can bring the interface up. So, one option would be to "inject" your driver into the initrd( very advanced ), or to write a systemd service( a systemd timer may also work ) that sets the device up appropriately.
My thinking is that /etc/network/interfaces is loading devices *before* the device driver for your adapter is loaded and running. You could experiment by duplicating the exact commands you're using to manually bring the interface up( the commands where it works ), and run that script at boot through a systemd service. If that works, there is a good chance that it's still loading slower than using the /etc/network/interfaces file . . . but if that's the way you have to get it working at boot. It'll work. Anyway, try that, and see if that work. If not, then what I said about the interfaces file trying ot load your network interface too fast is probably the case. On Mon, Mar 20, 2017 at 7:37 PM, Jon Seymour <[email protected]> wrote: > I am trying to use d D-Link USB Ethernet with Debian 8.7 running on BBB. > > > The device describes itself as: "D-Link DUB-1312 USB 3.0 to Gigabit > Ethernet Adapter". > > > The lsusb output is: > > > "Bus 001 Device 002: ID 2001:4a00 D-Link Corp." > > > The driver for this device is ax88179_178a which is loaded into the kernel > as a module. > > > > The driver finds the device: > > > [ 21.274812] ax88179_178a 1-1:1.0 eth1: register 'ax88179_178a' at > usb-musb-hdrc.1.auto-1, D-Link DUB-1312 USB 3.0 to Gigabit Ethernet > Adapter, e4:6f:13:f3:df:43 > > [ 21.280951] usbcore: registered new interface driver ax88179_178a > > [ 21.791100] omap-sham 53100000.sham: hw accel on OMAP rev 4.3 > > [ 21.836014] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2 > > [ 23.920271] asoc-simple-card sound: i2s-hifi <-> 48038000.mcasp mapping > ok > > [ 24.088282] ax88179_178a 1-1:1.0 enxe46f13f3df43: renamed from eth1 > > > If I manually bring enxe46f13f3df43 up, then I can configure it and get a > working connection to the internet. > > > I wanted to automatically bring up the device to use DHCP but when I added: > > > auto enxe46f13f3df43 > > iface enxe46f13f3df43 inet dhcp > > > to /etc/network/interfaces the interface was not brought up automatically > (even after reboot) > > > I tried to statically configured the device with: > > > auto enxe46f13f3df43 > > iface enxe46f13f3df43 inet static > > address 192.168.1.100 > > network 255.255.255.0 > > gateway 192.168.1.1 > > > but the interface also did not come up automatically in this case. It > would come up correctly configured if I manually ran ifup enxe46f13f3df43. > > > I also tried to change the interface name to eth1 using > /etc/udev/rules.d/71-local-rules > > > # Auto generated by RootStock-NG: setup_sdcard.sh > > # udevadm info -q all -p /sys/class/net/eth0 --attribute-walk > > > # BeagleBone: net device () > > SUBSYSTEM=="net", ACTION=="add", KERNELS=="enxe46f13f3df43", > ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth1" > > > I also tried to use the systemd.link feature by creating a file called > /etc/systemd/network/10-local.link with these contents: > > > [Match] > > Driver=ax88179_178a > > > [Link] > > Name=eth1 > > > So, there are two problems here: > > > - the interface is not being configured automatically > > - I can't rename the interface with either udevd or systemd.link > configuration > > > Can anyone help me understand why this isn't working as expected? > > > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/beagleboard/02c92417-7142-41c8-8564-f202658fce00%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/02c92417-7142-41c8-8564-f202658fce00%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORrYe3da%3DOgXqT57Yersb0hiR-mpCPVPU0Fxr9hYVAt%3D7Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
