Sample Header Ad - 728x90

How to reset static IP address back to DHCP for ethernet

4 votes
1 answer
3999 views
I have setup a static ip address for eth0 with adb command ip addr add $ipAddress dev eth0 plus other commands to set the netmask, route and dns values. My question is how to I go back to a non static IP address I tried doing ifconfig eth0 dhcp but I get an error in adb saying > ifconfig: bad argument 'dhcp' Right now the only way I can reset everything is if I reboot the device since the changes dont persist. How can I reset them without a reboot?
Asked by tyczj (161 rep)
Aug 12, 2020, 06:53 PM
Last activity: Dec 20, 2022, 09:42 AM