DHCP broken after power cut [solved]

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
Becker
Posts: 1
Joined: Sat Jul 16, 2022 6:06 pm

DHCP broken after power cut [solved]

Post by Becker »

Hopefully my solution helps someone with the same problem.
I have Gargoyle 1.12.0 installed on a GL.iNet GL-AR150.
Any power cut results in DHCP no longer working after restart.
I suspect stale/corrupt DHCP leases.
Gargolyle router persists DHCP leases in the file /tmp/dhcp.leases

Steps to reconnect:
  • Configure the connecting computer to use a static IP address.
  • Login to Gargoyle router
    • Connection > DHCP
    • Untick "LAN DHCP Server Enabled", Save
    • Tick "LAN DHCP Server Enabled", Save
  • Reconfigure the connecting computer to use DHCP.
To prevent stale/corrupt DHCP leases following a power cut, edit the options in /etc/config/dhcp :
  • System > Router Access
  • Enable Remote SSH Access
  • Ensure Remote Web Admin Access is on and set to HTTPS (optional - if configuring from a computer on the WAN subnetwork)
  • $ ssh root@192.168.1.1 (or from WAN subnetwork)
  • Enter gargoyle password
  • vim /etc/config/dhcp
    • option leasefile '/tmp/dhcp.leases'
    • change to
    • option leasefile ''

    Post Reply