DHCP not working on Windows
obzocker opened this issue · 4 comments
The DHCP on Windows does not work for me.
Every other device get's a valid lease. But all three of my Windows devices do not.
I have tried everything:
- new network driver install
- restart network adapter
- troubleshoot helper
- restart pc
- try commands : "netsh winsock reset" and "netsh int ip reset"
I also tried manually acquirering a new ip address with "ipconfig /release" and "ipconfig /renew" over the windows command line
but everytime I tried that I got the error (unfortunatly not usefull): "An error occurred while renewing interface Ethernet : The data is invalid."
I have installed gravity with docker-compose:
version: "3.8"
services:
gravity:
container_name: gravity
hostname: gravity
image: ghcr.io/beryju/gravity:stable
restart: unless-stopped
volumes:
- gravity:/data
network_mode: host
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
gravity:
external: true
Is this problem known and are there workarounds?
Can you post the logs that happen while this error occurs in windows?
Also with gravity 0.6.19 you can run gravity cli export --safe
(in the container), which will dump the database to JSON (with all the sensitive data removed), could you post that on pastebin on directly here?
I'm sorry but I've already changed back from gravity to pihole and I don't have the time to change everything again.
Hello, I had the same problem. On Windows clients DHCP was not working, but on Linux clients there was no problem.
I took a Wireshark trace (on my Windows client) and found out that Option: (15) Domain Name gave a value of . I added the value to the DHCP server and then it started to work.
#I can add that I also had a Windows 11 client which rejected the DHCP lease until I added a domain_name
value under Advanced in the scope settings.