cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1564
Views
0
Helpful
5
Replies

Change the lease times

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?

5 Replies 5

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.

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

Hi

 

Router(config)#lease 12 5 30

^

% Invalid input detected at '^' marker.

 

Still cannot use the command?

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 ?)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

how much time you need to set as lease time?

are you trying in packet tracer? packet tracer not support this command

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

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

 

Review Cisco Networking for a $25 gift card