I was playing around bit with the DHCP server addon.
I’m not really in need to use this server, because I’ve configurated all of my network devices into sections in the router itself. Here I made sections of ranges where I put my devices. Like PC’s/ telephones/ Domotics etc.
My DHCP-pool on the router is setup in the range of 10.0.0.20 - 10.0.0.49 And I mainly use it for the guest-account, since al the rest of my devices are “fixed” in my private “part”.
And I would like to use this same pool in the DHCP server addon of HASS. So I can make some triggers in the future when guests login into my guest network.
So I would like to setup this same range in HASS, and everything outside this range is not important, because it’s all fixed within my router (private network part).
So I’ve made this configuration in the DHCP ser addon so far:
default_lease: 43200
max_lease: 86400
domain: my-network
dns:
- 8.8.8.8
- 8.8.4.4
networks:
- subnet: 10.0.0.0
netmask: 255.255.255.0
range_start: 10.0.0.20
range_end: 10.0.0.49
broadcast: 10.0.0.255
gateway: 10.0.0.1
interface: eth0
hosts: []
But when I check the logfile, then I see that it’s also interfering with IP requests outside this DHCP-range? Am I missunderstanding something or doing something wrong here?
DHCPREQUEST for 10.0.0.143 (10.0.0.1) from d8:f1:5b:b0:4a:b6 via eth0: unknown lease 10.0.0.143.
DHCPDISCOVER from 80:7d:3a:4d:d7:91 via eth0
DHCPREQUEST for 10.0.0.135 (10.0.0.1) from 80:7d:3a:4d:d7:91 via eth0: unknown lease 10.0.0.135.
DHCPOFFER on 10.0.0.27 to d8:f1:5b:b0:4a:b6 via eth0
DHCPDISCOVER from 08:a6:bc:b6:99:27 via eth0
DHCPREQUEST for 10.0.0.163 (10.0.0.1) from 08:a6:bc:b6:99:27 via eth0: unknown lease 10.0.0.163.
DHCPOFFER on 10.0.0.28 to 80:7d:3a:4d:d7:91 via eth0
DHCPDISCOVER from d8:f1:5b:b0:4b:1f via eth0
DHCPREQUEST for 10.0.0.144 (10.0.0.1) from d8:f1:5b:b0:4b:1f via eth0: unknown lease 10.0.0.144.
DHCPDISCOVER from 48:3f:da:92:66:33 via eth0
So my question: I would like to keep this DHCP Serve addon take care of only 10.0.0.20 / 10.0.0.49.
Is this possible?
Are my settings correct for doing so?
Do I have to add/ adjust something in the settings to achief this?