ykzeng / emuedge

EmuEdge: a scalable, Hi-Fi, highly-automated real-life network emulator based on Xen/Linux Netns/OvS, supports the networking of container/vm/physical machines.
MIT License
9 stars 3 forks source link

EmuEdge Android VM network settings for external connection #16

Open ykzeng opened 6 years ago

ykzeng commented 6 years ago

Android has renowned problems in ethernet support, especially in DNS, the following fix solves the DNS problem in terminal and browser, we are still looking for how to solve this DNS problem for Google Play Store.

Commands to use (For 5.1.0 Lollipop):

ndc network create 100
ndc network interface add 100 eth0
ndc network route add 100 eth0 0.0.0.0/0 <gw>/<prefix> (e.g., 10.0.0.1/24)
ndc resolver setnetdns 100 localdomain <DNS1> <DNS2>
ndc network default set 100

References: Google Groups discussion Github DNS Setter Android Source Code on Net Settings