Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHCP not working on Windows #776

Open
obzocker opened this issue Nov 19, 2023 · 4 comments
Open

DHCP not working on Windows #776

obzocker opened this issue Nov 19, 2023 · 4 comments

Comments

@obzocker
Copy link

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?

@BeryJu
Copy link
Owner

BeryJu commented Nov 19, 2023

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?

@obzocker
Copy link
Author

I'm sorry but I've already changed back from gravity to pihole and I don't have the time to change everything again.

@TomSipacom
Copy link

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.

@jtmusson
Copy link

#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants