0

This question already has an answer here:

i set up a static ip address on my pi 3 but after that the internet is not working. how can I change it to dynamic? or what should I do?

marked as duplicate by Milliways, techraf, Aurora0001, goldilocks Mar 3 '18 at 18:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

Set a 'reserved' ip address in your DHCP (router) server: It will always assign the same IP address to your Pi. It will act the same as a static address. No configuration in the Pi.

1

You must change the configuration file /etc/networl/interfaces.

for eth0 you must have a row like this one

iface eth0 inet dhcp

change the file, saveit and restart network service:

systemctl daemon-reload

you can renew your ip address with dhclient

Of course you must have root privileges. Use su - root or sudo

Not the answer you're looking for? Browse other questions tagged or ask your own question.