[Kea-users] Kea Server Docker on Windows Host doesn't lease to private LAN network

Payyappattu Raghuram Payyappattu.Raghuram at matrixteam.com
Wed Jul 3 15:43:51 UTC 2024


Hello Users,

Has anyone successfully installed Kea Server on the Windows platform? Is it designed to work only on Linux? When I googled it, I couldn't find anyone discussing the scenario I've mentioned below. I would appreciate any help.

Thanks,
Raghu

From: Payyappattu Raghuram
Sent: Tuesday, July 2, 2024 1:34 PM
To: kea-users at lists.isc.org
Subject: Kea Server Docker on Windows Host doesn't lease to private LAN network

Hi All -  In my specific scenario, the Kea Server is running on Docker Desktop (WSL) on Windows 11 Pro with the following setup. The Raspberry Pi is directly connected to the "Ethernet" port via a LAN cable on the Windows host machine and is supposed to receive a DHCP offer from the Kea Server. Wireshark shows that the "Ethernet" interface received the DHCP Request when the Raspberry Pi was plugged in, but somehow the Kea Server couldn't pick up this request. Interestingly, when I run the udhcpc client on the Windows host machine using Docker with the command docker run --net kea-10-ipvlan --rm busybox sh -c "udhcpc -i eth0 -v", the Kea Server successfully leases the IP. I can ping 10.0.0.1 from the Kea Server instance. It would be great if you could share any workarounds for this issue
Docker Compose file :-

  kea4:
    image: docker.cloudsmith.io/isc/docker/kea-dhcp4:2.5.2
    restart: always
    ports:
      - "67:67/udp"
    networks:
      kea-10-ipvlan: # network that binds container to host network interface.
        ipv4_address: 10.0.0.2 # ip for kea4 server
    volumes:
      - type: bind
        source: ./config/kea # configuration files
        target: /etc/kea
      - kea4-var:/var/lib/kea
      - ./kea-data:/tmp   # New volume mapping for kea-leases4.csv


networks:
  kea-10-ipvlan: # network that binds container to host network interface.
    name: kea-10-ipvlan
    driver: bridge
    driver_opts:
      parent: "Ethernet" #  host interface that kea containers will use
    ipam:
      config:
        - subnet: 10.0.0.0/24
          gateway: 10.0.0.1

Kea Configuration -
{
  "Dhcp4": {
    "interfaces-config": {
      "interfaces": ["eth0"] // Update this to change Network interface
    },
    "lease-database": {
        "type": "memfile",
        "persist": true,
        "name": "/tmp/kea-leases4.csv",
        "lfc-interval": 1800,  // Update this to change the period to flush out DHCP server file which keeps track of IPs offered
        "max-row-errors": 100
    },
    "subnet4": [
      {
        "subnet": "10.0.0.0/24", // Alter this to change the range of IPs offering from DHCP server
        "pools": [
          {
            "pool": "10.0.0.3 - 10.0.0.100"  // Alter this to change the pool of IPs offering from DHCP server
          }
        ],
        "interface": "eth0",      // Update this to change Network interface
        "valid-lifetime": 86400,  // Lease time in seconds (86400 seconds = 24 hours)
        "renew-timer": 600,
        "rebind-timer": 900,
        "option-data": [
          {
            "name": "routers",
            "data": "10.0.0.1"
          },
          {
            "name": "domain-name-servers",
            "data": "X.X.X.X"
          }
        ]
      }
    ]
  }
}

Thanks in advance for your help!.
--Raghu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240703/c79d5206/attachment-0001.htm>


More information about the Kea-users mailing list