-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/network manager dhcp support #5109
Feature/network manager dhcp support #5109
Conversation
Signed-off-by: Patrick Sean Klein <[email protected]>
Thanks for your PR. However, this will need some discussion. Some time ago we decided to drop Do we want to continue to offer setting static address during installation? Do we want to include NM already now? Or only after Raspbian made the change? __ In any case, we would greatly appreciate a contribution to our documentation (https://docs.pi-hole.net/main/prerequisites/) on how to set a static address for different network managers. We had a draft PR pi-hole/docs#547 but it was abandoned. Maybe you could build on that and write a guide for NM? |
My personal take on this is that we drop the static IP hand-holding once Raspberry Pi OS goes to NM, though it's not a hill I will die on. Since we dropped the static address setting on all but systems with
Reads to me rather like it's coming soon™ I'm also of the opinion that static IP addressing should be handled at the router via dhcp reservation, but other peoples opinions on that are certainly valid, too 🙃 |
I'm happy to drop configuring server networking completely. When we started 6 years ago it was easier to be a one-shot install that tried to do as much work for people as possible. We didn't have the resources to walk people through everything and explain the basics of IP addressing along the way. Things certainly have changed since then, there are tons of guides and resources and help with getting people that are new to Linux or new to networking set up. A great driver of that has been the Raspberry Pi and lowering the barrier to entry for people to have access. I think we are at the point that we can let this go. Originally the idea was to drop static networking completely but I argued for keeping When you get down to it, Pi-hole is a DNS server and needs to have a stable IP address for clients to use. How you get that stability is up to the user now, we may get an increase of support requests for people that lose Pi-hole from not having a stable IP address but the debugger is pretty accurate with |
We decided internally to not further offering the ability to set a static IP address during installation once Raspbian made the change to |
This is my first PR to this project so weight my opinion accordingly. I do not see enough value in further offering (automatic) static IP configuration by the installer. In fact, I assume that it creates more harm than good: Moreover, it's something that potentially limits the number of supported distros and causes a maintenance overhead. Im happy to close this PR in favour of #5111. I'd suggest closing |
How does #4783 relate to the IP address of the Pi-hole node? |
What does this PR aim to accomplish?:
This PR implements support for setting a static IP via NetworkManager. See #4783.
How does this PR accomplish the above?:
The codes adds a check if network-manager is installed and if it manages the selected interface. If so, nmcli is used to configure the interface.
Note that this is a preliminary implementation that will need to get tested once Raspberry OS makes the change. Until then it could be used to support more operating systems.
By submitting this pull request, I confirm the following:
git rebase
)