DHCP server


Create a simple DHCP server for your network and allow setting fixed IPs for devices.

{
  "domain": "mynetwork.local",
  "dns": ["8.8.8.8", "8.8.4.4"],
  "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"
    }
  ]
}

Configuration Variables

domain

(string)(Required)Your network domain name.

dns

(list)(Required)A list of DNS server for your network.

networks

(list)(Optional)A list of network to provide DHCP.

subnet

(string)(Required)Your network schema.

netmask

(string)(Required)Your network netmask.

range_start

(string)(Required)Start address for DHCP leases.

range_end

(string)(Required)End address for DHCP leases.

broadcast

(string)(Required)Network broadcast address.

gateway

(list)(Required)A List of gateways.

interface

(string)(Required)Interface on that will be listen. Normally is eth0 for ethernet wired connection and wlan0 for wireless connection.

hosts

(list)(Optional)A list of fixed IPs for devices.

name

(string)(Required)Name/hostname of your device.

mac

(string)(Required)Mac address of your device.

ip

(string)(Required)Fix ip address for device.