Skip to content

Instantly share code, notes, and snippets.

View Cannibal-Turtle's full-sized avatar

Cannibal Turtle Cannibal-Turtle

View GitHub Profile
@Cannibal-Turtle
Cannibal-Turtle / 07-renew-public-att-dhcp.sh
Created October 8, 2025 07:39 — forked from xybu/07-renew-public-att-dhcp.sh
UDMP Allow use of AT&T DHCP IP as static IP and keeps the lease alive
#!/bin/bash
# Polls AT&T's DHCP server for updates, to keep static IPs alive.
# This allows UDM Pro users to set their DHCP IP as 'static' in the 'Internet' section
# allowing the use of static IP configuration in Unifi Network.
# 1. Find your DHCP IP.
# 2. Set Internet IPv4 to Static IP, and enter your DHCP address. Gateway is going to be .1
# 3. Add your static IP block to Additional IP Addresses
# 4. Place this script in the on_boot.d/ directory: https://github.com/unifi-utilities/unifios-utilities/tree/main/on-boot-script
# 5. After reboot, check the script is working: cat /var/log/udhcpc.log