Hello everyone!
I am using the tool „dhcptool“ to establish a connection on an „eth0“ device. This was working fine on Android 7.1.1. I updated my Android-x86 and have Android 7.1.2 and now this isn’t working anymore. Adding the gateway address always fails with “Network not reachable”. I checked the debug output on ADB: DHCP managed to get the correct IP address, DNS and gateway. I also checked in the source code: the failure happens in /system/core/libnetutils/ifc_utils.c, function ifc_configure():ifc_create_default_route() failes with ENETUNREACH (“network unreachable”).
Maybe “dhcptool” is no longer recommended? If so, what is the alternative?
I don’t know, if this is relevant: the “eth0” device comes from a LTE modem, not a LAN Ethernet card.
Regards,
Peter