A simple DHCP server.
This add-on provides a simple DHCP server for your network. It provides some basic needs, like, reserving IP addresses for your devices to ensure they always get assigned the same IP address.
Follow these steps to get the add-on installed on your system:
- Navigate in your Home Assistant frontend to Supervisor -> Add-on Store.
- Find the "DHCP server" add-on and click it.
- Click on the "INSTALL" button.
- Set the
domain
option, e.g.,mynetwork.local
. - Save the add-on configuration by clicking the "SAVE" button.
- Start the add-on.
The DHCP server add-on can be tweaked to your likings. This section describes each of the add-on configuration options.
Example add-on configuration:
domain: mynetwork.local
dns:
- 8.8.8.8
- 8.8.4.4
default_lease: 86400
max_lease: 172800
networks:
- subnet: 192.168.1.0
netmask: 255.255.255.0
range_start: 192.168.1.100
range_end: 192.168.1.200
broadcast: 192.168.1.255
gateway: 192.168.1.1
interface: eth0
hosts:
- name: webcam_xy
mac: aa:bb:ee:cc
ip: 192.168.1.40
Your network domain name, e.g., mynetwork.local
or home.local
The DNS servers your DHCP server gives to your clients. This option can contain a list of servers. By default, it is configured to have Google's public DNS servers: `"8.8.8.8", "8.8.4.4".
The default time in seconds that the IP is leased to your client.
Defaults to 86400
, which is one day.
The max time in seconds that the IP is leased to your client.
Defaults to 172800
, which is two days.
This option defines settings for one or multiple networks for the DHCP server to hand out IP addresses for.
At least one network definition in your configuration is required for the DHCP server to work.
Your network schema/subnet. For example, if your IP addresses are 192.168.1.x
the subnet becomes 192.168.1.0
.
Your network netmask. For example, if your IP addresses are 192.168.1.x
the
netmask becomes 255.255.255.0
.
Defines the start IP address for the DHCP server to lease IPs for.
Use this together with the range_end
option to define the range of IP
addresses the DHCP server operates in.
Defines the end IP address for the DHCP server to lease IPs for.
The broadcast address specific to the lease range. For example, if your
IP addresses are 192.168.1.x
, the broadcast address is usually 192.168.1.255
.
Sets the gateway address for that the DHCP server hands out to its clients. This is usually the IP address of your router.
The network interface to listen to for this network, e.g., eth0
.
This option defines settings for one or host definitions for the DHCP server.
It allows you to fix a host to a specific IP address.
By default, non are configured.
The name of the hostname you'd like to fix an address for.
The MAC address of the client device.
The IP address you want the DHCP server to assign.
Got questions?
You have several options to get them answered:
- The Home Assistant Discord Chat Server.
- The Home Assistant Community Forum.
- Join the Reddit subreddit in /r/homeassistant
In case you've found a bug, please open an issue on our GitHub.