06-09-2022 01:10 AM
Hi, I am struggling to change the lease times on a router (and also in packet tracer)
The command lease 5 30 5 (as an example) just gives an bad command prompt
The aim here is an high turnover area of clients in an address pool I want to purge or renew leases every few hours.
Any thoughts?
06-09-2022 01:54 AM
what is your time expecting to set?
format is lease days [hours] [minutes]
for ex. lease 5 20 5
in your command there is issue in hours. you can maximum go up to 23 in hours. and you cannot use 30 there.
06-09-2022 01:56 AM
Hi
Router(config)#lease 12 5 30
^
% Invalid input detected at '^' marker.
Still cannot use the command?
06-09-2022 02:08 AM
Router(config)#lease 12 5 30
what is the model of Router and IOS Code running on it ?
what is the option = lease ? ( what options you have ?)
06-09-2022 02:01 AM
how much time you need to set as lease time?
are you trying in packet tracer? packet tracer not support this command
06-09-2022 02:30 AM
Hi
In PacketTracer dont seems to be possible. Real router IOS is possible but you need to be inside the DHCP pool:
R1(dhcp-config)#le
R1(dhcp-config)#lease ?
<0-365> Days
infinite Infinite lease
R1(dhcp-config)#lease
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide