DHCP server with addon not working

Hello,
Could You please help me with making DHCP server from addon work? But from the beggining. I have Huawei B315 with WiFi enalbed and disabled DHCP server. Then my Pi with HA is connected to it by cable and on it I have installed HA on HassIO with DHCP server addon configured but not working when I try to connect to WiFi.
My router config page is on 192.168.8.1 and my Pi has 192.168.8.2 ip address. My DHCP config looks like this:

{
  "default_lease": 86400,
  "max_lease": 172800,
  "domain": "majkersnetwork.local",
  "dns": [
    "8.8.8.8",
    "8.8.4.4"
  ],
  "networks": [
    {
      "subnet": "192.168.8.0",
      "netmask": "255.255.255.0",
      "range_start": "192.168.8.100",
      "range_end": "192.168.8.200",
      "broadcast": "192.168.8.255",
      "gateway": "192.168.8.1",
      "interface": "eth0"
    }
  ],
  "hosts": [
    {
      "name": "phone",
      "mac": "XX:XX:XX etc",
      "ip": "192.168.8.3"
    }
  ]
}

And this is my log from DHCP server:

[12:59:56] INFO: Creating DHCP configuration...
[13:00:13] INFO: Starting DHCP server...
Internet Systems Consortium DHCP Server 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcpd.conf
Database file: /data/dhcpd.lease
PID file: /var/run/dhcp/dhcpd.pid
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on LPF/eth0/b8:27:eb:11:5c:7b/192.168.8.0/24
Sending on   LPF/eth0/b8:27:eb:11:5c:7b/192.168.8.0/24
Sending on   Socket/fallback/fallback-net
Server starting service.

I don’t know what is the problem…

did you get it working? i’m facing same problem

Is your wifi and wired bridged on the huawei?

my pi is connected to router through Ethernet cable. is there anything i have to setup in my router?

i just google and found out huawei b315 does not support bridge mode.

I assume the Huawei is the access point? If it doesn’t bridge between the wifi and the ethernet then wifi clients connecting to the Huawei will not be able to access the DHCP server.

Do wired computers on the LAN get a DHCP address from the pi?

huawei is the main router and my hassio is connected to router through cable.

do i need to turn of DHCP in my router to get this working?

i dont have any computer which is connected to router via cable.

Except the pi of course!

yes pi is connected. but pi has a static ip configured when i installed hassio

Plug some ethernet device in and see if dhcp works.

Sorry for a delay. No it is not working. Moreover. I have old LinkSys connected via cable to Huawei and when I connect Pi to Linksys and change configuration on DHCP server, everything is working fine.

No it is not working. Either when connected to WiFi or with cable.

Hey @majkers, did you solve this? I’m having the same trouble here

No :frowning: I changed my router with static dhcp function for many items

1 Like

Hi Alvaro, the interface is eth0 for cable? and for wifi?

@Reinel
by using the terminal inside hassio, I typed “ha network info”
Then I got my docker network information and my real interface (I’m using wifi) that is wlan0.

After update the configuration replacing “eth0” by “wlan0” it worked.