2018-07-05 23:45 GMT+08:00 Luca Barbato <
luca.b...@gmail.com>:
> I have a system with 2 eth.
> By default android brings up only one of the two interfaces and ignores the
> other.
>
> When I try to bring the second one up the results are quite random partially
> because it maps eth0 and eth1 in an unpredictable way.
Right. It depends on which driver is loaded first.
> Anybody could point me to either netd documentation (if there is something
> that can be done there) or where the udev rules can be changed/added so that
> the network devices can be either pinned or renamed properly?
>
> Trying to have dhcpcd manage them works until netd doesn't randomly interact
> causing some quite bizantine (and broken) routing.
>
> I'm testing with the current oreo branch.
If you just want to use one interface, you can unload (rmmod)
the driver of the other interface, or just remove the driver
from /system/lib/modules/... (suppose your system is read-write).
--
Chih-Wei
Android-x86 project
http://www.android-x86.org