Lease – Enterasys Networks X-Pedition XSR CLI User Manual

Page 608

Advertising
background image

DHCP Commands

15-98 Configuring DHCP

lease

This command configures the duration of the lease for an IP address that a DHCP server assigns to 
a DHCP client. The lease time set is the system default value which overrides the non‐specified 
default value (one day).

If the client requests a lease period exceeding the period configured on the server, the lease 
interval offered by the server will equal that of the value configured by this command. If the client 
does not request a particular lease period ‐ typical client behavior ‐ it is granted the configured 
default value. Manual bindings are not held accountable to this lease period.

Depending on the client configuration inheritance, the command should be used from the proper 
mode. If it is specified from multiple modes, an override mechanism chooses the innermost config 
value, with client‐class as innermost, then pool as most general.

Syntax

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

Syntax of the “no” Form

Use the no form of this command to restore the default value:

no lease

Default

One day

Mode

Either of the following command modes are available:

DHCP pool configuration: 

XSR(config-dhcp-pool)#

DHCP client class configuration: 

XSR(config-dhcp-class)#

Example

The following example configures a one‐day lease:

XSR(config-dhcp-pool)#lease 1

The following example configures a one‐hour lease:

XSR(config-dhcp-pool)#lease 0 1

The following example configures a one‐minute lease:

XSR(config-dhcp-pool)#lease 0 0 1

days

Duration of the lease in days.

hours

Number of hours in the lease. A days value must be supplied before you can
configure an hours value.

minutes

Number of minutes in the lease. Days and hours values must be set before you
can configure a minutes value.

infinite

Duration of the lease is unlimited.

Advertising