I am using a Raspberry Pi 4 with Linux raspberrypi 4.19.58-v7l+ #1245 SMP Fri Jul 12 17:31:45 BST 2019 armv7l GNU/Linux.
I would like to be able to set a DHCP IP just like I have set a Static IP.
I have set a static IP by adding the following lines in /etc/dhcpcd.conf :
Code: Select all
interface eth0 static ip_address=192.168.1.20/24 static routers=192.168.1.1 static domain_name_servers=184.108.40.206
I need this method because I want to link to it a php interface in which an user can enter network credentials. I have also done this for Static IP.
Thank you !