Services

lease {<days> [<hours> [<minutes>]] | infinite}

Set how long the pool's leases last. The default is one day.

Works on: Router, Firewall, ServerMode: dhcp

Example

R1(dhcp-config)# lease 7
Watch out

Configuration only in this lab: it shows in running-config, but no clock ever expires a lease.

Run this command live

Don't just read it — type lease {<days> [<hours> [<minutes>]] | infinite} in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "lease {<days> [<hours> [<minutes>]] | infinite}" command do?

Set how long the pool's leases last. The default is one day.

What's the common gotcha with "lease {<days> [<hours> [<minutes>]] | infinite}"?

Configuration only in this lab: it shows in running-config, but no clock ever expires a lease.

Example of "lease {<days> [<hours> [<minutes>]] | infinite}"

R1(dhcp-config)# lease 7

More Services commands

← Back to the full command reference

lease {<days> [<hours> [<minutes>]] | infinite} — network CLI command reference · NetForge-AI