I tested on a Genymotion emulator, the ROM is Android 8.0 When I call "ifconfig eth0", I can receive the returned result normally.
But when I want to modify the IP address, I call "ifconfig eth0 192.168.0.173 netmask 255.255.255.0" The device stopped responding and nothing happens when I click on the Android emulator. The adb command no longer responds. I can't run APP through Android Studio (it prompts that the device cannot be connected)
The eth0 interface settings must NOT be changed, or this will break communication between Genymotion and VirtualBox. What is your use case?