show ip dhcp-server leases

Displays lease information for DHCP Server.

Syntax

Command Paramters

ip {A.B.C.D}
Specifies the IP address of a host. Include this parameter to view lease information for a specific host.
subnet {A.B.C.D/X}
Specifies a subnet address and mask. Include this parameter to view lease information for a specific DHCP subnet.

Command Mode

User EXEC

Command Output

The show ip dhcp-server leases command displays the following information:

Output field

Description

IP-ADDRESS

Displays an IP address that has been leased to a host.

MAC-ADDRESS

Displays the MAC address of a host.

LAST-TRANSACTION

Displays the last DHCP-related communication between the host and the DHCP Server.

EXPIRE-TIME

Displays the expiration time for the lease.

Example

The following command displays output for the show ip dhcp-server leases command:

===================================================================================
                               DHCP Server Leases Info
===================================================================================
IP-ADDRESS    MAC-ADDRESS        LAST-TRANSACTION     EXPIRE-TIME
-----------------------------------------------------------------------------------
198.51.100.4  00-00-5E-00-00-01  2023-08-11T15:15:42  2023-08-11T15:16:42                
198.51.100.5  00-00-5E-00-00-02  2023-08-11T15:15:47  2023-08-11T15:16:42
-----------------------------------------------------------------------------------
 Total Number of DHCP Server Leases displayed: 2
-----------------------------------------------------------------------------------