Configuration for dhcpcd #883
Unanswered
RogueWarrior65
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This question is coming from a discussion I've had with Roy Marples on dhcpcd deferring to a "3rd party" to assign DHCP addresses. He tells me that if one wants to have dhcpcd assign the addresses, there shouldn't be any "static" lines in the dhcpcd.conf file for a given interface block. For example, if you have the following:
interface eth0
static ip_address=
static routers=
static domain_name_server=
That tells dhcpcd to wait for some 3rd party program/daemon to handle setting the IP address. However, if all you have is:
interface eth0
Then dhcpcd will take care of setting the IP address.
RaspAP dhcp.php sets the dhcpcd.conf file with the first form of the interface block above.
So, in the Raspberry Pi world, is there a system program/daemon that's handling DHCP address assignment?
Or, am I missing something such as the PHP code just modifying what was there originally and the interface block should have started out without the static lines?
Beta Was this translation helpful? Give feedback.
All reactions