How to reset static IP address back to DHCP for ethernet
Solution without root privileges:

Disable WiFi

Run:
 adb shell put global wifi_connected_mac_randomization_enabled 1


Enable WiFi and connect to your network


You should have a new IP.