[Kea-users] Dynamic IP address assigned to client with MAC reservation

Ashley Bye ashley.bye at outlook.com
Tue Mar 27 13:32:01 UTC 2018


Hi all,

Hoping to get some help. Whilst trying to provision some CoreOS systems, I've discovered that an IPv4 address from my dynamic range is being assigned to these machines, causing provisioning to fail.

The machines boot and install via PXE chained iPXE, which is when they are assigned their reserved IP address. During install, they reboot and I have noticed they are then being allocated an IP from the dynamic range. I suspect Kea DHCP4 server is registering this is some kind of conflict, thus causing this other allocation.

My kea4-dhcp.conf file is bloew. I'd be really grateful for any advice that can help me fix this problem.

Thanks,

Ash

{
  "Dhcp4": {
    "interfaces-config": {
      "interfaces": [ "ens192" ]
    },
    "lease-database": {
      "type": "memfile",
      "persist": true,
      "name": "/var/kea/dhcp4.leases"
    },
    "expired-leases-processing": {
      "reclaim-timer-wait-time": 10,
      "flush-reclaimed-timer-wait-time": 25,
      "hold-reclaimed-time": 3600,
      "max-reclaim-leases": 100,
      "max-reclaim-time": 250,
      "unwarned-reclaim-cycles": 5
    },
    "valid-lifetime": 4000,
    "client-classes": [
      {
        "name": "XClient_iPXE",
        "test": "substring(option[77].hex,0,4) == 'iPXE'",
        "boot-file-name": "http://matchbox.ash.k8s.internal.net:8080/boot.ipxe"
      },
      {
        "name": "UEFI-32-1",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00006'",
        "boot-file-name": "ipxe.efi"
      },
      {
        "name": "UEFI-32-2",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00002'",
        "boot-file-name": "ipxe.efi"
      },
      {
        "name": "UEFI-64-1",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00007'",
        "boot-file-name": "ipxe.efi"
      },
      {
        "name": "UEFI-64-2",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00008'",
        "boot-file-name": "ipxe.efi"
      },
      {
        "name": "UEFI-64-3",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00009'",
        "boot-file-name": "ipxe.efi"
      },
      {
        "name": "Legacy",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00000'",
        "boot-file-name": "undionly.kpxe"
      }
    ],
    "subnet4": [
      {
        "interface": "ens192",
        "subnet": "10.240.0.0/24",
        "pools": [
          {
            "pool": "10.240.0.200 - 10.240.0.240"
          }
        ],
        "option-data": [
          {
            "name": "routers",
            "code": 3,
            "space": "dhcp4",
            "csv-format": true,
            "data": "10.240.0.254"
          },
          {
            "name": "domain-name-servers",
            "code": 6,
            "space": "dhcp4",
            "csv-format": true,
            "data": "10.240.0.254"
          },
          {
            "name": "tftp-server-name",
            "code": 66,
            "space": "dhcp4",
            "csv-format": true,
            "data": "matchbox.ash.k8s.internal.net"
          }
        ],
        "reservations": [
          {
            "hw-address": "00:50:56:84:ad:c1",
            "ip-address": "10.240.0.11",
            "hostname": "controller1"
          },
          {
            "hw-address": "00:50:56:84:31:0e",
            "ip-address": "10.240.0.12",
            "hostname": "controller2"
          },
          {
            "hw-address": "00:50:56:84:8d:a9",
            "ip-address": "10.240.0.13",
            "hostname": "controller3"
          },
          {
            "hw-address": "00:50:56:84:85:a0",
            "ip-address": "10.240.0.21",
            "hostname": "worker1"
          },
          {
            "hw-address": "00:50:56:84:bb:ef",
            "ip-address": "10.240.0.22",
            "hostname": "worker2"
          },
          {
            "hw-address": "00:50:56:84:73:65",
            "ip-address": "10.240.0.23",
            "hostname": "worker3"
          }
        ]
      }
    ]
  },
  "Logging":
  {
    "loggers": [
      {
        "name": "kea-dhcp4",
        "output_options": [
          {
            "output": "/var/log/kea-dhcp4.log"
          }
        ],
        "severity": "INFO",
        "debuglevel": 0
      }
    ]
  }
}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20180327/a61a2859/attachment.htm>


More information about the Kea-users mailing list