[Help Needed] GL-X750V2 (Spitz) Router - Public IP Won’t Change via Software Commands, Only with Power Cycle

Hi everyone,
I am trying to change my public IP programmatically using ssh.

I am using OpenWrt 22.03.4, r20123-38ccc47687
I'm having a bit of a challenge with my GL-X750V2 (Spitz) router, and I'm hoping someone here might have some insights.

The Problem:

Whenever I physically unplug and replug the router, it gets assigned a new public IP address by my ISP. However, when I try to achieve the same result using software commands via SSH, the public IP remains unchanged.

What I've Tried:

  1. Simple Reboot:
  • I've used the reboot command via SSH, but the public IP doesn't change.
  1. Bringing Down and Up the WAN Interface:
  • I've tried using ifdown wan followed by ifup wan, but the IP remains the same.
  1. Full Interface Down and Up:
  • Ran ifdown -a to bring down all interfaces, waited for 120 seconds, and then rebooted the router. Still, the public IP stays the same.
  1. Deleting DHCP Lease Files:
  • I deleted /tmp/dhcp.leases and /tmp/hosts/odhcpd before bringing down and up the WAN interface. No change in the public IP.

I am using tmux to ensure that all commands (bringing down interfaces, waiting, rebooting) run uninterrupted even if the SSH session disconnects. Still no success.

  • Has anyone else had this issue with the GL-X750V2 or similar devices?
  • Could there be something specific about how this router or its 4G LTE modem interacts with the ISP’s DHCP server?
  • Are there any other commands or scripts that have worked for you to change the public IP via software?

Any Help or Insights Would Be Greatly Appreciated!

Thanks in advance for your help!

Even if the unplug and replug happens immediately?