21 lease, 22 max-lease-time, 21 lease -59 – PLANET WGSW-52040 User Manual

Page 448: 22 max-lease-time -59

Advertising
background image

28-59

Switch(config)# ip dhcp ping time out 600

Related Command: ip dhcp conflict ping-detection enable, ip dhcp ping packets

28.1.21 lease

Command:

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

no lease

Function:

Sets the lease time for addresses in the address pool; the “no lease” command restores the default setting.

Parameters:

<days> is number of days from 0 to 365; <hours> is number of hours from 0 to 23; <minutes> is number of minutes

from 0 to 59; infinite means perpetual use.

Default:

The default lease duration is 1 day.

Command Mode:

DHCP Address Pool Mode

Usage Guide:

DHCP is the protocol to assign network addresses dynamically instead of permanently, hence the introduction of

ease duration. Lease settings should be decided based on network conditions: too long lease duration offsets the

flexibility of DHCP, while too short duration results in increased network traffic and overhead. The default lease

duration of switch is 1 day.

Example:

Setting the lease of DHCP pool “1” to 3 days 12 hours and 30 minutes.

Switch(dhcp-1-config)#lease 3 12 30

28.1.22 max-lease-time

Command:

Advertising