Start a dhcp client on the bridge: # dhcpcd br0 # brctl showīridge name bridge id STP enabled interfaces
# ip tuntap add dev tap0 mode tap user $(whoami)Ī quick overview of the bridge. Then you can use the emulator located in /opt/android-sdk/emulator/emulator.Ĭreate a network bridge which include a tap interface (tap0) for the emulator and an ethernet interface (enp0s20u1) connected to a lan network. For ARM emulator you must use an other device.Īnd you must install the emulator package with the sdkmanager as this: sdkmanager emulator I think -net tap is the old way, use -netdev tap with new android sdk emulator and -device virtio-net-pci for x86 android emulator.