Running RB4011iGS+5HacQ2HnD / 7.23.2 (stable)
If I change a DHCP lease from dynamic to static and then run a backup/restore cycle, the lease reverts to dynamic.
Is this normal? I wanted the lease to remain static through a backup/restore.
Jim
Running RB4011iGS+5HacQ2HnD / 7.23.2 (stable)
If I change a DHCP lease from dynamic to static and then run a backup/restore cycle, the lease reverts to dynamic.
Is this normal? I wanted the lease to remain static through a backup/restore.
Jim
You are restoring config, so the configuration will reflect how it was backed up.
Exactly like it was when the backup was made.
So your backup was made with a dynamic lease setting.
Look at it from another angle:
if you make a copy on a xerox machine, you do expect the result which comes out to be exactly the same, yes ?
That's what backup/restore does ...
Just to be clear, here is the flow:
step 1: set lease to static - verify from winbox, set as static
step 2: backup the router into file "abc"
step 3: restore the router from "abc"
Now the lease has reverted to dynamic.
Jim
OK, I see ... you're talking about client lease settings.
I think (but could be wrong) those lease settings are not part of config, purely RAM.
So they are not backed up then ?
Let's see if others can chime in acknowledging this or provide a more accurate response.
EDIT: just checked on my RB5009 since I also use static leases quite often.
They are visible in export. So they should be part of backup then ??
Strange...
The static lease is bound to client's MAC address.
So if a client is configured to present a randomized MAC, the DHCP server will always see it as a new device, and the static lease configured earlier will not be applied. As a result, the client will receive dynamic lease every time.
In other words, the issue is likely with the client, not the DHCP server.