[admin@big-tower-164-1] ip dhcp-server lease> export from=0,100
item number too large
[admin@big-tower-164-1] ip dhcp-server lease>
Can somebody please help how we can transfer the lease from old router to new.
back up and restore gets all the leases. Only problem is when we to restore it looses all the ether info, and one has to go manually and assign all ip to correct interface.
We can't make static and transfer.
Since backup is able to get the lease there has to be a way to get dynamic lease
I tried doing print. can the values store by print can be imported ?
Good point. But when you do backup on the router it does take all the dynamic lease too. Since the back up script is able to take the dynamic enery there has to be a way to collect those dynamic enetry.
yep, you may backup dynamic leases (moreover, dynamic leases are saved after normal reboot). but you cannot create them - so import is only via backup restore, not CLI
p.s. why do you need to restore dynamic leases? O_o
The reason we wanted to restore dynamic leases is, when we change router we want to keep the down time minimum and not have ip conflict too.
so If I back up and restore, restore does not put correct ip address on corrrect interface. so one has to go on CLI and configuer all the ports and DHCP server etc. In our case we have 9 port router and each port doing it own DHCP. So total of 8 DHCP server and on each port we have about 50 leases.
The DHCP server checks with a ping. Windows Firewall blocks pings and causes problems in this area.
When a customer requests to renew their IP they will request the same IP that the lease held on the PC has. This fact may solve your problem.
I would strongly suggest making any leases you need to stay the same static so it stays with the config. Depending on the situation I find it best to remove any ip pools from the DHCP server and use static only. This may be what you’re after.
Is there a way to export the current dhcp leases. I am trying to make a record of ip addresses that have been assigned to client devices. I have it setup on DHCP to streamline new devices, then just go back and make it static-dhcp. I would like to transfer the lease information out of the MTK and into something like notepad or excel. Thanks.