2024-06-03 07:04:29 -07:00

1.2 KiB

type, created, updated
type created updated
note 2024-04-09T00:24:33.543Z 2024-04-09T00:24:37.118Z

kea

# https://www.techtutorials.tv/sections/linux/how-to-install-and-configure-kea-dhcp-server/
echo > /etc/kea/kea-dhcp4.conf && nano /etc/kea/kea-dhcp4.conf
{
  "Dhcp4": {
    "interfaces-config": {
      "interfaces": [
        "eth0"
      ]
    },
    "lease-database": {
      "type": "memfile",
      "persist": true,
      "name": "/var/lib/kea/kea-leases4.csv",
      "lfc-interval": 3600
    },
    "renew-timer": 15840,
    "rebind-timer": 27720,
    "valid-lifetime": 31680,
    "option-data": [
      {
        "name": "domain-name-servers",
        "data": "8.8.8.8, 1.1.1.1"
      },
      {
        "name": "domain-search",
        "data": "192.168.42.1"
      }
    ],
    "subnet4": [
      {
        "subnet": "192.168.42.0/25",
        "pools": [
          {
            "pool": "192.168.42.19 - 192.168.42.82"
          }
        ],
        "option-data": [
          {
            "name": "routers",
            "data": "192.168.42.1"
          }
        ]
        // Add reservations here
      }
      // Add subnets here
    ]
  }
}