Hi ,
i just want to be sure where is it to add reserved IP , static IP , fixed IP to a specific device .
sorry but i'm not very familar with english language , and it is not written clearly in the GUI .
Thanks in adavance for help .
Hi ,
i just want to be sure where is it to add reserved IP , static IP , fixed IP to a specific device .
sorry but i'm not very familar with english language , and it is not written clearly in the GUI .
Thanks in adavance for help .
It is in Settings > DHCP > Static DHCP leases configuration.
You can type an entry in or you can use the orange button from an existing lease in the section above (Currently active DHCP leases) to copy it to the static section. You can then edit it if you want to.
Once you have typed it in or copied and edited it, save the change with the green [+] button.
Do this for each IP that you want to configure, one at a time.
Adding to that, what @chrislph mentioned assumes you are using Pi-hole as your DHCP Server. If your Router is the DHCP Server, then you will have to figure out what is needed to configure it there.
Hi , and thanks for this .
just , this is not very easy to use , need to enter manually the MAC adress and the IP adress ,
unfortunate .
Reserving an IP address for a DHCP lease requires the MAC address and IP address, so it's got to get in there somehow. Either you can type it in, or, if the client is already on the network and you can see it in the leases section above, you can use the orange button I mentioned to copy the information down to the static section, where you can then use it as is or edit it, eg to change the IP. That saves having to type it all in.
ok , but i don't have any clients in the leases section above .
Thanks for all this informations .
As nosugref42 pointed out, you need to be using Pi-hole as the DHCP for any of this to work. If you were using Pi-hole as DHCP server then you would expect to see clients in the leases section. If you are using your router then you have to do your address reservations there and not in Pi-hole.
Hi ,
i ' ve now put pihole as DHCP server for a week now , still nothing in the lease section above .
And more , I have very few clients connected, only 11 out of more than thirty.
i ' ve 2 pis on the same configuration and the 2 present the same problem .
in the 11 clients connected , only 6 are in green on the dashboard .
To me, that suggests that you have another DHCP Server, like your Router configured, and it is handing out addresses.
If Pi-hole is handling the DHCP addresses, it should show active leases.
the DHCP server on the internet box has been deactivated for more than 15 days. on both LAN .
one is with starlink routeur in bridge mode , and the other is with a livebox routeur , in wich i desactivated DHCP manually .
Please create a debug log and post the token URL here.
pihole -d
or
Tools > Generate debug log > Upload debug log and provide Debug token > Generate debug log
hi , the token URL is here : https://tricorder.pi-hole.net/izR96E9z/
just in cas , i use apache2 because i got another site to use with the 2 pis .
Thanks .
Your log shows that:
You also have:
.2
to .251
.132
.40
.40
)I'm not sure why you are seeing the low takeup but I don't think it's a Pi-hole problem, as the log shows Pi-hole is working when it's used. Try running look lookups from a machine which should be using Pi-hole and see what it's actually using. For example you can run the command below to confirm it's talking to Pi-hole. It will give you Pi-hole's IP if it's using Pi-hole. Client machines must use only Pi-hole for their DNS or else they can easily send their queries elsewhere.
nslookup pi.hole
One change I would suggest is to move Pi-hole's own IP to be outside of the range of its DHCP server. I'm not sure how Pi-hole handles that and whether it can intelligently detect the overlap and keep that IP "reserved" for itself.
Ideally you want some space for static IPs and for your range. For example you might set your range to be from .20
to .254
and that gives you .2
to .19
to assign manually where needed. You can then put Pi-hole on, eg .2
. The router is on .1
.
Another change is to ensure that any client which has a Local DNS name has a reserved IP (or a manually configured static IP as above), to ensure that the correct machine is receiving the name you have specified. However you may have already intended that, and your experimenting with Local DNS means that only one entry was configured as reserved at the time you made the debig log.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.