Posted: Tue Sep 20, 2022 21:23 Post subject: How does dd-wrt determine it needs to refresh the WAN DHCP
I have a Netgear XR500 router and I've recently switched to Verizon 5G home internet. I'm using the Verizon gateway in passthru mode and my router is connected directly to it via cable.
One drawback to this internet service is that they change the IP address at least once a day. When that happens, I typically notice that my internet has lost connectivity and I end up going into dd-wrt and manually refreshing the DHCP lease on the WAN from the status page.
My question is if and how dd-wrt detects that the IP address is no longer valid and automatically performs a DHCP refresh?
Does anyone have any suggestions for making this more reliable?
If it happens at a particular time/day, you could have the router do a scheduled reboot.
you can find this in Administration > Keep Alive.
That or you can check to see if the verizon gateway comes with a scheduled reboot. that way, the ethernet port shuts down and then turns back on after booting up. no need to restart the router. _________________ For people who are new to the dd-wrt forums >> http://www.catb.org/~esr/faqs/smart-questions.html#rtfm
barryware wrote:
It takes a "community" to raise a router..
Internet Connection 1
Some Techicolor modem > Linksys WRT3200ACM
Internet connection 2
Ubiquiti Powerbeam Gen 2 > Netgear R9000
Official (but not really) dd-wrt General Discussion element/matrix chat
Good suggestions. I'm going to see if I can pinpoint a particular time at night that it happens. The Verizon cube doesn't have a scheduled reboot feature, so I would have to do it in dd-wrt.
I found an example in the "Useful Scripts" section of the WIKI.
So, I guess the answer is that dd-wrt doesn't have a built-in mechanism for detecting when the WAN needs to be refreshed.
Depends on what the WAN configuration is. The scripts in that wiki seem to rely on an Auto DHCP WAN configuration. Using LTE with IP pass-thru isn't PPPoE or mobile broadband, I presume? Auto DHCP relies on the upstream DHCP lease time given to your router. DD-WRT will automatically renew the DHCP lease for you. For anything NOT Auto DHCP, there is a connection / proxy watchdog on the Administration -> Keep Alive tab as well as scheduled reboot.
I'm trying the WDS/Connection watchdog in the Admin->Keep Alive panel. I've given it 3 IP addresses to ping and if it can't connect to all 3, then it will reboot the router. I'll see how that goes.
It made it through last night pretty seamlessly. The IP changed around 1:00 AM, the router rebooted, the ddns updated, and everything was good with minimal interruption. I'm paying attention to the WAN lease remaining time to see if Verizon changes the IP right at the end of the lease time or not.
I had QoS problems with WAN IP changes see #7354. I only use fixed addresses on the LAN and the rare devices that can only use DHCP have static leases and everything except QoS worked fine with WAN IP changes. Closed the ticket because my current ISP doesn't change the WAN IP and I can no longer encounter this bug.
Joined: 08 May 2018 Posts: 14244 Location: Texas, USA
Posted: Thu Sep 22, 2022 16:07 Post subject:
brucehvn wrote:
It made it through last night pretty seamlessly. The IP changed around 1:00 AM, the router rebooted, the ddns updated, and everything was good with minimal interruption. I'm paying attention to the WAN lease remaining time to see if Verizon changes the IP right at the end of the lease time or not.
Thanks everybody.
I had to develop a script to maintain connection to Verizon in the past on my old OpenBSD server as well as a script to determine if any of the firewall log entries were nefarious or just Verizon's system probing my WAN. Usually all the information changes - WAN IP, gateway, etc. and it seems DD-WRT doesn't handle that all too well in this case, apparently. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
I often change my MAC addresses to prevent ISP from tracking any habits
wait, what? I can see the merit of doing this for instance if you are connecting to an open wifi hotspot, so you change your wifi adapter's MAC to "reset" your identity. But even changing your router's WAN mac address (which would force the ISP to give you a new IP Address probably), wouldn't the ISP still "know who you are" from your cable modem or fiber ONT serial numbers?
Maybe you are being too paranoid, on the other hand, maybe I am not being paranoid enough...
I often change my MAC addresses to prevent ISP from tracking any habits
wait, what? I can see the merit of doing this for instance if you are connecting to an open wifi hotspot, so you change your wifi adapter's MAC to "reset" your identity. But even changing your router's WAN mac address (which would force the ISP to give you a new IP Address probably), wouldn't the ISP still "know who you are" from your cable modem or fiber ONT serial numbers?
Maybe you are being too paranoid, on the other hand, maybe I am not being paranoid enough...
Hi. I work for a WISP.
Yes, the ISP would still know who you are regardless how many times you try to change your IP address. I mean you opened an account with them as a residential customer.
A good reason for why you want to change your IP address is when you do not want hackers tracking you or want to get around a ban placed on you by a server that blocked you from it.
If you REALLY wanted to stay anonymous, try becoming your own ISP ready to spend a couple thousand dollars no matter what speed you are paying for. _________________ For people who are new to the dd-wrt forums >> http://www.catb.org/~esr/faqs/smart-questions.html#rtfm
barryware wrote:
It takes a "community" to raise a router..
Internet Connection 1
Some Techicolor modem > Linksys WRT3200ACM
Internet connection 2
Ubiquiti Powerbeam Gen 2 > Netgear R9000
Official (but not really) dd-wrt General Discussion element/matrix chat
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Thu Sep 29, 2022 19:23 Post subject:
MuzzleVelocity wrote:
wait, what? I can see the merit of doing this for instance if you are connecting to an open wifi hotspot, so you change your wifi adapter's MAC to "reset" your identity. But even changing your router's WAN mac address (which would force the ISP to give you a new IP Address probably), wouldn't the ISP still "know who you are" from your cable modem or fiber ONT serial numbers?
Maybe you are being too paranoid, on the other hand, maybe I am not being paranoid enough...