DHCP Server (DHCP range)

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?

To me this looks like a fixed IP which your dhcp server tries to deal with…
It is safe to ignore this, but if you really want to get rid of it, you should make DHCP reservations for known MAC addresses.

But instead of using ‘sections’ ( i guess you means ip ranges? :innocent:) it is better to create a vlan for each section so everything is segregated :nerd_face:

Thanks for your input! :+1:

Yes I was talking about IP-ranges, just called them sections here. I’m not known with vlan yet, so I have read about this, I’m not understanding it completely yet. And not sure if my router is capable of doing so. But thanks for the tip so far! :slight_smile:

But the IP’s showed in the log, are MAC reserved IP’s yes. They’re already reserved in my router and I would like to have them ignored in this addon if possible. Making 2 reservations of them (into my router and in this addon) makes no sense to me so far.

So I was hoping putting the range of the DHCP of this addon from …20 to …49 would ignore everything outside of it.
Beginning to think that I had to put this DHCP pool range of the router in the end of my network IP range to achieve this…