[Kea-users] Kea Server Docker on Windows Host doesn't lease to private LAN network
Lee Porte
lee at leeporte.co.uk
Wed Jul 3 16:04:37 UTC 2024
Hi Raghu,
Kea can be compiled on a POSIX compliant operating system. As Windows isn't
POSIX compliant you'll have a hard time.
I'm wondering if you are seeing docker network issues with the container
not running on the host network.
Thanks
Lee
On Wed, 3 Jul 2024, 16:44 Payyappattu Raghuram, <
Payyappattu.Raghuram at matrixteam.com> wrote:
> 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
> --
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240703/259a8bfd/attachment.htm>
More information about the Kea-users
mailing list