Lease - Cisco 300 Series Cli Manual

Stackable managed switches
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

DHCP Server Commands
OL-32830-01 Command Line Interface Reference Guide

12.13 lease

To configure the time duration of the lease for an IP address that is assigned from a
DHCP server to a DHCP client, use the lease command in DHCP Pool Network
Configuration mode. To restore the default value, use the no form of this command.
Syntax
days
hours
minutes
lease
[
[
no lease
Parameters
days
—Specifies the number of days in the lease.
hours
—(Optional) Specifies the number of hours in the lease. A
must be supplied before configuring an
minutes
—(Optional) Specifies the number of minutes in the lease. A
hours
value and an
value.
infinite—Specifies that the duration of the lease is unlimited.
Default Configuration
The default lease duration is 1 day.
Command Mode
DHCP Pool Network Configuration mode
Examples
The following example shows a 1-day lease.
switchxxxxxx(config-dhcp)#
The following example shows a one-hour lease.
switchxxxxxx(config-dhcp)#
]] | infinite
hours
value must be supplied before configuring a
lease 1
lease 0 1
days
value.
minutes
12
value
days
290

Advertisement

Table of Contents
loading

Table of Contents